Mark de Wever
2c3d8719f2
Some small cleanups.
2008-04-30 18:28:09 +00:00
Mark de Wever
2e7b554e10
Only allow set_size() to modify the size of a widget.
2008-04-30 12:31:51 +00:00
Mark de Wever
ff14c3865b
Another refactoring patch making load_config() more generic.
2008-04-18 19:29:43 +00:00
Mark de Wever
1f6aec3145
Make the redraw work properly, was broken due the new blit_surface() changes.
2008-04-17 06:02:35 +00:00
Mark de Wever
14199608f9
Allow a label to be multiline.
...
This can't be set in the config yet but is used for the tooltip and
help popup.
2008-04-13 16:58:37 +00:00
Mark de Wever
a1cbcd5a49
Rather large changeset, the primary change is allowing tooltips...
...
...and help messageto be shown. Secondary changes are:
- moving hovering in tcontrol instead of the widgets.
- make the visible flag working for drawing.
- small refactoring of the window_builder class.
2008-04-13 10:11:14 +00:00
Mark de Wever
1e71dd86df
Make the full_draw flag work for all controls.
2008-04-09 16:08:36 +00:00
Bruno Wolff III
c6a6cd0a0f
Prevent gcc 4.3 warning (promoted to error)...
...
...for having const for a function return type.
2008-04-09 01:39:06 +00:00
Mark de Wever
8d2a2a6d54
Another refactoring.
...
- remove set_best_size()
- move more code in tcontrol.
2008-04-08 16:04:03 +00:00
Mark de Wever
8d60860970
control::label std::string -> t_string
2008-04-07 18:51:46 +00:00
Mark de Wever
0f420d967a
Started to implement the grid flags:
...
- panel no longer decends from a grid but contains one, give less problems with
the functions with the same name.
- flags are read from the .cfg file.
Still more testing and some cleaning up is required.
2008-04-07 18:16:30 +00:00
Mark de Wever
941bc3dc59
Made text_font_size mandatory and fixed all content to obey that.
...
Cleaned up some std::cerr to use proper logging.
Rather ugly proof-of-concept to get the cursor working in a
text_box. This still needs quite some polishing but the basics work.
2008-04-06 14:06:28 +00:00
Mark de Wever
7fb7a01d26
Small cleanup.
...
- Added some comment.
- Made a separate function to update the canvasses.
2008-04-06 08:41:23 +00:00
Mark de Wever
f7a61d825a
Header dependency cleanup.
2008-04-05 23:25:19 +00:00
Mark de Wever
a98d2bf535
Move the tcontrol into its own file.
...
Made some code in the widgets more generic and moved it into the
tcontrol class.
2008-04-05 21:51:46 +00:00