Commit Graph

1341 Commits

Author SHA1 Message Date
David Capello
82931688ad Fix position of tool tip in tool-bar. 2011-02-15 09:50:53 -03:00
David Capello
9658fc3747 Fix problem painting a new tip window (with alpha) over a dirty (non-validated) area in tool-bar. 2011-02-15 09:50:14 -03:00
David Capello
cb2eb74ff0 Add ArrowAlign to TipWindow so the tip is pointing to some widget. 2011-02-15 09:02:51 -03:00
David Capello
f96d1f7fa3 Move jwidget_init_theme() to Widget::initTheme(). 2011-02-15 09:00:29 -03:00
David Capello
5de5cfc8e1 Add Them::paintTooltip and changed the tooltip skin with rounded borders and shadow.
+ Move all parts definition to src/skin_parts.h.
2011-02-14 22:50:39 -03:00
David Capello
01f3f9ffab Use Graphics pointer in PopupFrame/TipWindow::onPreferredSize/onPaint events.
+ Add Graphics::drawString/fitString/drawStringAlgorithm.
2011-02-13 23:16:10 -03:00
David Capello
deae4d820a Setup the widget's font in Graphics created for PaintEvents. 2011-02-12 21:33:14 -03:00
David Capello
a33f10373c Add ScreenGraphics to get a "Graphics" to draw directly onto the screen. 2011-02-12 21:32:43 -03:00
David Capello
fe50b6a30a Change painting code of some widgets from JM_DRAW to onPaint().
This need future work to avoid using ji_screen and access to the
drawable area only through Graphics pointer inside the PaintEvent.
2011-02-12 09:32:57 -03:00
David Capello
890ec324f9 Add Widget::setDoubleBuffered(bool) to use double-buffering method
automatically when ji_screen == real screen. Activate this attribute
for palette editor sliders.
2011-02-05 16:26:01 -03:00
David Capello
86fb4c0f90 Change Slider paint code from JM_DRAW message handler to onPaint() method.
+ Rename Theme::draw_slider -> paintSlider(PaintEvent&)
+ Add methods in Graphics to draw images, rectangles, and text.
+ Add IntersectClip class.
+ Add Widget::getClientBounds().
+ Modify ISliderBgPainter::paint to receive a Graphics instead of BITMAP.
+ Add more methods in SkinTheme to draw theme parts in Graphics.
2011-02-05 12:03:22 -03:00
David Capello
6480f09409 Add an item in TODO.txt about lack of feedback with Shift+S keyboard shortcut. 2011-02-05 10:46:44 -03:00
David Capello
dc4079a46e Fix problem with PaletteEditor "switch" parameter in menu item "View > Palette Editor" command. 2011-02-02 00:42:48 -03:00
David Capello
56c8d34237 Minor changes in font.h (format). 2011-02-02 00:42:19 -03:00
David Capello
a7ea661ad0 Overload gfx::Border class operators to increment/decrement border size. 2011-01-30 23:18:52 -03:00
David Capello
f8e940d7a4 Sort #include lines in gui.h. 2011-01-30 20:38:07 -03:00
David Capello
e1e4adf68d Add unit tests for gfx::Rect class. 2011-01-30 20:03:25 -03:00
David Capello
7273b95b68 Rename Rect::inflate() -> enlarge() and Rect::deflate -> shrink(). 2011-01-30 20:03:10 -03:00
David Capello
2baa342a65 Remove "j" prefix from some files in gui library. 2011-01-30 19:12:10 -03:00
David Capello
4ebab86145 Fix "discards const qualifier" gcc warning. 2011-01-28 04:58:51 -08:00
David Capello
2d6e891178 Fix gcc warning about incompatible memcpy implicit declaration. 2011-01-28 04:57:35 -08:00
David Capello
69fa03dcd7 Avoid deprecated allegro functions. 2011-01-28 04:55:55 -08:00
David Capello
196d1d65d3 Fix gcc warning about incompatible implicit malloc() definition. 2011-01-28 04:47:18 -08:00
David Capello
b15f21bbd0 Fix error in if() expression in giflib/CMakeLists.txt. 2011-01-28 09:45:41 -03:00
David Capello
6ef082ad7f Rename PalEdit to PaletteView widget to avoid confusion with the palette editor command. 2011-01-28 09:28:54 -03:00
David Capello
ed2c870059 Replace draw_bounds_template() macro with SkinTheme::draw_bounds_template member function. 2011-01-28 09:13:43 -03:00
David Capello
1738a93fca Add Widget::get/setBorder(). 2011-01-27 23:30:11 -03:00
David Capello
034a943a0c Add gfx::Border class. 2011-01-27 23:29:46 -03:00
David Capello
40df2e1d73 Minor change in event.h. 2011-01-27 18:38:27 -03:00
David Capello
85203205b8 Add PaintEvent and Graphics (future replacement of JM_DRAW message). 2011-01-27 18:38:16 -03:00
David Capello
5eba876fce Minor changes in jintern.h 2011-01-27 17:21:43 -03:00
David Capello
5a9d991219 Convert jalert to Alert C++ class. 2011-01-27 17:21:33 -03:00
David Capello
f558666056 Move src/gui/jalert.h to src/gui/alert.h. 2011-01-27 00:29:54 -03:00
David Capello
8ae24b5a58 Refactor jimage widget to ImageView C++ class. 2011-01-27 00:18:47 -03:00
David Capello
8b67fd0bf3 Convert jgrid widget to C++ Grid class (avoid reallocs, use std::vector for internals instead). 2011-01-26 19:51:52 -03:00
David Capello
d8a3d27c0f Convert jbox widget to Box class. 2011-01-24 19:48:09 -03:00
David Capello
e32d8dc633 Rename src/gui/jview to src/gui/view. 2011-01-24 18:09:54 -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
18db7513a8 Open new sprites in the center of the current sprite. 2011-01-23 21:15:00 -03:00
David Capello
73d7c608a1 Convert "list" collection in "move_focus" function to std::vector. 2011-01-23 20:35:27 -03:00
David Capello
048bdbfb36 Convert "timers" collection to std::vector (to avoid using a raw array of pointers). 2011-01-23 20:33:22 -03:00
David Capello
f018ab64df Move "Constant Frame Rate" as a menu option under "Frame" menu (before it was a button in "Sprite Properties" dialog).
+ Added "frame" parameter to FrameProperties command.
+ Removed the global function dialogs_frame_length().
2011-01-23 20:27:52 -03:00
David Capello
749ff05ef7 Add support to load only the first frame of the animation (used in file selector's preview). 2011-01-23 19:35:22 -03:00
David Capello
36e605bdf2 Move jmalloc/jfree to base/ library as base_malloc/free (remove new/new0/renew macros). 2011-01-23 19:19:18 -03:00
David Capello
88f442b831 Avoid memory leaks from GuiXml singleton. 2011-01-22 20:30:44 -03:00
David Capello
8828289e1f Update tasks for next release in TODO.txt. 2011-01-22 19:35:53 -03:00
David Capello
1e88a438eb Rename PopupWindow to PopupFrame. 2011-01-22 11:28:40 -03:00
David Capello
05cc6f6ba6 Remove jwidget_close_window function. 2011-01-21 23:49:07 -03:00
David Capello
75e618c6fa Remove jwidget_send_message. 2011-01-21 23:33:56 -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