David Capello
6d5531b998
Replace old gfx-data with graphics from the skin sheet.
...
+ Removed gfxdata.cpp file.
+ Removed get_gfx() from modules/gfx.h/cpp.
+ Added skin parts for each removed graphics of gfxdata.
+ Added IButtonIcon interface and an implementation for skin theme.
+ Removed "icon_buttons" from gui.cpp.
+ Now icons in button are set through set_gfxicon_to_button function.
+ Removed from Theme class check/radio_icon_size member variables
(they are replaced with the new IButtonIcon interface).
+ Removed jdraw_inverted_sprite(), now each icon has it normal/selected
version in the skin sheet.
2011-03-06 16:15:05 -03:00
David Capello
f96d1f7fa3
Move jwidget_init_theme() to Widget::initTheme().
2011-02-15 09:00:29 -03:00
David Capello
2baa342a65
Remove "j" prefix from some files in gui library.
2011-01-30 19:12:10 -03:00
David Capello
58b2c1bcd0
Improve palette editor's RGB/HSV sliders.
...
+ Added SkinSliderProperty and ISliderBgPainter to draw a customized background in sliders.
+ Moved SkinTheme to src/skin/ directory.
2011-01-24 00:03:38 -03:00
David Capello
cb6d70521f
Replace jwidget_dirty/invalidate and Widget::dirty functions with new Widget::invalidate* member functions.
2011-01-21 19:45:04 -03:00
David Capello
86e145f0ed
Remove jwidget_get_parent/manager/parents/children/pick/has_child functions.
2011-01-21 18:54:47 -03:00
David Capello
74b7442ae4
Replace jwidget_get/set_theme with Widget::get/setTheme.
2011-01-21 18:08:25 -03:00
David Capello
fc263ddb88
Move SkinneableTheme in src/modules/ directory to SkinTheme in src/.
2011-01-21 17:29:45 -03:00
David Capello
d6eb20ef7e
Update copyright year to 2011.
2011-01-18 20:49:53 -03:00
David Capello
cb3dd70fb8
Move Jinete library to src/gui directory (future gui-lib).
2010-09-26 15:59:32 -03:00
David Capello
7d47093acc
Convert jbutton widget to ButtonBase, Button, CheckBox, and RadioButton C++ classes.
...
+ Add ButtonBase::Click signal.
+ Button does not close the window by default (you have to configure this action manually when Click signal is triggered).
+ Add "closewindow" attribute to <button> widget in XML files.
+ Move "bevels" to SkinProperty.
+ Convert colorbutton widget in ColorButton C++ class.
2010-08-23 17:41:19 -03:00
David Capello
7ba3c5df9d
Fix warnings in GCC (unused variables, size_t and int comparisons, unhandled enum cases in switch, etc.).
2010-08-11 23:42:03 -03:00
David Capello
4e72997a02
Use Allegro's ASSERT() instead of assert().
2010-08-03 23:33:44 -03:00
David Capello
ec7795fc33
Rename Widget::msg_proc to Widget::onProcessMessage.
2010-08-02 21:29:56 -03:00
David Capello
a3f18e5aaf
Fixed minor problem with background color in Tabs widget's buttons.
2010-07-31 13:08:13 -03:00
David Capello
0fdd544524
Tabs widget is double buffered now.
2010-07-26 16:52:40 -03:00
David Capello
100073f986
Added BITMAP argument in jdraw_text() function.
2010-07-26 00:28:24 -03:00
David Capello
c1a98a8b06
Added animations to Tabs widget when adding and removing tabs, and scrolling with mouse wheel.
2010-07-20 00:59:52 -03:00
David Capello
ccc2b35ab0
Added Tabs::calcTabWidth() method to replace CALC_TAB_WIDTH macro.
2010-07-19 23:56:12 -03:00
David Capello
47aa64efe4
Removed jwidget_enable/disable/is_enabled/is_disabled functions.
2010-07-03 15:26:27 -03:00
David Capello
447f6438a4
Removed jwidget_select/deselect/set_selected/is_selected/is_deselected functions.
2010-07-03 15:03:26 -03:00
David Capello
93f7d76715
Converted tabs widget to Tabs class and ITabsHandler interface.
2010-06-13 17:51:22 -03:00
David Capello
1e3e4a7bc7
Now SkinneableTheme::draw_bounds*() member functions
...
receive destination BITMAP. With this we eliminated all
hacks of the ji_screen <-> double-buffer switching style.
2010-04-23 22:36:40 -03:00
David Capello
a7ecb08f2c
Fixed some GCC warnings and errors.
2010-03-30 09:48:19 -03:00
David Capello
4f40d89c6f
Added mini-look to tabs buttons.
2010-03-24 22:08:22 -03:00
David Capello
104d315f25
Applied guiscale to tabs widget.
2010-03-20 12:55:25 -03:00
David Capello
9535b085fe
Removed guiscale() from ASE and added jguiscale() in Jinete.
...
With this change we can apply jguiscale() in some places like jalert and jfiles.
2010-03-08 00:42:41 -02:00
David Capello
0a7136a0b4
Added underline_height in jdraw_text() function.
...
Removed jdraw_widget_text() (deprecated).
2010-03-07 23:16:20 -02:00
David Capello
b747ccdaa6
Updated copyright year to 2010
2010-02-01 21:25:40 +00:00
David Capello
96759c9c17
Converted all TRUE/FALSE to C++ true/false
2010-01-30 16:43:13 +00:00
David Capello
77c009de55
Renamed jwidget to Widget.
...
Refactored jwidget_set_text to Widget::setText (same for setFont, setEnabled, etc.).
Created "Frame" class.
Refactored "jwindow_funcname" functions to "Frame::funcname".
Renamed JWidgetPtr to FramePtr.
2010-01-26 00:38:05 +00:00
David Capello
b585600a19
Fixed a couple of bugs:
...
+ in tabs_remove_tab selected/hot tabs are set to NULL.
+ the select_callback is called only for the hot tab (if hot is NULL, now the selected is not used anymore).
2009-11-22 14:14:06 +00:00
David Capello
3626589229
Fixed little details in tabs gfxs.
2009-11-22 02:16:29 +00:00
David Capello
9e0928ca66
Fixed combo-box graphics.
2009-11-22 00:26:58 +00:00
David Capello
5d64181f16
Added SkinneableTheme class. Thanks to Ilija Melentijevic for the graphics.
2009-11-21 20:02:31 +00:00
David Capello
6d04c3815c
Now jtheme is a class with member functions; and jwidget has a virtual msg_proc.
2009-11-19 02:59:20 +00:00
David Capello
6f9bccd65b
Changed jwidget to a C++ class with methods.
2009-05-30 21:22:52 +00:00
David Capello
8e498470d5
Fixed bug #2511762 (thanks to Clayton Enga for the patch).
...
Added the feature #2419098 (David Campo idea).
2009-01-24 00:41:01 +00:00
David Capello
77b06bf748
Added support to close tabs with middle button.
2008-10-16 02:19:00 +00:00
David Capello
c35c452a80
Converted GfxObj and all the hierarchy of graphics objects to classes.
...
Removed "(void)" -> "()".
2008-10-01 01:27:51 +00:00
David Capello
a587132ffe
Project converted to C++.
2008-09-30 21:01:54 +00:00