17 Commits

Author SHA1 Message Date
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
1a0d047da1 add missing $Id$ 2008-12-27 23:49:04 +01: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
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
a98b9f850f Move the recently added debug display of hex coordinates...
...and terrain codes from the editor2 into the common display
class. Allow setting this in-game via :sc and :tc commands. Unless
debug mode is on, only non-shrouded tiles will have the terrain code
displayed.
2008-09-23 13:27:09 +01:00
Tomasz Śniatowski
6dea6180f0 Editor 2: a feature to draw hex coordinates and/or terrain code on every hex.
Also a minor changelog backlog.
2008-09-23 00:16:18 +01:00
Tomasz Śniatowski
cb652e672a editor2: more pronounced selection display
Draw a bold grid around selected hexes instead of just highlighting
them. Should be very noticeable both with and without the standard
grid active.
2008-08-21 01:02:44 +01:00
Tomasz Śniatowski
5c99f2ccb9 editor2: sidebar tweaks 2008-08-16 20:42:19 +01:00
Tomasz Śniatowski
5843442b82 editor2: map reload display glitch fix 2008-08-11 16:33:25 +01:00
Tomasz Śniatowski
f1eae0eec7 Editor2:
* use display redraw observers to redraw the palettes (this is a quick
  fix for something that needs a larger redesign)

* draw current tool outline

* make the refresh_all more thorough
2008-08-10 21:52:32 +01:00
Tomasz Śniatowski
e5f4865330 editor2: auto update terrain transitions switch, manual refresh functions 2008-07-31 13:30:57 +01:00
Tomasz Śniatowski
03776f0317 editor2: selection tool 2008-07-26 14:23:06 +01:00
Tomasz Śniatowski
2619e5ba5a Add brush locations support in display 2008-07-15 15:01:15 +01:00
Tomasz Śniatowski
67a40ebb46 editor2: Add selection handling in editor_map and editor_display 2008-07-07 14:54:13 +01:00
Tomasz Śniatowski
a1aefe3202 indent fix 2008-07-06 19:00:08 +01:00
Tomasz Śniatowski
dc80c9a700 editor2 file stubs -- some do not compile...
...which is not a problem since they're not used yet.
2008-07-02 17:47:00 +01:00