679 Commits

Author SHA1 Message Date
Eric S. Raymond
f384fe4058 Pango-enable message= attributes within [message].
This patch includes (a) switching on this feature in the C core (and
diabling grotty old Wesnoth markup in this context), (b) an upgrade to
wmllint to do most of these conversions automatically (e.g. in TRoW),
(c) hand-fixes for some unual cases (in the Tutorial), and (d) a test
of Pango <i> (in THOT).
2009-03-29 20:55:13 +00:00
Guillaume Melquiond
aba28c2512 Removed duplicated config accesses. Fixed some documentation typos. 2009-03-29 19:43:28 +00:00
Mark de Wever
6c7d19f0b4 Add the initial draft of the new layout algorithm.
Still needs more reviews and polishing. But first start to implement the
basics to see whether there are still some flaws left.
2009-03-29 10:11:42 +00:00
Pauli Nieminen
7f6ac6ca77 Fixed compilation with -D_GLIBCXX_PARALLEL 2009-03-24 12:58:14 +00:00
Guillaume Melquiond
353ba88952 Moved to loops based on config::all_children_range. 2009-03-21 18:44:26 +00:00
Guillaume Melquiond
fe1a2e60f6 Removed config::get_children. 2009-03-20 07:09:08 +00:00
Guillaume Melquiond
acd35370ef Removed config::get_children. 2009-03-20 07:09:05 +00:00
Guillaume Melquiond
cf8325c20c Replaced field config::values by function...
...config::attribute_range which returns opaque iterators.
2009-03-20 07:08:43 +00:00
Guillaume Melquiond
c8f4f7ecdf Removed config::child_list. 2009-03-20 07:07:24 +00:00
Mark de Wever
7251e8599b The dialog now always uses the full map area width.
Baufo discovered if the map is smaller as the available map area the
dialogs will use the map width instead of the full area available for
the map. Now always use the available width.
2009-03-19 20:49:37 +00:00
Mark de Wever
93e2d47392 Handle layout problems more gracefully.
Instead of asserting show an error to the user, with this change the
asserts should really indicate an engine error.
2009-03-18 23:26:13 +00:00
Mark de Wever
3d6ce66f1d Fix a dialog size problem returning invalid sizes.
Fixes bug #13203.
2009-03-17 20:41:59 +00:00
Mark de Wever
f6b3368aac Strip trailing whitespace. 2009-03-15 16:50:42 +00:00
Mark de Wever
145641e3f2 Activated the new layout algorithm.
This algorithm will now only be used if the normal layout algorithm
fails, this to avoid possible regressions in the new algorithm.  After
1.6 this algorithm will be polished and replace the current
algorithm. (Fixes bug #13180).
2009-03-15 16:42:15 +00:00
Mark de Wever
bcda42cfa6 Add another way to try to fit the widgets.
This way a widget will be tried with wrapping and horizontal
scrollbars in one run. If that fails a second run will try to shrink
them. The code calling this way will be added later.
2009-03-15 13:46:39 +00:00
Mark de Wever
1ec9ed1dfa Add the initial code for shrinking widgets. 2009-03-15 12:52:08 +00:00
Mark de Wever
bcb2d6fba3 Add a new init routine.
This is the start of a new and better layout algorithm.

These changes are rather late in the 1.6 cycle and will only be used if
the previous routines find no solution. This way the changes can cause
no regressions. In 1.7 these routines will become the default layout
algorithm.
2009-03-15 12:06:50 +00:00
Mark de Wever
f00449c66d Improve debug output. 2009-03-14 11:09:52 +00:00
Mark de Wever
9ed2d59ff1 Remove an unneeded semicolon. 2009-03-14 11:09:48 +00:00
Mark de Wever
c3c6f70735 Remove an extra space. 2009-03-14 11:09:25 +00:00
Mark de Wever
c9a63e9f0f The message dialog no longer uses a magic value.
Before the width offset of the map was hardcoded, now it uses the actual
map size so the magic value is no longer needed.
2009-03-13 21:03:24 +00:00
Guillaume Melquiond
dc608087c4 Fixed header dependencies. 2009-03-10 14:55:11 +00:00
Mark de Wever
8ae4ff36a1 Fix a mouse button assertion failure.
Some debug code which remained to find unknown mouse buttons shouldn't
be available in production code. Especially since Silene explained there
can be more buttons as documented in the SDL documentation. Fixes
bug #13126.
2009-03-09 21:34:13 +00:00
Gunter Labes
c34314a915 typo fix 2009-03-09 09:02:02 +00:00
Mark de Wever
b2a890efd0 Doxygen fixes. 2009-03-08 18:45:19 +00:00
Mark de Wever
f58a580932 Doxygen fixes. 2009-03-08 18:45:15 +00:00
Mark de Wever
90bbc38f67 Improve the showing of ellipses in the textbox.
Depending on the location of the cursor the ellipses are shown at the
beginning or the end. If the text is way too long the text under the
cursor can still be hiden, but pango doesn't seem to have a smart
ellipse mode. Fixes bug #13083.
2009-03-08 18:01:55 +00:00
Mark de Wever
fecdb7660c Expose more parts of the ttext_ member.
This is needed to have more control over where to place the ellipse.
2009-03-08 18:01:47 +00:00
Mark de Wever
477692b573 Don't use a scrollbar in an invisible widget.
AI0867 discovered the following problem:

start the test scenario, move a unit to "open sesame", move a unit to
"math test", enter a number longer than the input box, select "ints &
floats".

The game ended with an assertion failure due to using a scrollbar on an
invisible widget. Added a minimal fix, this needs to be fixed cleaner
post 1.6.
2009-03-08 16:33:45 +00:00
Mark de Wever
162d34381c Updated wiki comment. 2009-03-08 13:13:21 +00:00
Mark de Wever
37865d338b Updated wiki comment. 2009-03-08 13:13:14 +00:00
Mark de Wever
6aeb9b6e7d Updated wiki comment. 2009-03-08 13:13:09 +00:00
Mark de Wever
0b58a97c34 Updated wiki comment. 2009-03-08 13:13:04 +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
Thomas Baumhauer
2b9a0ee678 adding descriptions for the login and cmd wrapper dialog 2009-03-08 11:46:49 +00:00
Mark de Wever
f51ef316d3 Update the list with windows. 2009-03-08 11:33:25 +00:00
Mark de Wever
62c8865c28 Remove an obsolete section. 2009-03-08 11:33:20 +00:00
Mark de Wever
abe08f2c2a Clean up the variables page and add a grid type. 2009-03-08 11:33:10 +00:00
Mark de Wever
bf01f88a72 Move info to the new GUIWidgetInstanceWML page. 2009-03-08 10:24:59 +00:00
Mark de Wever
794c180703 Add a footer to GUIWidgetDefinitionWML. 2009-03-08 10:24:46 +00:00
Mark de Wever
448243e6d0 Remove obsolete comment. 2009-03-08 10:24:41 +00:00
Mark de Wever
d852e87bd6 Cleaned up code for the window list. 2009-03-08 10:24:37 +00:00
Mark de Wever
50a01f3376 Cleaned up the widget list. 2009-03-08 10:24:30 +00:00
Mark de Wever
038ba7ee06 Move the definitions to their own wiki page. 2009-03-07 21:32:23 +00:00
Mark de Wever
c6e37b1edd Fix a typo 2009-03-07 21:32:16 +00:00
Mark de Wever
05b2176f94 Add an extra formatting option to the grabber.
Also cleaned up the source of the grabber slightly. Used the new
formatting at some places.
2009-03-07 21:31:40 +00:00
Guillaume Melquiond
79f5e8aefa Changed to proper WML lookup. 2009-03-03 17:44:21 +00:00
Mark de Wever
75b8f16e27 Properly reset the scrollbar mode when resizing.
Before after the first sizing and the scrollbar not needed it was set to
a disabled mode, which meant the scrollbar would no longer be shown when
needed after resizing. Fixes bug #13018.

Another unrelated bug was discovered while fixing this issue, the side
panel gets wrongly overdrawn. This due to the undrawing, which will be
fixed post 1.6.
2009-03-01 17:42:58 +00:00
Mark de Wever
978aa913ad Add the preview pane for the campaign dialog.
The pane still needs quite a bit tuning and the extra layout phase looks
rather bad.
2009-03-01 16:24:42 +00:00
Mark de Wever
fb6ea9965e Reimplement the value changed callback.
It seems the callback got lost in the rewrite. Added a hacky version
will need more testing later.
2009-03-01 16:24:29 +00:00