Commit Graph

1179 Commits

Author SHA1 Message Date
David Capello
ea3570796a Fix errors detected with gcc. 2012-01-01 23:37:32 -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
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
David Capello
d6b992ad4f Remove src/widgest/editor/NOTES.txt file (deprecated). 2011-11-03 00:27:37 -03:00
David Capello
7ca8ed8688 Fix Editor::editor_request_size() to return more viewport space (at least 1/4 of sprite is visible). 2011-10-30 14:33:27 -03:00
David Capello
1526e30f4c Fix bug in UndoTransaction::clearMask(): clear all the image is the mask isn't empty but is hidden. 2011-10-29 22:15:05 -03:00
David Capello
096f31b551 Change the About dialog to show a link to contributors. 2011-10-29 22:07:18 -03:00
David Capello
89b97b8e65 Fix bug in MovingCelState::onMouseUp(): restore the mask visibility when the position is not changed. 2011-10-29 22:06:16 -03:00
David Capello
8d37636f1a Fix some problems with sprites with non-zero transparent color.
+ color_utils::color_for_layer() must return the sprite's transparent
  color when the "Mask" is specified.
+ New cels in ExpandCelCanvas must be created with the sprite's
  transparent color.
2011-10-29 21:54:16 -03:00
David Capello
0839b10569 Add support to MovingCelState to move the selection along with the current cel.
+ Added support to move empty (NULL) cels (in this case only the
  selection is moved).
2011-10-29 21:39:55 -03:00
David Capello
2e379c244f Fix PixelsMovementImpl with ExpandCelCanvas to support moving the pixels outside the cel bounds
(but inside visible portions of sprite).
2011-10-29 21:17:32 -03:00
David Capello
b9b93e6869 Add ExpandCelCanvas to simplify ToolLoopImpl implementation. 2011-10-29 20:50:18 -03:00
David Capello
1dcb42a10a Use UniquePtr<Dirty> instead of naked new/delete operations. 2011-10-29 19:51:47 -03:00
David Capello
d55e4c58e4 Fix regression bug: user isn't able to copy pixels using Ctrl + selection tool.
+ The problem is that "Ctrl" key is a quicktool (move cel), and it was
  stealing the "Ctrl" key to the selection tool.
+ Added <spriteeditor> section in gui.xml to specify which key is
  used to copy the selection (instead of moving). "Ctrl" is the default.
+ Added EditorCustomizationDelegate interface.
2011-10-29 19:21:19 -03:00
David Capello
2623b1af99 Minor changes in standby_state.cpp. 2011-10-29 16:26:01 -03:00
David Capello
48000d6f48 Replace interactive_move_layer() with MovingCelState. 2011-10-29 16:25:47 -03:00
David Capello
daf16f6069 Minor changes in drop_files.cpp to avoid cast problems. 2011-10-29 12:32:18 -03:00
David Capello
f767c06761 Add MemoryDump class in base library to create mini-memory dumps on win32 platform. 2011-10-29 12:30:49 -03:00
David Capello
f7e9756b11 Fix \r\n line. 2011-09-11 23:45:29 -03:00
David Capello
8a9bb6c45c Add xpm icon for X11. 2011-09-06 19:37:35 -03:00
David Capello
c64a0d1171 Add gui.xml version validation to avoid using an old customized gui.xml file. 2011-08-22 21:37:14 -03:00
David Capello
da0a4f67dd Add ase icon (32,48,64 created by iLKke) 2011-08-22 21:02:46 -03:00
David Capello
ee612bb366 Fix error canceling tool-loop with left-button (when the user starts drawing with right-button). 2011-08-22 13:47:28 -03:00
David Capello
e090c966bf Add ToolLoop::Button enum type to avoid hardcoded 0 and 1 values. 2011-08-22 13:46:09 -03:00
David Capello
5c93242924 Fix preview command: now previous/next frame keys can be used again (fixed issue #39). 2011-08-09 23:06:42 -03:00
David Capello
3dc7e01f74 "curl" is compiled statically so "net" library must be compiled with CURL_STATICLIB flag. 2011-08-09 22:52:30 -03:00
David Capello
7b639e814b Fix problems generating a lot of consecutive "undo" entries when the palette were modified.
+ Added Undo::graftUndoerInLastGroup() member function.
+ Modify the PaletteEntryEditor to group a sequence of SetPaletteColors
  undoers in the same group using the new Undo::graftUndoerInLastGroup().
2011-08-09 22:40:09 -03:00
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
f09cf4db4b Add FULLSCREEN_PLATFORM constant (as in branch 0.8). 2011-08-09 20:27:12 -03:00
David Capello
5ff9450536 Fix problems loading/saving .png files with non-zero transparent index. 2011-08-09 00:01:57 -03:00
David Capello
c3e38daff2 Add comments to export sprite sheet command. 2011-08-08 23:59:46 -03:00
David Capello
d5dd899d3d Add "Export Sprite Sheet" command. 2011-08-07 22:24:21 -03:00
David Capello
26c2fff7d0 Add ComboBox::Change signal (to replace JI_SIGNAL_COMBOBOX_SELECT in the future). 2011-08-07 22:22:48 -03:00
David Capello
63f163439f Remove unused JI_SIGNAL_COMBOBOX_CHANGE signal. 2011-08-07 22:08:24 -03:00
David Capello
3442997007 Modify layout of Import/Cancel buttons. 2011-08-07 22:06:37 -03:00
David Capello
f50a8e6e2b Fix my website's URL. 2011-08-06 14:36:52 -03:00