Mark de Wever
ba85499fda
Made the scrollbar code more generic.
2009-02-28 17:45:18 +00:00
Mark de Wever
a5eb28f569
Add a new set of transparent navigation buttons.
...
These will be used in the transparent wml message dialog.
2009-02-28 17:34:35 +00:00
Mark de Wever
0a78fd1ed4
New transparant button in transparent dialog.
...
The art might need some more polishing, but rather leave that to an artist.
2009-02-28 17:15:50 +00:00
Mark de Wever
c0ceab1d57
Refactor the button widget.
...
This way multiple button variations can be defined in the macro.
2009-02-28 17:04:05 +00:00
Mark de Wever
9efa34b263
Implement the keyboard focus for the text widget.
...
Now it should be clear which widget has the keyboard focus.
2009-02-10 19:47:39 +00:00
Mark de Wever
48be9a6619
Add the real support for the markup :-/
...
Seems this file got forgotten, without it the markup won't work
properly since it controls the setting in the label for the canvas.
2009-02-01 11:56:38 +00:00
Mark de Wever
133eb440fb
Move the panel definition to its own file.
2009-01-23 22:54:51 +00:00
Mark de Wever
2a23ba1884
Cleanup part 5.
...
The full redraw flag is no longer needed since widgets are always fully
redrawn now.
2009-01-03 15:45:38 +00:00
Mark de Wever
2cc2a51603
Make NEW_DRAW unconditionally, WML side.
...
Remove the condition from the WML, also a few code changes which are not
longer needed, now that the WML has been converted.
2008-12-29 08:51:37 +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
Mark de Wever
ebf482bbb5
Move some macros to their own file.
...
This way those macros can be reused for all containers that need scrollbars.
2008-12-13 11:35:08 +00:00
Mark de Wever
fba341cd49
Add a proof of concept new container class.
...
With the change of the drawing engine a rewrite of the containers is
needed as well. This adds a new container class which the scroll_label
uses. The class can't forward events and also the scrollbars are
always visible.
2008-12-08 21:26:35 +00:00
Mark de Wever
2f700cd925
Added a horizontal scrollbar widget.
...
Also added 'new' art, since the current toolkit has no art for it. The art is
of the copy-paste-rotate kind. (The scrollbar is not used yet.)
2008-12-04 19:00:44 +00:00
Nils Kneuper
01c575209c
add a textdomain declaration to every .cfg file...
...
...(via utils/change-textdomain -t)
2008-10-07 10:35:42 +00:00
Mark de Wever
9f8cf8935a
Fix some macro parameters.
2008-10-04 13:39:57 +00:00
Mark de Wever
413402e4bc
Aargh forgot one more file.
2008-09-22 21:38:26 +00:00
Mark de Wever
11cccff142
Some fixes to the scroll label.
...
* Render the text a the right location.
* Make the label grow properly.
2008-09-21 10:33:57 +00:00
Mark de Wever
3a47eef6b3
Add the scroll label widget.
2008-09-19 16:39:16 +00:00
Mark de Wever
7f13663100
Fix ltr language alignement problems in the language dialog.
...
Needed to set the proper maximum width and use the extends size and
offset to get the proper required width. Added a debug ostream function
which already has been written a few times and added some debug code.
2008-09-07 19:53:31 +00:00
Mark de Wever
6e767674bd
When the text on a label doesn't fit, use an ellipse instead of truncating.
2008-09-07 19:53:19 +00:00
Mark de Wever
289aaa9f0b
Listbox cell refactoring.
...
The cells in a listbox now share some more macros and the background of
the selected cell now looks like the version in the older gui.
2008-09-02 18:03:53 +00:00
Mark de Wever
97a72eff4c
Removed the usage of deprecated macros.
2008-08-31 17:43:25 +00:00
Mark de Wever
45ebc2acf0
Avoid the text box text overflow termination.
...
When the text was too long the cursor would be drawn out of bounds which
caused an assert which terminated Wesnoth. Now the text will no longer
be drawn out of bounds and be ellipized. (The ellipses are always drawn
at the end, which will be fixed later.)
2008-08-30 15:17:58 +00:00
Mark de Wever
66d6be81bc
Change the button to use the new macros.
2008-08-30 15:17:49 +00:00
Mark de Wever
b641844238
Cleanup the window definition.
2008-08-29 19:26:17 +00:00
Mark de Wever
ddc3769581
Cleanup patch to move macros in the string.
2008-08-29 19:26:12 +00:00
Mark de Wever
6ce967d869
Remove an obsolete proof-of-concept widget.
2008-08-29 18:34:53 +00:00
Mark de Wever
a5219f5df2
Updated to the new style.
2008-08-28 17:24:00 +00:00
Mark de Wever
708c847124
Updated to the new style.
2008-08-25 15:36:05 +00:00
Mark de Wever
653bee39bd
Updated to the new style.
2008-08-25 15:36:01 +00:00
Mark de Wever
b5ae677123
Updated to the new style.
2008-08-25 15:35:57 +00:00
Mark de Wever
72f8b75d53
Updated to the new style.
2008-08-25 15:35:52 +00:00
Mark de Wever
98c8377a09
Converted the listbox items with icons to the new format.
2008-08-23 20:24:45 +00:00
Mark de Wever
42e30eb72d
Changed the sizes of the listbox...
...
...so it can be used for normal and tiny gui.
2008-08-23 20:24:33 +00:00
Mark de Wever
030423a3b3
Fix the size problems for the listbox.
...
I forgot to add the resolutions so the last was always picked which
caused the tiny gui version never to be selected.
2008-08-23 18:59:29 +00:00
Mark de Wever
395b129ccd
Merge the up and down arrow in one file.
...
With some macros it can be made quite the same and easier to add more
buttons in the future. Also added a tiny gui version.
2008-08-23 17:39:58 +00:00
Mark de Wever
56c14b6372
Change the vertical scrollbar to use more macros...
...
...and be usable with tiny-gui.
2008-08-23 16:54:18 +00:00
Mark de Wever
948d239017
Remove text_font_size since it's no longer mandatory...
...
...and makes no sense here.
2008-08-23 16:54:12 +00:00
Mark de Wever
3b22e1c100
Refactored the listbox text items.
...
More macros and added the tiny-gui definitions.
2008-08-23 16:54:00 +00:00
Mark de Wever
155336027e
Textbox widget definition refactoring.
...
Cleaned up the widget to use the new macros and also added the (not so
well) tested code for tiny gui.
2008-08-23 13:44:19 +00:00
Mark de Wever
444f77e141
Fix a typo in a macro name, spotted by Zookeeper.
2008-08-22 19:33:45 +00:00
Mark de Wever
1af166edc6
Refactored the label definition and added a tiny-gui version.
2008-08-22 19:12:18 +00:00
Mark de Wever
af42d9eb9c
Found out the button should use the small font,
...
...also restored the normal font to its previous value.
2008-08-22 18:58:44 +00:00
Mark de Wever
c47f2fc58a
Cleaned up the macros and used more macros for the button.
...
Also add a definition for tiny gui in the button, other widgets will follow.
2008-08-21 17:56:33 +00:00
Ignacio R. Morelle
534e51c76b
Fixed misspelled preprocessor directive (#unddef, should be #undef)
2008-08-15 22:36:01 +00:00
Mark de Wever
a506c03625
Add a new toggle button type for the resize direction in the new editor.
...
Also added proof-of-concept code in the editor and made a tight grid.
2008-08-12 20:05:32 +00:00
Mark de Wever
56b299a714
Initial version of the minimap widget.
...
* The C++ of the widget has the option to set border sizes, but this hasn't
been exposed to WML yet.
* Moved the menubar around to keep it in alphabetic order.
2008-07-26 09:45:18 +00:00
Mark de Wever
477e594938
Add the new menubar code, which isn't used yet.
2008-07-18 20:41:09 +00:00
Mark de Wever
bdd251739f
Fix some typos.
2008-07-18 19:48:53 +00:00
Mark de Wever
c4c9ca4060
Allow the label of the slider to be customized...
...
...so it can display special values it needed.
2008-07-18 16:43:49 +00:00