Commit Graph

2918 Commits

Author SHA1 Message Date
David Capello
a67c7bb1b2 Merge pull request #609 from aisamanra/master
Small fixes needed to build on clang/gcc
2015-03-16 10:19:49 -03:00
David Capello
35eddf1f08 Add missing "base/base.h" to use uint32_t (fix undo_tests compilation) 2015-03-16 09:13:54 -03:00
Getty
85c569b2f1 Small fixes needed to build on Linux: missing #includes and shadowed templates 2015-03-14 17:28:02 -07:00
David Capello
5ffdef5959 Fix problems showing native Win32 open/save dialog when we specify just a folder 2015-03-12 19:48:27 -03:00
David Capello
30052dbd9e Show internal Win32 error if we use GetOpenFileName Win32 API function incorrectly 2015-03-12 19:47:44 -03:00
David Capello
6800302d34 Fix drag-and-drop of a future frame after a frame in the past 2015-03-12 19:15:42 -03:00
David Capello
602ca6a7b7 Center icons of timeline
Just in case we want to make timeline's cels biggers in the future.
2015-03-12 17:25:04 -03:00
David Capello
5a95c6a48b Adjust frame tags when we move/copy frames 2015-03-12 16:44:42 -03:00
David Capello
d36f10ee02 Add "Set Loop Section" option in frame popup menu 2015-03-12 15:37:09 -03:00
David Capello
c7e37910e5 Reference frame tags with an ObjectId in Timeline::Hit::frameTag instead of a FrameTag*
With this we avoid strange states where the Timeline is redraw after a
undo/redo and the referenced FrameTag was just deleted.
2015-03-12 15:31:34 -03:00
David Capello
e6dc94ddb2 Add undo info for FrameTags when frames are added/removed
Also we remove the entire FrameTag when all its frames are removed.
2015-03-12 15:05:20 -03:00
David Capello
9947d80b5e Allow to get a PART_HEADER_FRAME bounds from Timeline for frames > last frame
This was done just for testing, to see if FrameTags are outside the
valid range.
2015-03-12 15:00:45 -03:00
David Capello
cdc9b419c7 Fix crash adding/removing frames in sprites with frame tags 2015-03-11 18:45:35 -03:00
David Capello
a9fae58a98 Fix style for recent files/paths to avoid line breaks 2015-03-11 18:06:54 -03:00
David Capello
d3f152d1a5 Fix Graphics::doUIStringAlgorithm() for word wrap with rc.w == 0 (without limit) 2015-03-11 18:06:33 -03:00
David Capello
30a90c88e9 Ignore slash type and case to compare paths in RecentFiles 2015-03-11 17:48:28 -03:00
David Capello
7724c212e8 Return to the current frame when we stop the animation in Preview window 2015-03-11 16:20:19 -03:00
David Capello
2b74549e00 Advise about .ase format when we are going to lose information in Save operation 2015-03-11 16:15:09 -03:00
David Capello
b630565188 Shrink bounds when MaskContentCommand is used in the background layer
So we can select the important part of the background layer when
we use Ctrl+T on it.
2015-03-11 16:01:35 -03:00
David Capello
0cb4b2234d Always load params when a command is executed
This is to avoid leaving commands with old params (a problem with
keyboard shortcuts). To make sure, we've changed arguments from Params*
to Params&, so we always have params to load.

Also, in this change we introduce a new way to give parameters to executed
commands from menu items using AppMenuItem::setContextParams(). Before
showing a popup, we can call setContextParams() to give extra params to
the command (e.g. the specific FrameTag to remove or change properties).
In this way "contextparams" attribute for <item> in gui.xml is not
available anymore.
2015-03-11 15:40:22 -03:00
David Capello
50fd6e9e2f Fix crash removing the loop section with SetLoopSectionCommand 2015-03-11 15:02:08 -03:00
David Capello
b5db58d21c Fix kSetCursorMessage handling in Timeline::onProcessMessage 2015-03-11 14:24:02 -03:00
David Capello
922a485832 Fix bug in FrameTagProperties when there is no tag to show 2015-03-11 10:18:13 -03:00
David Capello
fd920eb85a Merge remote-tracking branch 'origin/master' 2015-03-10 20:03:20 -03:00
David Capello
675c598fdd Initialize m_tagId field in RemoveFrameTagCommand/FrameTagProperties 2015-03-10 19:40:19 -03:00
David Capello
311bb21bd4 Avoid accesing to a deleted FrameTag after FrameTagPopup 2015-03-10 19:28:45 -03:00
David Capello
a504ba3783 Delete all 'FrameTag's in ~FrameTags 2015-03-10 19:28:21 -03:00
David Capello
4588579e25 Redraw editor when onionskin preferences are changed
We have added a Before/AfterChange signals to preference Sections.
2015-03-10 19:05:20 -03:00
David Capello
1780a13ed4 Fix Timeline crash when there is no selected sprite 2015-03-10 18:57:34 -03:00
David Capello
f26183a82a Remove loop configuration from ConfigureTimelinePopup 2015-03-10 17:13:06 -03:00
David Capello
6d12deafe6 Use ObjectId to identify FrameTags in the Timeline/frame tags commands 2015-03-10 17:04:55 -03:00
David Capello
1177e02609 Add popup menu to FrameTags in the Timeline
Add a new contextparams attribute to menu items in gui.xml that are feed
by the UI with params (e.g. the FrameTag popup needs to know what exact
tag we should edit, and it's a command Param provided by the Timeline).
2015-03-10 16:44:18 -03:00
David Capello
7c3e8326e6 Clicking on a tag name shows its properties 2015-03-10 16:25:20 -03:00
David Capello
2c408e4c98 Fix linking with libcurl from a Visual Studio solution (again, fix #606) 2015-03-10 13:50:12 -03:00
David Capello
d908479d45 Rename A_PART_* constants to PART_* in timeline.cpp 2015-03-09 17:12:10 -03:00
David Capello
edca57cb4a Add Timeline::Hit structure 2015-03-09 16:41:03 -03:00
David Capello
1f4400b943 Keep FrameTags in order 2015-03-09 15:56:04 -03:00
David Capello
58d302749c Use a FrameTag for the loop section (fix #557)
Changes:
* Paint FrameTags in Timeline with labels
* Add app::ui::FrameTagWindow
* Fix FrameTag::m_aniDir initialization
* Add warning for files that doesn't support frame tags
* Remove document preferences related to the active loop
2015-03-09 13:57:54 -03:00
David Capello
e09cdd67cb Add support to compile with VS2013 x64 2015-03-06 17:01:08 -03:00
David Capello
b23194dfae Fix several warnings in MSVC, clang, and gcc 2015-03-05 15:19:00 -03:00
David Capello
5c1f2a55a5 Avoid MSVC warning using std::copy() 2015-03-05 14:37:16 -03:00
David Capello
7da6f3e857 Minor changes to some #include header files 2015-03-05 12:40:47 -03:00
David Capello
69d78a0add Add missing std:: so gcc on Linux works just fine (related to #604) 2015-03-04 23:24:01 -03:00
David Capello
2c7fe41d6d Fix minor problems with clang 2015-03-04 22:57:55 -03:00
David Capello
39f344fd11 Fix app::gen::SkinFile class generator for gcc compiler 2015-03-04 22:50:32 -03:00
David Capello
361a3084fd Merge branch 'new-workspace'
Conflicts:
	src/app/commands/cmd_open_file.cpp

Fixes:
	src/app/ui/timeline.cpp
2015-03-04 22:41:34 -03:00
David Capello
75ad9552e4 Make undo_tests.cpp compile on OS X with SDK 4.4u 2015-03-04 21:35:46 -03:00
David Capello
ad856b2a55 Use std:: when necessary, and std::numeric_limits instead of INT_MAX 2015-03-04 21:35:11 -03:00
David Capello
e822ddba4c Fix compilation problems with time structures on Linux 2015-03-04 19:42:48 -03:00
David Capello
f0ab007144 Include required base/time.h to use Time class in fs_unix.h 2015-03-04 19:33:54 -03:00