David Capello
9d744504a6
Rename some Editor's member functions to camelCase.
2011-04-01 22:23:38 -03:00
David Capello
a17c767e65
Remove all public fields of Cel adding accessors.
2011-03-28 00:24:27 -03:00
David Capello
682e7152b7
Replace UndoHistory::undo_int/data/double methods with new safe-undoers.
...
+ Added SetCelFrame/Opacity/Position, SetMaskPosition, SetStockImgType,
and SetLayerFlags undoers.
+ Finally removed the Layer::flags_addr() atrocity.
+ Removed RawData undoer.
+ Renamed SetImgType to SetSpriteImgType.
2011-03-27 18:15:00 -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
0b495085cc
Move the active mask from Sprite class to Document.
...
+ Removed masks and paths repositories.
+ Added Document::isMaskVisible and Document::setMaskVisible methods.
2011-03-23 00:06:43 -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
2baa342a65
Remove "j" prefix from some files in gui library.
2011-01-30 19:12:10 -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
d6eb20ef7e
Update copyright year to 2011.
2011-01-18 20:49:53 -03:00
David Capello
36d532df21
Rename src/gui/jwidget.cpp|h to src/gui/widget.cpp|h.
2010-10-02 11:19:09 -03:00
David Capello
ffd0f17879
Move all undo_*() functions as members of Undo class.
2010-09-30 23:55:35 -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
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
David Capello
198bd648e5
Refactor Layer::add/remove/get_cel to add/remove/getCel.
2010-09-19 00:26:33 -03:00
David Capello
3f9e947ea9
Convert color_t type to Color class.
...
+ Add color_utils namespace and move useful routines for colors right there.
+ Add test_color.cpp.
2010-08-25 00:26:37 -03:00
David Capello
4e72997a02
Use Allegro's ASSERT() instead of assert().
2010-08-03 23:33:44 -03:00
David Capello
8812623528
Removed LoadPalette() function.
2010-07-16 16:48:02 -03:00
David Capello
475d0eeb1b
Refactored Sprite class: no public variable members, all functions sprite_* go as Sprite function members, pimpl idiom.
2010-03-30 21:43:18 -03:00
David Capello
bea59d7280
Status bar widget converted to C++ StatusBar class.
2010-03-29 00:00:25 -03:00
David Capello
ee878c87e9
Modified Palette class to contain all functions to manipulate it as function members.
...
Modified its implementation to use std::vector<> instead of a raw C array[].
Now the number of colors in the sprite is more relevant (e.g. we should be able to create sprites of 4bpp, 16 colors).
2010-03-28 12:15:32 -03:00
David Capello
fb139ccf49
Renamed Editor::editor_get_sprite to Editor::getSprite.
2010-03-01 00:00:56 -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
6e93dfe4ea
Converted editor widget in a C++ class (Editor class derived from Widget).
2010-01-27 02:52:30 +00:00
David Capello
11a094cb05
Moved app.cpp from src/core/ to src/
2009-12-11 14:53:05 +00:00
David Capello
cbc0bf22bd
Refactored Layer class to include all layer_* functions as member functions.
2009-11-17 13:12:26 +00:00
David Capello
b0c56578ca
Moved modules/sprites.cpp to effect/images_ref.cpp
2009-08-17 23:45:55 +00:00
David Capello
3885f37f45
+ CurrentSprite class was split in SpriteWrapper/Reader/Writer, and CurrentSpriteReader/Writer wrappers.
...
+ More routines are using exceptions for error handling.
+ Added JWidgetPtr class.
+ Added Undoable::set_imgtype/layer_from_background/flatten_layers.
2009-06-11 15:11:11 +00:00
David Capello
d157131d4a
Added more const-correctness.
2009-06-11 00:59:57 +00:00
David Capello
59ae779fca
+ Added Context parameter to CurrentSprite.
...
+ Now CurrentSprite is defined in current_sprite.h.
+ Modified several routines to get the current sprite as parameter.
2009-06-02 14:08:56 +00:00
David Capello
c4be9fe5b4
Added Context and UIContext classes.
...
Added CurrentSprite class.
Removed current_sprite global.
Moved all functions of 'sprites' module to Context/UIContext.
2009-06-01 02:59:15 +00:00
David Capello
dd003a8f33
- Now "Image" is a C++ class with virtual methods;
...
- Removed ImageMethods (the C vtable for old "Image" structure);
- Added ImageImpl and ImageTraits;
- Added "Sprite Size" command (feature #2671468 );
- Added "Canvas Size" command;
2009-05-31 16:02:32 +00:00
David Capello
73d1920e78
Added support to copy & paste to/from the Windows Clipboard.
2009-03-07 19:14:40 +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
17dee030f5
Added undo support when changing frame duration.
...
Replaced ClearMask with Undoable::clear_mask.
2008-10-11 15:59:13 +00:00
David Capello
07b478907e
Added Undoable::remove_layer.
...
Added Undoable::clear_mask.
Fixed a serious bug in shrink_mask.
2008-10-10 02:14:53 +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