David Capello
e8f4c61fa7
Palette editor now is redrawn when the palette changes externally (e.g. by undo/redo actions).
2011-08-09 21:45:22 -03:00
David Capello
604deab93e
Fix problem with new lines.
2011-07-31 23:42:12 -03:00
David Capello
96d263f50e
Move src/core/ to src/
...
+ Renamed cfg.cpp to ini_file.cpp
2011-06-29 22:51:46 -03:00
David Capello
e5b2a9c5e7
Modify PaletteView selection, replacing the "rectangle-range" with
...
the normal behavior for Ctrl+click: select several palette entries
one by one.
2011-06-26 19:07:19 -03:00
David Capello
2689d2fbb9
Add a label to show the selected palette entry in the Palette Editor.
2011-06-25 21:28:36 -03:00
David Capello
9b658ad24b
Generate a palette change event when a color entry is modified
...
using the Palette Editor (and set_current_palette() is not used).
2011-06-25 20:18:24 -03:00
David Capello
db4fc75f2a
Set minifont for "Edit Pal" button and convert it to check-box behavior.
2011-04-02 23:10:02 -03:00
David Capello
ff897fea34
Remove JMessage and jmessage union, use Message* and Message instead.
2011-04-02 13:14:07 -03:00
David Capello
9d744504a6
Rename some Editor's member functions to camelCase.
2011-04-01 22:23:38 -03:00
David Capello
dc58651f79
Remove UndoHistory::undo_* member functions to use Undoers directly
...
and to avoid undo-lib <-> undoers circular dependency.
2011-03-30 18:27:52 -07:00
David Capello
0bd6e19093
Replace jwidget_add_child/remove_child/replace_child with Widget's methods.
2011-03-29 21:35:17 -03:00
David Capello
df01255b51
Use OVERRIDE macro in more member functions (onProcessMessage, etc.).
2011-03-27 20:42:16 -03:00
David Capello
b40a20e8aa
Move src/widgets/editor.h to src/widgets/editor/editor.h.
2011-03-27 14:54:37 -03:00
David Capello
f854c7acf5
Fix bug #14 , don't ask for saving changes when read-only commands are used.
...
+ Added a new attribute for each undo item (undo::Modification).
+ Each item now modifies or does not modify the document (e.g. selection
actions do not modify the document).
+ Added an asterisk in tabs when the document is modified.
2011-03-26 19:58:52 -03:00
David Capello
8e5c950df8
Refactored the entire Undo system in several layers.
...
+ Added "undo" library (undo namespace).
+ Moved UndoHistory to undo namespace.
+ Added Undoer and UndoersCollector interfaces.
+ Converted old UndoStream to UndoersStack class.
+ Added new "undoers" namespace and moved each Undoer implementation
(classes to undo different actions) to "undoers" directory.
+ Added IO operations to "raster" objects (image, cel, layer, palette,
mask).
2011-03-26 17:40:55 -03:00
David Capello
69dff9b5d0
Use C99 uint*_t instead of ase_uint*.
2011-03-24 18:36:19 -03:00
David Capello
9182f0f14a
Move UndoHistory from raster/ to undo/ directory.
2011-03-24 11:50:00 -03:00
David Capello
6e60d3200d
Add Document class, to remove app specific properties from Sprite.
...
+ Moved some properties from Sprite to Document: lock/unlock/mutex,
filename, isModified flag, undo history, mask boundaries, file
format options, preferred editor settings, extra cel.
+ A Context now has an active document (instead of an active sprite).
+ Renamed all sprite wrappers to be document wrappers (as the mutex is
in the Document now).
+ Modifications to SharedPtr<> to be more like C++0x shared_ptr<>.
2011-03-22 21:11:25 -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
e0edf5625f
Use Widget::layout() instead of Widget::setBounds(getBounds).
2011-03-08 23:23:13 -03:00
David Capello
de47c6ff59
Rewritten palette editor using ColorSliders and HexColorEntry widgets.
2011-03-03 22:17:25 -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
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
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
2baa342a65
Remove "j" prefix from some files in gui library.
2011-01-30 19:12:10 -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
5a9d991219
Convert jalert to Alert C++ class.
2011-01-27 17:21:33 -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
45855b88d3
Move "AseException" to "base::Exception" class.
...
+ Created XmlException for tinyxml parsing errors.
+ Moved functionality of AseException::show() to Console::showException().
2011-01-20 23:33:57 -03:00
David Capello
3887173fac
Rename all commands to camel case.
2011-01-20 20:46:58 -03:00
David Capello
8e8ac7aa50
Refactor all member functions of Context class to camel case.
2011-01-20 19:58:11 -03:00
David Capello
e914c9ad6a
Rename ase_exception to AseException.
2011-01-20 18:03:11 -03:00
David Capello
d6eb20ef7e
Update copyright year to 2011.
2011-01-18 20:49:53 -03:00
David Capello
4c8c7463ed
Move functions related to quantization and dithering algorithms to raster/quantization.h|cpp.
2010-12-26 10:57:03 -03:00
David Capello
47a265745c
Fix Quantize command call (sprite was locked).
2010-12-12 12:11:44 -03:00
David Capello
d4caa65cae
Use gfx::Rgb and gfx::Hsv classes for HSV <-> RGB conversions.
...
+ Removed rgb_to_hsv_int() and hsv_to_rgb_int() functions.
+ Changed HSV ranges from [0,255] to H=[0,360], S=[0,100], V=[0,100].
+ Simplified Color class (src/app/color.h) using a m_type and m_value union.
2010-12-08 11:35:08 -03:00
David Capello
551efd4313
Convert jslider to Slider class.
...
+ Changed JI_SIGNAL_SLIDER_CHANGE to Slider::Change signal.
2010-12-04 16:13:21 -03:00
David Capello
7fab4cd42f
Improve RGB and HSV modifications when a range of colors is selected in the palette.
2010-12-01 23:53:27 -03:00
David Capello
ac36822222
Add undo support for palette changes.
...
+ Added Undo::undo_set_palette_colors() method.
2010-12-01 23:41:20 -03:00
David Capello
ffd0f17879
Move all undo_*() functions as members of Undo class.
2010-09-30 23:55:35 -03:00
David Capello
109d6a072f
Remove jstring class replacing it with the new base::string and new functions to manipulate strings.
2010-09-30 15:34:12 -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
cd6b8d3d23
Move Signal/Slot/Bind stuff to base-lib.
2010-09-25 17:20:59 -03:00
David Capello
28d09af036
Move Point/Size/Rect classes to a new gfx-lib.
2010-09-25 16:22:32 -03:00
David Capello
3ec3bbbef8
Refactor undo_clear_redo/set_label/get_next_*_label -> Undo::clearRedo/etc.
2010-09-19 17:44:06 -03:00
David Capello
12ce788d11
Remove undo_new/free/enable/disable/is_enabled/is_disabled, add Undo::is/setEnabled.
2010-09-19 15:23:15 -03:00