16 Commits

Author SHA1 Message Date
Patrick Parker
c81ae6895b new advanced preference to choose whether middle-click scrolls...
...or warps (default=scrolls)
2009-01-05 04:47:48 +00:00
Mark de Wever
973a0a7d5c Remove trailing whitespace. 2009-01-01 10:28:26 +00:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Tomasz Śniatowski
1589d8713c editor2 MDI feature - have more than one map open in the editor...
...with fast switching between them. Can be disabled in the editor
settings. Also changed:

* the display class now holds a pointer to the map instead of a
  reference, a pointer can be changed which permits the entire MDI
  behavior. Related bits were also changed in terrain_builder.

* mouse_handler_base no longer holds a reference to the map

* the map labels class does not hold a gamemap reference, as it can
  use the display object to access the map. Also clearing all labels
  was exposed as a public member function.

* used scoped_ptrs and forward declarations to avoid having to include
  map_label.hpp and terrain_builder.hpp in display.hpp, this reduces
  build dependencies quite a bit.

* made get_action_state use the menu index to allow a dynamic menu to
  have checkboxes. This entire chunk of code needs a rewrite.
2008-11-21 15:42:34 +01:00
Tomasz Śniatowski
01e504ede6 remove some map.hpp dependencies,
...also separated viewpoint and map_exception classes from map.hpp
into separate headers (no cpp files)
2008-10-17 17:53:08 +01:00
Tomasz Śniatowski
c54a538139 Refactor gamemap::location -- rename to map_location,
...move into separate cpp/hpp pair. The code under src/ was modified
mainly using a global search-and-replace. This change allows reducing
code dependencies and gets rid of inner-class confusion (parts of the
code had to use "location" when referring to gamemap::location, it is
now consistent across the codebase.)
2008-10-15 17:38:51 +01:00
Tomasz Śniatowski
2c0627c180 mose_handler_base mouse click/drag cleanup,
...allow right mouse button drag (not used anywhere yet)
2008-08-14 21:42:18 +01:00
Tomasz Śniatowski
b4d8a5d68b editor2: fix terrain palette mouse scrolling issue 2008-08-12 20:15:01 +01:00
Tomasz Śniatowski
e5f4865330 editor2: auto update terrain transitions switch, manual refresh functions 2008-07-31 13:30:57 +01:00
Tomasz Śniatowski
ba26373baf editor2: context menu, starting location labels (defunct atm) 2008-07-26 21:05:57 +01:00
Tomasz Śniatowski
a85fd24384 editor2: select actions (not bound yet), swap fg/bg hotkey,
...two mouse drag issues fixed
2008-07-26 13:07:30 +01:00
Tomasz Śniatowski
7244cc5ec2 Fix dragging out of window issue in editor...
...by a patch in game mouse handling. This may have some side effects
that I have not thought of.
2008-07-09 20:34:36 +01:00
Tomasz Śniatowski
d1ed9d6f6a Editor2: basic click-drag support, some debugging aids,
...small changes in mouse_handler_base to better faciliate the click-dragging
2008-07-09 15:59:44 +01:00
Tomasz Śniatowski
d2f5668ce3 Editor2:
* Implement very basic single hex drawing

* Framework for mouse actions

* Merge editor_mouse_handler with editor_controller (required some
  slight changes in mouse_handler_base and mouse_handler)

* Minor changes that would be difficult to separate now and commit on
  their own
2008-07-09 01:02:16 +01:00
Mark de Wever
acc74c8f2c Fix a warning about a missing virtual destructor...
...in a class with virtual functions.
2008-07-03 15:12:41 +00:00
Tomasz Śniatowski
3027aff5c2 Refactor parts of mouse_events (no expected visible side-effects):
* move generic code (that could be used by editor2) into a base class
  (in a separate hpp/cpp pair)

* split attack prediction display classes into separate files This is
  still work in progress and is likely to change further as I actually
  make use of it in editor2.
2008-07-02 17:28:39 +01:00