161 Commits

Author SHA1 Message Date
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Eric S. Raymond
9223460daa Remove unused headers. 2008-11-09 04:35:13 +00:00
Pauli Nieminen
715b7d031b Fixed signed/unsigned comparision warnings 2008-09-11 12:34:33 +00:00
Mark de Wever
81c6a850ab MSVC 6 cleanup.
Now that MSVC 6 is no longer supported start to remove some helper code
to work around problems in that compiler. The first step is to comment
out the code and replace it with new helper code that uses the standard.
The second step is to remove the helper code and fix all callers.

Patch 2/3 for step 2: Remove minimum and maximum and fix all callers.
2008-08-24 16:12:13 +00:00
Ali El Gariani
2226e84d88 Change default action of delete/dismiss buttons when deleting the last item.
Now stop closing the dialog, because it may have other functions even
with no items, and this also prevent closing when using filtered view
only showing the item(s) to delete (which is much more common, who
delete/dismiss everything?)
2008-07-06 22:31:11 +00:00
Bruno Wolff III
6ee1bf1cd3 I fixed a warning for gcc 4.3.
I didn't change the semantics and the current way it works appears to
be reasonable, but I don't know enough about this section to be 100%
sure their wasn't a mistake that should have been corrected. It would
be nice if the person that changed it made sure that the semantics
were correct.
2008-07-05 03:31:05 +00:00
Pauli Nieminen
47fb8ac6af fake_display for unit tests
added first get_save_name dialog test case
2008-07-04 22:43:05 +00:00
Ali El Gariani
9e600d1fba small rename of a local variable suggested by Sapient 2008-06-15 21:59:32 +00:00
Ali El Gariani
e7ffc357d0 Optimize text filter: don't update after simple cursor move.
reset selection between filter change (prevent random selection).

Allow multi words filter, separated by space and must all match
somewhere examples: create unit "hum bow" match "Human | Bowman" only,
or you can directly search savegame like "HttT replay"
2008-06-15 18:57:51 +00:00
Ali El Gariani
d30dc9fd00 Fix add-on management filter doing unwanted match with icon filenames 2008-06-15 16:49:05 +00:00
Ali El Gariani
4d02660701 Simplify the previous bugfix (2008-06-15T00:28:33Z!alinkmaze@gmail.com) by using again STL functions
(now that I know that it was not the source of the bug)
2008-06-15 01:24:45 +00:00
Ali El Gariani
fae7327784 remove an assert to restore compilation
(this code will not stay like this)
2008-06-15 01:11:25 +00:00
Ali El Gariani
87ecf3aebf Fix a bug introduced by 2008-06-08T05:34:52Z!patrick_x99@hotmail.com,
...savegames after a deleted one were shifted (even without using any
filter, so bug #11779 was not fixed. It is now)

Fix an inaccuracy with the new filter from the addon manager (always show the
first one: the accuracy era) spotted by Shadow_Master.
2008-06-15 00:28:33 +00:00
Patrick Parker
95b660508d fix bug with filter + delete savegame (Gna! bug #11779) 2008-06-08 05:34:52 +00:00
Ali El Gariani
04e77a677b Simplify by removing an recently added unused feature for filter:
Filter only on some columns (ex avoid images url)
2008-05-29 02:51:32 +00:00
Ali El Gariani
766a076320 Add a textbox filter to the Create Unit Dialog, allowing quick selection.
Also abstract the code of savegame's filter, and use it for this.
2008-05-27 18:08:11 +00:00
Bruno Wolff III
d913afa6e1 Silence gcc 4.3 warning about && and || by ading parens. 2008-03-19 15:28:14 +00:00
Bruno Wolff III
c8ac38992d Silence gcc 4.3 warning about const return type. 2008-03-19 15:23:47 +00:00
Mark de Wever
d41120795d Changed the buildin SDL_ttf to a dependency on the library version >= 2.0.8. 2008-03-04 18:24:15 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
Elias Pschernig
bd54862523 Fixed error messages when trying to show a dialog in nogui mode. 2008-02-10 14:29:27 +00:00
Pauli Nieminen
f7b2703c71 Fixed [message] not to close if it has input (bug #10846) 2008-01-23 11:57:08 +00:00
Patrick Parker
30abeb44b8 Two patches by CIB
* new tag [text_input] for [message] (patch #921)

   * parser exceptions are now displayed visually (patch #914)
2008-01-12 02:55:38 +00:00
David White
cd9d30e0aa made it so auto-saves begin being deleted after there are more than 5 2008-01-05 08:10:49 +00:00
David White
d696aedb03 added filter textbox in load game dialog 2008-01-03 07:45:55 +00:00
Mark de Wever
109d4f48a7 Remove an unused header. 2007-12-10 18:17:36 +00:00
Gunter Labes
6e8b509279 logging improvements 2007-11-30 11:35:10 +00:00
Patrick Parker
8a4ec71537 commit patch #825: selection() returns a negative value by Erik Hovland <microe> 2007-11-09 05:42:57 +00:00
Mark de Wever
93842da4df Fix a compiler warning discovered by Soliton. 2007-10-24 13:23:13 +00:00
Mark de Wever
6077ecd51f Make sure all members are initialized in the constructor. 2007-10-23 18:26:56 +00:00
Patrick Parker
2fe5dda986 fix bug #10071, part 6:
max menu width was not considering the preview pane widths
2007-10-06 03:10:46 +00:00
Patrick Parker
6f054cf806 prevent preview panes from being too short 2007-10-06 00:07:51 +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
Patrick Parker
c491f73077 the countdown timer alert can now start sounding while dialogs are open
added a mechanism for generic monitoring of events::pump()
2007-07-27 02:02:17 +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
Patrick Parker
ce744cae7d [[dialog class tweaks]]
* now dialogs will automatically clear_background() when show() exits
* some refactoring of dialog::style (moving it towards being a proper class)
  - still need to remove the constness
  - and make the member variables private
  - and provide accessor methods
2007-07-07 03:38:38 +00:00
Eric S. Raymond
ec1813d9bb A half-step towards disentangling the dialog class from the help system...
*wthout* losing help buttons this time.
2007-07-06 20:14:03 +00:00
Eric S. Raymond
63c59d44d0 Add the capability to set a sort object on a dialog to set_menu,
...and use it to rewrite the recall dialog as an instantiation of dialog.
2007-07-06 10:49:28 +00:00
Eric S. Raymond
b59c85149f Revert a refactoring change (2007-06-30T03:10:14Z!alinkmaze@gmail.com)
...that disappeared the help buttons on the Recruit and Recall menus.
I'll have to redo this right.
2007-07-06 09:46:21 +00:00
Patrick Parker
b77ba5ee3f don't remove global.hpp 2007-07-01 20:48:26 +00:00
Eric S. Raymond
7a9edcf333 Remove some unneeded includes. 2007-06-30 23:02:11 +00:00
Eric S. Raymond
06923cb4af basic_dialog and dialog are now properly separated into distinct modules. 2007-06-30 06:49:29 +00:00
Eric S. Raymond
ce92c14e05 dialog class successfully refactored...
...into a basic_dialog and derived dialog class.  Only the derived
class supports a help button and links to the help-system stuff.
2007-06-30 05:15:11 +00:00
Patrick Parker
d775eda87c fix the dim.y re-calculation for very large dialogs 2007-06-23 03:13:24 +00:00
Patrick Parker
c136f9af2e to fit dialogs on screen, don't rein in the menu height...
...before attempting y-shift
2007-06-22 22:56:29 +00:00
Patrick Parker
b1e9f99642 patch #749: Ingame Add-on removal support
* also fix some cross platform issues

* also remove an unnecessary style copy
2007-06-22 02:36:12 +00:00
Ali El Gariani
725d41c6cc After hours of thinking, just add a "if (use_menu)" to use sound only
...when closing a menu (not a message)
2007-06-19 11:20:41 +00:00
Ali El Gariani
0377206cb0 remove click sound when clicking on dialog message.
This was used to add also a sound when closing menu (since menu do
sounds for every other actions)

I will look it later how differentiate the two cases.
2007-06-19 11:13:11 +00:00