2804 Commits

Author SHA1 Message Date
David Capello
bf3c0890e9 Merge branch '1.0' 2015-01-25 23:10:51 -03:00
David Capello
72e2040c58 Add --filename-format option (fix #519) 2015-01-25 22:36:32 -03:00
David Capello
9d5d911830 Update version to 1.0.9-dev 2015-01-25 19:51:59 -03:00
David Capello
eff46d4134 Add infinite editor scroll to OS X
Fix osx_mouse_position()
2015-01-25 19:09:30 -03:00
David Capello
429c722f73 Fix OS X mouse position issues
Fix problems using absolute mouse positions in the view when the mouse
were outside the view area.
2015-01-25 19:08:41 -03:00
David Capello
8f63277a2b FilterManagerImpl: unlink cels when a filter is applied to multiple images 2015-01-22 12:06:08 -03:00
David Capello
ad8ed256de create_palette_from_rgb(): avoid processing the same (linked) image 2015-01-22 11:52:49 -03:00
David Capello
9740cfd08c MergeDownLayerCommand: unlink before merge down a linked cel 2015-01-22 11:36:05 -03:00
David Capello
3f99737758 Fix bug undoing a removed layer with linked cels
Images must be stored independently of cels. So read/write_cel() just
read/write the Cel information (with image ID only), and the image data
must be read/written by the caller.
2015-01-22 10:28:07 -03:00
David Capello
5258f8d4d7 Duplicate links when we duplicate a layer 2015-01-22 09:49:01 -03:00
David Capello
ca75dec911 Timeline: add minor help text in status bar for continuous/discontinuous layers 2015-01-21 23:50:06 -03:00
David Capello
ae0b66b043 Fix initialization order in SetCelImage class 2015-01-21 11:39:17 -03:00
David Capello
05b3db7de5 Add note in FliFormat::onLoad() (it should generated linked cels) 2015-01-21 11:37:47 -03:00
David Capello
06628a2ee7 Merge branch 'master' into feature/continuous-cels 2015-01-21 11:37:22 -03:00
David Capello
1b541e1a24 Fix initialization order of members 2015-01-21 11:35:35 -03:00
David Capello
eae57b865e Don't swap streams as clang and gcc have problems with it 2015-01-21 11:28:12 -03:00
David Capello
7fb32ab45a Check invalid usage of drop_range_op() function 2015-01-21 11:27:40 -03:00
David Capello
dd2f10bcd8 Fix warning with include guards 2015-01-21 11:24:40 -03:00
David Capello
ce08c144e8 clang is not working with unordered_map (maybe because we use the old SDK) 2015-01-21 11:22:55 -03:00
David Capello
ef1e44726f Require header file for doc::ObjectId 2015-01-21 11:22:40 -03:00
David Capello
140d765c7e Disable copy ctor of app::Cmd class 2015-01-21 11:22:33 -03:00
David Capello
6dad428928 Remove unused variables 2015-01-21 11:22:28 -03:00
David Capello
1d8939be8a Merge branch '1.0' 2015-01-21 02:00:48 -03:00
David Capello
455032d798 Fix RotateCommand for sprites with linked cels 2015-01-21 01:56:14 -03:00
David Capello
23a0540c52 Fix SpriteSizeCommand for linked cels 2015-01-21 01:46:28 -03:00
David Capello
02bf09b08f Fix FlipCommand for sprites with linked cels 2015-01-21 01:45:17 -03:00
David Capello
dc3a0a941a Fix DocumentApi::cropSprite() for layers with linked cels
Remove DocumentApi::displaceLayers/cropCel/cropLayer member functions.
2015-01-21 01:44:01 -03:00
David Capello
e31e54c3fe ClearCelCommand: Don't clear read-only layers 2015-01-21 01:34:56 -03:00
David Capello
d35e07cbfb UnlinkCelCommand: Don't unlink read-only layers 2015-01-21 01:34:48 -03:00
David Capello
0b66d0e59f Modify cmd::CopyCel/MoveCel to copy/move linked cels 2015-01-20 10:55:33 -03:00
David Capello
4e5d27bf38 Add cmd::SetCelImage 2015-01-20 10:55:23 -03:00
David Capello
ecd0317cf0 Add unlink files to CMakeLists.txt 2015-01-20 10:55:06 -03:00
David Capello
32decda05d Remove commented line in replace_image.h 2015-01-20 09:46:19 -03:00
David Capello
d2ea95716f Add Unlink Cel command 2015-01-20 09:39:12 -03:00
David Capello
052a736a49 Timeline: add UI decorators for linked cels 2015-01-20 09:38:39 -03:00
David Capello
a6e76201de Fix bug in write_cel(): write the correct image ID for linked cels 2015-01-20 09:36:38 -03:00
David Capello
6e5db5b33d Add Cel::links() member function to know how many links has the cel's image 2015-01-20 09:36:01 -03:00
David Capello
b6a63d5f29 Read linked cels from .ase files 2015-01-20 09:35:23 -03:00
David Capello
03a87b8d24 Remove unused DocumentApi::clearImage() member function 2015-01-20 09:34:23 -03:00
David Capello
74e69e0666 Add continuous layer flag (to indicate that the layer prefer linked cels) 2015-01-20 09:33:56 -03:00
David Capello
309d1299ae Minor label fix in options.xml 2015-01-20 09:31:20 -03:00
David Capello
6fcf3f3d31 Fix "modified document" indicator in tabs when we cancel tool loop 2015-01-20 08:45:06 -03:00
David Capello
9af8567a6b Make PopupWindow movable again (fix regression from 1f25579f5a9923dc844f75d8e37ede83e148889f) 2015-01-19 20:44:47 -03:00
David Capello
15c6ee9046 Remove old layer icons from skin sprite sheet 2015-01-18 22:45:58 -03:00
David Capello
0cff720ef3 Rename undo2 to undo library
Now that the old undo library doesn't exist, we can use "undo" namespace
again.
2015-01-18 22:16:29 -03:00
David Capello
348007b123 Minor changes in README 2015-01-18 22:07:23 -03:00
David Capello
e55865843e Replace undo impl: replace undoers with cmds
Undoers were little objects to swap/revert an action. They didn't
execute the action itself, they just revert its previous state. Now
undoers were replaced with cmds: A cmd is an object that
executes/undoes/redoes just one action.

Changes:
* Remove old undo library and app/objects_container_impl.cpp
  (now we use the doc::ObjectId directly to store undo info)
* Remove all Undoers from app/undoers/
* Replace DocumentApi impl with little Cmds in app/cmd/, these
  cmds handle execute/undo/redo of each action at the logic layer
* Remove doc::Dirty object
* Remove doc::Settings: all undo configuration is in the app side
* Move undo options from app:ISettings to app::Preferences
* Rename UndoTransaction to Transaction
* Create a CmdSequence to store a sequence of Cmds (as now the new
  undo library doesn't support open/close groups)
* Add doc::get<T>(ObjectId) function to get any kind of object
  from the doc library by its ID
* Add Cel::document() and Sprite::document() members
* Add Sprite::cels(frame_t) to get all cels in the given frame
* Add Layer::displaceFrames() member function
* Move the "allow non-linear history" flag from undo2::UndoHistory
  to app::DocumentUndo
2015-01-18 22:05:33 -03:00
David Capello
9efd84153b Add const modifier to undo2::UndoHistory::prev/next/cmd member functions 2015-01-15 10:04:26 -03:00
David Capello
13040cba5d Update copyright year in README 2015-01-06 09:34:53 -03:00
David Capello
9f19b0d1dd Update CONTRIBUTING and INSTALL files
Update INSTALL in such a way it contains how to get the source code
correctly cloning the repository (instead of using .zip files)
2015-01-06 09:34:40 -03:00