123 Commits

Author SHA1 Message Date
Mark de Wever
fb9f2b16f8 Remove an unneeded include. 2009-12-05 21:24:25 +00:00
Guillaume Melquiond
6e21b60de5 Allowed recovering titles of menu items. (Fix for bug #13388.) 2009-11-12 17:21:17 +00:00
Ali El Gariani
a879b7adad Add basic support to define waypoints via a hotkey "Add waypoint"
Seems to work fine, but no visual indication yet (besides the bended path)
Don't affect the normal pathfinding interface, so this WIP is safe.
2009-08-28 23:49:27 +00:00
Guillaume Melquiond
564f87ea34 Removed unused functions hotkeys::get_scope_*. 2009-08-16 10:08:24 +00:00
Tomasz Śniatowski
1a934ac94b rename editor2 -> editor. Old editor is long dead, long live the new editor! 2009-08-08 12:14:58 +01:00
Karol Nowak
b0d4f5b133 Merge branch 'ellipse_hotkey' 2009-06-24 22:50:27 +00:00
Ali El Gariani
dfcea60951 Make the context-menu 'change unit side' allow to change village flag.
(cycle between teams and free. Supposed to fire the event but not tested)
Also rename 'Change unit side' to 'Change side' to better reflect this.
But not sure if not confusing.
2009-04-21 02:06:41 +00:00
Tomasz Śniatowski
b358e4611e implement FR bug #13172...
...(output a WML-style list of selected tiles from the editor). Uses
the system clipboard.
2009-03-22 00:25:29 +01:00
Guillaume Melquiond
c40ddd0f32 Fixed bug #13111 by storing translatable strings inside menus. 2009-03-04 13:38:05 +00:00
Jörg Hinrichs
9c7884f6fb Adding support for observers in multiplayer to pause...
...and continue the game at any time (special greetings to boucman ;-).
2009-02-08 22:15:06 +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
39d377190f editor2: add mask applying and creating to the editor.
possibly under-featured, needs testing
2008-10-13 20:05:30 +01:00
Tomasz Śniatowski
6022234caa Remove the old editor.
This includes removing sources, cfg files, editor targets in build
systems (scons was done already), and removing old-editor only parts
from several other files under data/ and src/. There probably are some
remains of the old editor left.
2008-10-04 12:24:35 +01:00
Tomasz Śniatowski
6dbfc61efe Editor2: remove map flipping...
... Add clipboard flipping. Also fix a map_fragment issue.
2008-09-23 19:14:39 +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
8b8556619e editor2 editor settings hotkey definition 2008-09-17 16:40:15 +01:00
Tomasz Śniatowski
d553c9d313 change #ifdef USE_EDITOR2 to #ifndef DISABLE_EDITOR2...
...and update buildsystems accordingly. This will force people using
custom builds (e.g. devcpp, codeblocks) to either add editor2 sources
or consciously disable it.
2008-09-05 14:32:24 +01:00
Tomasz Śniatowski
cd83c701a1 editor2: remove partial redo,
...it was unused anyway (use normal redo to redo a partial undo)
2008-08-21 17:52:54 +01:00
Tomasz Śniatowski
41942e2288 Another take on the editor2's undo with regards to mouse drags:
Normally undo entire drags as one action, but allow a "partial undo"
(default: ctrl+z) to undo bit-by-bit like the old editor.

Note: when you undo like that the actions become permanently
separated. Normal undo and redo will treat the undone bit as a
standalone action.
2008-08-21 16:57:12 +01:00
Tomasz Śniatowski
ebc01fba94 editor2: rotate clipboard 60 degrees cw/ccw feature, map_fragment doc comments 2008-08-20 10:33:51 +01:00
Tomasz Śniatowski
fc09ac19ad editor2 hotkey tweaks 2008-08-17 14:17:19 +01:00
Tomasz Śniatowski
1e20cfe385 editor2: fill seelction feature 2008-08-12 23:22:51 +01:00
Tomasz Śniatowski
a9362872b3 editor2: random map generate dialog stub, refresh image cache option 2008-08-04 13:36:59 +01:00
Tomasz Śniatowski
6d34944ad7 editor2: select all, invert selection, everything_changed member in map_context 2008-07-30 23:58:00 +01:00
Tomasz Śniatowski
e68301c3f7 editor2: wire in flip actions, smarter after-action refreshing,
...mouse action tweaks (do less work on mouse move within same
hex). Not guaranteed to be 100% stable at the moment, editor_map needs
a slight overhaul.
2008-07-30 00:21:57 +01:00
Tomasz Śniatowski
083a6b5737 editor2 hotkey update 2008-07-25 19:28:11 +01:00
Tomasz Śniatowski
28e567b641 Turn hotkey scoping back on and fix issues...
...by making the editor have separate bindings from the main game. The
keys are separate, but some hotkey commands are shared.
2008-07-16 17:25:07 +01:00
Tomasz Śniatowski
32bc25963b Editor2 quit and quit do desktop features,
...confirm quit message different if map was modified
2008-07-15 23:25:29 +01:00
Tomasz Śniatowski
d17a469df5 Editor2: hotkey update
(fixed some weird behaviour too, actually use the defaults, conflicts
to be resolved later).
2008-07-14 17:41:01 +01:00
Tomasz Śniatowski
466eaca211 Add some editor2 hotkey commands 2008-07-12 16:24:51 +01:00
Tomasz Śniatowski
564b8ae6d5 fix compilation error 2008-07-10 15:37:48 +01:00
Tomasz Śniatowski
6c818bb1f8 Removed the scope settings from wml and moved it to c++ in hotkeys.cpp.
Made the scope a state rather than an arg passed around. The
preferences only display hotkeys from the active scopes.
2008-07-10 15:15:20 +01:00
Tomasz Śniatowski
590234ac8d Store the scope parameter in hotkey objects...
...and use it when looking for a hotkey command
2008-07-10 12:40:23 +01:00
Ali El Gariani
8a027095cf New hotkey for debugging: "Custom command" which execute a saved command.
With a new command: "custom <command>" to assign a command to this hotkey.

examples: "custom refresh" or "custom create Troll" etc...

This custom command is saved in preferences.
2008-04-30 03:52:10 +00:00
Gunter Labes
469fc378fb redo parts of 2008-02-03T21:36:06Z!patrick_x99@hotmail.com, 2008-02-16T08:47:16Z!koraq@xs4all.nl and 2008-03-01T15:45:18Z!martinxyz@gmx.ch...
...that have been reverted by the formula ai merge
2008-04-25 01:55:51 +00:00
Ali El Gariani
749f03797a Continue to fix 2008-03-03T05:40:29Z!davewx7@gmail.com
redo 2008-02-05T08:36:31Z!paniemin@cc.hut.fi, 2008-02-03T18:30:00Z!paniemin@cc.hut.fi, 2008-02-01T06:01:18Z!uso

hotkeys.cpp hpp and cfg are ok
2008-04-24 22:54:36 +00:00
Ali El Gariani
798b866c8b Map screenshot feature for editor and game (with units):
The render engine is rerouted, so most objects are on it. So keep the
UI parts that you can hide by moving your mouse (footsteps,
highlighted hex etc...), may be useful. But don't write map labels
(not hideable).

Need a warning because filesize can be really huge (bmp). Dezoom helps that.

PS: a nice useful bug show the minimap rectangle change to include all
the map during the screenshot
2008-03-25 04:56:30 +00:00
David White
5c0df60c23 initial branch changes 2008-01-28 03:04:25 +00:00
Pauli Nieminen
22d42d8642 Made ESC to clear hotkey when changeing hotkey (bug #10783) 2008-01-17 14:17:52 +00:00
uso
f86bd3bc77 add a menu option to save replays manually
maybe this can be removed later when the whole save game mechanism is
cleaned up again, but to have it there before the string freeze blocks
us from adding it ;)
2008-01-09 17:26:38 +00:00
Mark de Wever
488a82aef2 Make sure all members are initialized in the constructor. 2007-12-13 19:12:38 +00:00
Ali El Gariani
a67bc242bf New "rotate selection" feature for the editor (very old FR, bug #3870)
- Use the cursor as center of rotation, if not on map then use "center of mass"

- Use hotkey shift+r, as Gimp. (ctrl+r is reserved by recruit, old hotkey bug)

- copy/paste instead of moving, not sure about that but seems more
useful (if wanted you can overwrite on the current selection and then
cut/paste) Because the main use is probably to help create map like
Hexcake, but rotate after a select-all allow to rotate the whole map
(with cropping of corners)
2007-09-22 00:12:41 +00:00
Gunter Labes
ae9e10f260 codeclean run
set svn:eol-style to native where missing
2007-08-31 19:09:40 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
Hans Joachim Gurt
7f0c9b0a66 Update for hotkey-patch #770 2007-08-11 15:43:06 +00:00
Mark de Wever
21a6dd7b43 added a hotkey for clearing the chat messages (patch #770) 2007-08-07 17:28:04 +00:00
Mark de Wever
bb01934b85 A rather large update which updates the copyright info
* Wesnoth is distributed under the terms of the GPL version 2, made
  that more explicit

* updated the copyright range to 2007

* updated Dave's email adress
2007-07-21 07:28:04 +00:00
Patrick Parker
ca5345ad00 strike a mighty blow to code adhesion, furthering the Eric conspiracy project 2007-07-19 00:56:56 +00:00