Commit Graph

1532 Commits

Author SHA1 Message Date
David Capello
18de85f18e Fix problem with uninitialized m_activeDocument member in Context class. 2012-01-12 00:25:09 -03:00
David Capello
917f724861 Add text entry to go to frame in the status bar (issue #6).
+ Added a button to create new frames in the status bar.
2012-01-09 21:18:32 -03:00
David Capello
b97fb14e0a Add GotoFrame command (like issue #6, but it does not use the status bar).
+ Replaced ScopedPtr defined in gui.h with UniquePtr.
+ Fix problem in keycombo_get_string() converting keyboard shortcuts
  with "Alt" modifier.
2012-01-09 20:28:04 -03:00
David Capello
f91063bcef Fix problems resetting Document's selection transformation in some commands. 2012-01-09 19:13:48 -03:00
David Capello
e018cf099d Conert all mask_* functions to Mask function members. 2012-01-08 22:34:36 -03:00
David Capello
127480db01 Fix bug in PixelsMovement::moveImage(): clear the extra cel with its mask color instead of 0. 2012-01-08 14:23:43 -03:00
David Capello
dcd915b95c Fix PixelsMovement::maskImage(): the entire region is selected in paste command. 2012-01-08 14:15:07 -03:00
David Capello
237b9a70bc Update the .rc information. 2012-01-07 22:14:29 -03:00
David Capello
eb5462a890 Fill automatically the distribution version using the config.h. 2012-01-07 22:08:21 -03:00
David Capello
bbd14b42b7 Add zlib bin directory to include zconf.h in ase_format.cpp 2012-01-07 21:32:53 -03:00
David Capello
36ca165328 Update zlib to 1.2.5 and libpng 1.5.7.
Fix loadpng library and png_format.cpp to support the new libpng version.
2012-01-07 21:11:19 -03:00
David Capello
deb3fdb48a Add the standard Ctrl+Y keyboard shortcut to execute Redo command. 2012-01-07 20:33:34 -03:00
David Capello
8e94cfc341 Update tinyxml to 2.6.2 2012-01-07 19:00:26 -03:00
David Capello
bb1e3dd7f0 Comment the ASSERT in MovingPixelsState() because quick tools can make it fail. 2012-01-07 18:52:42 -03:00
David Capello
0f0b5f7c35 Update quickref for version 0.9.1. 2012-01-07 18:48:27 -03:00
David Capello
1dd4120951 Add "maintain aspect ratio" in selection transformation (issue #48). 2012-01-07 18:47:48 -03:00
David Capello
a22b86df65 Add snap to grid in selection movement. 2012-01-07 17:23:21 -03:00
David Capello
99bd0015b9 Change "N" keyboard shortcut to "Alt+N" to avoid creation of frames by mistake. 2012-01-07 17:04:18 -03:00
David Capello
a17d925847 Add angle snap with Shift key to rotation. 2012-01-07 16:37:07 -03:00
David Capello
9684672f5f Improve status bar text when the user is scaling/rotating the selection. 2012-01-07 16:35:04 -03:00
David Capello
89da817771 Disable warning 4355 in StandbyState with MSVC. 2012-01-07 16:32:03 -03:00
David Capello
3c1acfec03 Use "zip" to create the win32 distribution (we can convert LF to CRLF in text files). 2012-01-07 10:41:26 -03:00
David Capello
15df7d40c7 Fix problem in "select all" command: reset the transformation bounds. 2012-01-06 20:40:49 -03:00
David Capello
dbae742436 Remove items from TODO which are already done/fixed. 2012-01-06 20:40:32 -03:00
David Capello
b8fbaad7fb Replace Allegro Sprite Editor or ASE with ASEPRITE in all files. 2012-01-06 01:12:57 -03:00
David Capello
02a9d50524 Update copyright year to 2012. 2012-01-06 00:52:11 -03:00
David Capello
9fbc9374e2 Fix problem pasting from the clipboard when the active tool is a non-selection one.
The PixelsMovement uses the document's extra cel to show the transformation
preview. On the other side, painting tools use the extra cel to show
the drawing cursor preview. So MovingPixelsState is incompatible
with painting tools, both use the extra cel for different purposes.
2012-01-06 00:41:02 -03:00
David Capello
c6da98ea52 Add const to PixelsMovement::isDragging(). 2012-01-06 00:19:24 -03:00
David Capello
b1044003c8 Integrate paste command with the new MovingPixelsState editor's state. 2012-01-05 23:21:51 -03:00
David Capello
d4cb85f7a1 Don't draw the rotation pivot if there is no angle. 2012-01-05 22:03:06 -03:00
David Capello
ed6090bc36 Convert all newline to LF style and remove all tabs.
This was done to avoid mixed files (CRLF & LF) in the repository.
2012-01-05 19:45:03 -03:00
David Capello
ea3570796a Fix errors detected with gcc. 2012-01-01 23:37:32 -03:00
David Capello
9320dca214 Merge remote-tracking branch 'origin/master'
Conflicts:
	src/raster/rotate.cpp
2012-01-01 23:11:44 -03:00
David Capello
07edcdb1e2 Add transformation support (scale/rotate) to the selected area.
+ Added support to rotate images of IMAGE_BITMAP type.
+ Added transformation_handle & pivot_handle parts in sheet.png.
+ Added rotation cursors in sheet.png.
+ Added gfx::Transformation class and Document::m_transformation field.
+ Added StandbyState::Decorator and TransformHandles class to draw
  transformation handles.
+ Modified PixelsMovement class to support transformation handles.
+ Added new Linear Algebra library with Vector2d class.
2012-01-01 23:08:25 -03:00
David Capello
181c75bb93 Convert Point/Size/Rect/Border in PointT/SizeT/RectT/BorderT templates. 2012-01-01 14:37:03 -03:00
David Capello
62df7c0b60 Fix error in rotate.cpp using template argument subtype without typename keyword. 2011-12-17 10:38:26 -03:00
David Capello
c630c950cd Fix extra space in editor's viewport showing big images. 2011-12-08 15:40:36 -03:00
David Capello
adf18dfb18 Fix problems specifying the box bounds in "Import Sprite Sheet" using text-entries (fix issue #52). 2011-11-28 16:38:14 -03:00
David Capello
4f6c43edc5 Remove the editor's default state. Now the editor has a decorator property.
+ Removed Editor::setDefaultState.
+ Removed EditorState::getDecorator.
+ Added Editor::get/setDecorator.
+ Added EditorStatesHistory class and Editor::backToPreviousState() method.
+ Added EditorState::onBeforePopState event.
2011-11-13 20:40:19 -03:00
David Capello
18a0a2a8c7 Overwrite memory dump file if it already exists (win32 impl). 2011-11-13 18:08:56 -03:00
David Capello
e530f977df Remove ASSERTs from ObjectsContainerImpl.
The exceptions are good enough and they work correctly for the unittests.
2011-11-13 18:00:46 -03:00
David Capello
af26dcaee4 Fix bug in SharedPtr<>::reset() where the pointer wasn't set to NULL when refcount > 1 2011-11-13 17:52:26 -03:00
David Capello
103211509e Use assert() instead of ASSERT() in base library (to avoid dependency with Allegro). 2011-11-13 17:47:48 -03:00
David Capello
c53590a0d5 Add IsDeveloper to [Updater] section and &dev=1 to updater URL. 2011-11-13 12:37:32 -03:00
David Capello
1171140ad0 Replace SCANLINE_DRAWER() macro with draw_scanline template in raster/rotate.cpp. 2011-11-06 23:55:44 -03:00
David Capello
34a5ff5dc3 Replace new/delete with UniquePtr in MovingPixelsState() ctor. 2011-11-06 15:38:17 -03:00
David Capello
344d0d5ea0 Add some comments to EditorPreRender and EditorDecorator classes. 2011-11-06 15:29:38 -03:00
David Capello
2c296d65cb EditorState cannot be copied. 2011-11-06 15:29:17 -03:00
David Capello
73d51be2f5 Hold a reference to the current editor's state in each event handler.
As it is a smart pointer, we need to keep a reference to avoid deleting
it in the same event handlers (it can happen when we change the state of
the editor).
2011-11-06 11:49:25 -03:00
David Capello
d82507df9a Remove pimpl idiom from PixelsMovement class as it is used in just one file. 2011-11-03 00:29:35 -03:00