Celtic Minstrel
8122039707
Rename .tpp -> .hpp
...
Several header files used the .tpp extension, which means that they are not correctly detected as C++ (though this can be overridden and has been for one case in the XCode project). The .tpp extension is one of several intended for private template instantiations, but these headers were topleve headers included in many places.
2016-03-19 21:57:03 -04:00
Charles Dang
11b941ab58
GUI2: removed CVideo argument from tdialog::preshow
...
In all but three cases, this argument was unused. In those remaining cases,
the argument could be replaced by twindow::video().
2016-03-15 02:15:28 +11:00
Chris Beck
ba51524f6e
update copyright to year 2016
...
using this shell script:
find src -type f -print0 | xargs -0 sed -i "s|Copyright (C) \([[:digit:]]*\)\([ ]*\)-\([ ]*\)2015|Copyright (C) \1\2-\32016|g"
2016-01-02 23:59:31 -05:00
Ignacio R. Morelle
57ae45387a
New Year copyright update
2015-01-01 19:07:35 -03:00
Mark de Wever
e5253f3265
Use clang-format on the gui directory.
...
Most of the formatting has been done automatically, but some minor manual
polishing has been applied afterwards.
Also add .clang-format file containing the settings used for the
formatting.
2014-02-09 16:58:32 +01:00
Ignacio R. Morelle
a4f47a63c7
New Year copyright update
2014-01-01 02:08:52 -03:00
Eric S. Raymond
043c4f9fd3
Remove $Id$ cookies.
2013-03-26 21:41:37 -04:00
Mark de Wever
7dca188c77
Move the find_widget code to a new header.
...
Part of cleaning up and polishing the existing widget code.
2013-03-09 09:20:57 +00:00
Mark de Wever
a78b2f93dc
Replace BOOST_FOREACH with FOREACH.
2013-02-09 16:11:36 +00:00
Mark de Wever
43b71f2ff0
New year copyright update.
2013-01-01 09:22:03 +00:00
Sergey Popov
6b6eafb213
Use BOOST_FOREACH directly instead of #define foreach BOOST_FOREACH
...
The define is extremely unreliable, will break compile with boost >=
1.50 and upstream can't fix issues with it, see
https://svn.boost.org/trac/boost/ticket/6131
2012-07-07 00:49:45 +00:00
Ignacio R. Morelle
6ca69b2df5
New year copyright update
2012-01-07 02:35:17 +00:00
Mark de Wever
64cb3788b9
Minor code and comment cleanups.
2011-03-05 10:01:34 +00:00
Mark de Wever
0d0b685661
Add a seperate macro to register a window.
...
The code for the tooltips can use one dialog for several windows. This
means the current register window macros won't work so split the main
macro in two parts:
- register the window
- 'write' the code for the dialog
2011-02-07 20:57:31 +00:00
Mark de Wever
350b11198c
Fix a wiki comment error.
2011-01-02 18:48:49 +00:00
Mark de Wever
ecbabea838
New year copyright update.
2011-01-01 15:57:50 +00:00
Mark de Wever
2b8a5fb038
Update wiki comment format.
...
Changes the format and converts the comment in the code.
(Applies patch #2261.)
2010-12-20 21:08:42 +00:00
Guillaume Melquiond
eeb047de55
Fixed file headers so that they match the content of the COPYING file.
2010-09-01 21:12:38 +00:00
Mark de Wever
2512a8012c
Convert the wiki comment style.
2010-08-31 21:02:33 +00:00
Guillaume Melquiond
35807eec7d
Flushed image cache when changing language. (Fix for bug #15934.)
2010-07-18 09:50:36 +00:00
Mark de Wever
75a0839402
Added new experimental list box implementation.
...
The code is very experimental and incomplete and therefore ifdeffed with
GUI2_EXPERIMENTAL_LISTBOX.
2010-05-02 12:17:38 +00:00
Mark de Wever
17f8eaa475
New title screen now handles language changes.
...
After changing the language the title screen now directly shows the text
in the new language.
2010-04-02 09:07:02 +00:00
Mark de Wever
867f52dc96
Let windows register themselves automatically.
...
This reduces the bindings between modules.
2010-03-26 14:48:35 +00:00
Mark de Wever
980dd1b790
Clean up includes due to settings changes.
2010-01-11 22:11:12 +00:00
Mark de Wever
92f5f92ce5
New year copyright update.
2010-01-01 13:16:49 +00:00
Guillaume Melquiond
b3e24d2050
Removed code related to dummy locales.
2009-10-31 19:06:43 +00:00
Mark de Wever
79564213be
Rename NEW_find_widget to find_widget.
...
The old find widgets are gone so it's now easy to do the renaming.
2009-09-09 18:42:34 +00:00
Mark de Wever
9925affb4e
Update documentation and minor code cleanups.
2009-08-22 19:55:34 +00:00
Ignacio R. Morelle
50e4162272
You Fail at Copy-Paste, part 2.
2009-04-12 23:48:53 +00:00
Mark de Wever
27a0c47800
Wiki cleanups.
...
Move the GUIWindowWML items to GUIWindowDefinitionWML...
...and added an initial header and footer.
2009-03-08 11:51:40 +00:00
Mark de Wever
c4bdaeac0a
Remove the tooltip.
...
The text in the language dialog should always fit so no reason to use a
tooltip there.
2009-03-01 09:40:22 +00:00
Mark de Wever
b6cb955955
Let the language list always have the focus.
...
Now you can directly use up or down to select a language.
2009-01-04 11:24:04 +00:00
Mark de Wever
a5d1d2e969
New year copyright update.
2009-01-01 10:27:41 +00:00
Nils Kneuper
c84f995e88
add declarations of the textdomain to all files from the domains...
...
...-lib and -test even if they got no translateable strings the
declaration is done via this define: #define GETTEXT_DOMAIN
"wesnoth-lib" a short "how to get .cpp files translated" is left in
src/gettext.hpp
2008-12-28 21:40:02 +00:00
Mark de Wever
bdd600d006
Remove trailing whitespace.
2008-12-25 14:52:20 +00:00
Mark de Wever
90a090ac76
Let the window builder return a pointer.
...
The current design of twindow (and some other widget classes) have the
problem that they shouldn't be copied. The code doesn't copy the
objects as long as the compiler does a return value optimization,
which indicates a bad class design. By turning the return value into a
pointer the copying is no longer needed.
2008-12-25 14:36:20 +00:00
Mark de Wever
a963d007a0
Rewrote the listbox class.
...
Now uses the scrollbar container as base and the generator for its
items. The scrolling doesn't work properly yet.
2008-12-24 16:01:02 +00:00
Tomasz Śniatowski
b147c67934
use the string_map typedef in config.cpp and gui/ files...
...
...instead of repeating the std::map<....> type name all the time
2008-12-01 20:48:14 +01:00
Eric S. Raymond
9223460daa
Remove unused headers.
2008-11-09 04:35:13 +00:00
Mark de Wever
f9a15e6f0e
Move all log macros for the widget library to log.hpp.
2008-09-28 14:46:18 +00:00
Mark de Wever
458aba1da1
Remove twindow::recalculate_size()...
...
...it was turned into a nop and is really no
longer needed.
2008-08-18 16:24:14 +00:00
Mark de Wever
5420ef0ba1
Fix invalid log domains, spotted by ilor.
2008-08-12 20:31:04 +00:00
Mark de Wever
10840e969c
Move the return values from tbutton to twindow, where it belongs.
2008-08-06 12:27:03 +00:00
Mark de Wever
48c680c6c5
Wiki documentation update.
2008-07-19 22:21:29 +00:00
Mark de Wever
d7d8ba09b1
Rewrote the listbox row adding code in order to make it more flexible.
...
* Renamed to add_row(s).
* Added set_members which allows to modify certain member with help of a map.
* Used the new set_members in favour of tlistbox::titem.
2008-06-21 15:06:45 +00:00
Mark de Wever
2651422fcd
Comment out some unused parameters.
2008-06-12 19:12:28 +00:00
Mark de Wever
7b15d4ffa7
Refactoring; make a generic dialog class...
...
...and let the other dialogs inherit from this class. Also added some
wiki comment.
2008-06-10 21:10:55 +00:00
Mark de Wever
9766cc0466
Move the init code to the main init code and remove it from the dialogs.
2008-06-07 15:17:05 +00:00
Mark de Wever
011b767395
Remove some debug code.
2008-05-23 17:33:21 +00:00
Mark de Wever
0f6f0a1525
Added a new experimental feature in the new widget library.
...
This feature disables languages not available on the system. It has
only been tested on Linux and it can use more testing on other
platforms. (bug #11212 )
2008-05-18 09:34:19 +00:00