Commit graph

1566 commits

Author SHA1 Message Date
Mark de Wever
479b1f5c5a Add a new framework to add a history to a ttext_box...
...and store it in the preferences.

Saving to the preferences needs some more work (patch #1054).
2008-04-17 16:39:47 +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
7369f27443 Add the font style parameter.
Add a new label type for the window title.

Use the new window title label in the addon connect dialog.
2008-04-12 10:10:36 +00:00
Mark de Wever
b2332eb70a Rename all xxx_defintion to the more generic definition...
fixes a bug where all widgets except the button will fall back to the
default definition.
2008-04-11 18:53:24 +00:00
Mark de Wever
2ded2dc392 Label text should start at offset 0. 2008-04-11 17:43:35 +00:00
Mark de Wever
4728c92353 Make the button image scale and let all buttons use the image...
...instead of the drawn version.
2008-04-11 17:40:44 +00:00
Mark de Wever
decb6f51d8 Widgets can have a size of 0,0 so update the comment.
Adjust the label to set no default and minimum size.
2008-04-11 17:31:44 +00:00
Mark de Wever
8bcb690932 Added stretch_surface_horizontal and stretch_surface_vertical.
The functions stretch a surface based on the first row/column. This
looks better for the widget borders as scale_surface and should be
faster (not tested).  Added the option to the widget library to use
these functions and convert the window borders to use the new option.
2008-04-10 16:52:18 +00:00
Mark de Wever
3967001cb7 Add positioning and scaling to an image on the canvas.
With this feature the window can look much more like the original so
also made that change.
2008-04-09 19:04:01 +00:00
Mark de Wever
e2b44cf885 get_minimum_size() and get_best_size() now look at the actual text width. 2008-04-09 16:51:21 +00:00
Mark de Wever
b6b02b26e2 More refactoring, grids can now be nested properly...
...allowing better placement of widgets.
2008-04-09 15:31:07 +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
2f2abf7cd0 Another cleanup patch, which makes code more generic.
Still more room for improvement in that area.

Add some more states to labels and text boxes.
2008-04-06 08:08:03 +00:00
Mark de Wever
13bab2587d Add the initial gui definitions. 2008-04-05 14:12:42 +00:00