Commit Graph

1286 Commits

Author SHA1 Message Date
David Capello
8d53d10a77 Renamed SpriteList to Documents. 2011-03-13 17:40:37 -03:00
David Capello
9b32ebdad6 Rename Undo class to UndoHistory. 2011-03-13 17:33:42 -03:00
David Capello
27cf3f2f63 Add explicit to CurrentSprite/Reader/Writer(Context*). 2011-03-13 16:38:26 -03:00
David Capello
a8d9636467 Refactor filters (effects).
+ Added Filter, FilterManager, and FilterIndexedData interfaces.
+ Moved all widgets related to filters to src/commands/filters.
+ Added the filters library.
+ Added FilterWindow and one derived window for each filter.
2011-03-13 15:50:31 -03:00
David Capello
d20bd1a31b Add <colorpicker> element for XML widgets. 2011-03-13 15:33:04 -03:00
David Capello
654d14eede Console::showException() does not modify the exception (added "const"). 2011-03-09 00:18:43 -03:00
David Capello
69a3070018 Minor changes in gui.cpp. 2011-03-08 23:25:06 -03:00
David Capello
e0edf5625f Use Widget::layout() instead of Widget::setBounds(getBounds). 2011-03-08 23:23:13 -03:00
David Capello
f36a0f22b1 Fix bug of hidden widgets when the frame is shown.
This is (probably) a fix for bug #3050538 in sf.net tracker.
2011-03-08 23:21:37 -03:00
David Capello
bd69a216bb Remove unreferenced local variable warning. 2011-03-08 23:18:18 -03:00
David Capello
bb7d3a0b71 Move jwidget_relayout() to Widget::layout(). 2011-03-08 23:18:04 -03:00
David Capello
f6c48645f9 Adjustments to TODO.txt file. 2011-03-08 15:36:22 -03:00
David Capello
0401f4abd4 Remove gui/base.h from sprite.cpp 2011-03-08 15:23:29 -03:00
David Capello
47669fe6f1 Add SpriteReader wrapper to lock the sprite when Editor paints it.
+ Fixed critical bugs using "sprite resize" command and drawing
  the current editor (fixed usage of invalid memory pointers).
  It happens because the resize command is executed in a background
  thread, and at the same time the user can cancel or move a progress
  dialog (generating redraw events to the editor).
+ Anyway this change incorporates some other problems with effects
  where they keep locked the sprite in the whole command execution,
  so the effect preview cannot be visualized. This will be fixed with
  a refactor of the entire effect/preview stuff.
2011-03-08 01:25:46 -03:00
David Capello
6319af1676 Fix problems restoring preferred scroll in selected sprite. 2011-03-06 18:23:57 -03:00
David Capello
cea3ade78a Minor changes: comments to C++ style. 2011-03-06 16:55:26 -03:00
David Capello
b02b86b613 Fix compiling on Linux when XDGA is detected (fixed issue #12). 2011-03-06 16:20:11 -03:00
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
de47c6ff59 Rewritten palette editor using ColorSliders and HexColorEntry widgets. 2011-03-03 22:17:25 -03:00
David Capello
d7458bc78f Add ColorSlidersChangeEvent so ColorSliders::ColorChange signal
can receive the modified channel.
2011-03-03 22:16:54 -03:00
David Capello
bb1151c0ac Rewrite the entire color selector as C++ class.
+ Added ColorSliders widget for RGB, HSV, and Grayscale sliders.
+ Added HexColorEntry to show a color in HTML format.
2011-03-01 22:50:49 -03:00
David Capello
2ac1d38d62 Avoid sending keys to gui manager when a popup frame is visible. 2011-03-01 22:37:00 -03:00
David Capello
fd7e95035b Add degree symbol in string representation of HSV colors. 2011-03-01 22:36:18 -03:00
David Capello
a2eab0553c Fix critical bug using "thumbnails" dead-pointer after calling "destroy_thumbnails". 2011-03-01 21:07:28 -03:00
David Capello
824c309c8f Fix issue #8: saving .gif files with transparent backgrounds
does not clear the previous frame.
2011-03-01 19:22:17 -03:00
David Capello
26715e1a08 Add Slider::getMinValue and getMaxValue. 2011-02-24 18:13:00 -03:00
David Capello
b0ff50ec0e New color-bar with scrollable palette-view.
+ Removed palette-view from Palette Editor.
+ Fixed problems pasting RGB values in #hex format and HSV sliders.
2011-02-23 19:29:57 -03:00
David Capello
22a45a9acb Include system.h because we need JI_CURSORS in skin_theme.h. 2011-02-20 20:29:34 -03:00
David Capello
344faeff00 Add Border(int) constructor. 2011-02-20 20:25:57 -03:00
David Capello
95fd6c697c Change SIGNAL_COLORBUTTON_CHANGE to ColorButton::Change signal. 2011-02-20 19:37:42 -03:00
David Capello
716aa05294 Change drawing code of ColorButton from JM_DRAW to onPaint(). 2011-02-20 19:01:34 -03:00
David Capello
4e0ad7f839 Modify short color format in Color::toFormalString(). 2011-02-20 18:59:41 -03:00
David Capello
dea3962502 Remove deprecated colorviewer widget. 2011-02-20 18:40:16 -03:00
David Capello
ad12af7c8b Refactor the entire view widget to View, Viewport, and ScrollBar C++ classes. 2011-02-20 18:35:21 -03:00
David Capello
88112b7ffe Add some operators+(Border) to Border class and Border::getSize() member function. 2011-02-19 23:44:48 -03:00
David Capello
e2848f1f55 Add support for vertical-scrolling with mouse wheel in PaletteView widget. 2011-02-19 23:44:17 -03:00
David Capello
b2ff34909f Remove quick-menu stuff (used only in old jinete examples): 2011-02-19 23:11:40 -03:00
David Capello
d1baef1555 Add text-color to Label widget. 2011-02-19 23:08:15 -03:00
David Capello
96095159bb Include new src/gui/*.h header files in src/gui/gui.h. 2011-02-19 22:50:54 -03:00
David Capello
9b2cf15e94 Remove COLOR_SIZE macro in palette_view.cpp. 2011-02-19 22:41:09 -03:00
David Capello
e309656737 Add PaletteView::IndexChange signal (to replace SIGNAL_PALETTE_EDITOR_CHANGE). 2011-02-19 22:40:46 -03:00
David Capello
d72909e130 Change "images" variable in ji_move_region() from JList to std::vector. 2011-02-16 00:13:18 -03:00
David Capello
3617ae9242 Change "thumbnails" variable in src/util/thmbnail.cpp from JList to std::vector<> type. 2011-02-16 00:07:09 -03:00
David Capello
69b7e2f8f7 Change StatusBar::m_progress from JList to std::vector<> type. 2011-02-16 00:03:56 -03:00
David Capello
9e687d84b0 Add shortcut in the tool-tip of ToolBar. 2011-02-15 09:55:44 -03:00
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