Commit Graph

2132 Commits

Author SHA1 Message Date
David Capello
0eb8e344bb If the save process fails, mark the document as modified 2014-05-03 16:25:39 -03:00
David Capello
a04119eeb4 Fix several reported memory leaks 2014-05-02 23:55:45 -03:00
David Capello
9af8440ba6 Delete all css::Styles when the skin::StyleSheet is destroyed 2014-05-02 23:30:17 -03:00
David Capello
456bdaa20a Avoid memory leak information about color_mapping in skin_theme.cpp 2014-05-02 23:07:11 -03:00
David Capello
5b62a55a0a Avoid memory leaks information of FileFormatsManager 2014-05-02 23:04:04 -03:00
David Capello
0cd9bf21f3 Fix memory leak detector for Windows with MSVC compiler 2014-05-02 23:03:40 -03:00
David Capello
cb0f89ea3a Fix issue with Timeline scroll: when clicking with mouse wheel the scroll jumps to other location 2014-05-02 21:10:19 -03:00
David Capello
a5b1bd1875 Check invalid values of m_clk_layer in Timeline::dropLayers() 2014-05-02 21:08:10 -03:00
David Capello
c34ee7ef6b Fix compilation error in ase_parallelogram_map() 2014-05-02 20:22:39 -03:00
David Capello
e006d8322f Use strtol instead of ustrtol in widget_loader.cpp 2014-05-02 20:21:57 -03:00
David Capello
cfa061e014 Fix sprite properties dialog size when jguiscale() = 1 (problem referenced in issue #197) 2014-05-02 20:19:43 -03:00
David Capello
a445ec4b07 Minor change in sprite_properties.xml (change box -> hbox/vbox/boxfiller) 2014-05-02 20:09:18 -03:00
David Capello
02a8ea779a Add missing *jguiscale() in Entry and ColorButton widgets 2014-05-02 20:08:59 -03:00
David Capello
3e70c5316d Add undo information when the sprite transparent color is modified 2014-05-02 20:00:26 -03:00
David Capello
c879d114e0 Version 1.0.0 2014-05-02 19:58:34 -03:00
David Capello
d298c55238 Make "Transparent Color" tooltip smaller in SpriteProperties dialog 2014-05-02 19:47:41 -03:00
David Capello
e36aaa5dfc Fix issue #197 - Index 0 is made transparent, even when it is not the transparent color
Now image_scale and ase_parallelogram_map_standard functions use the image
mask color.
2014-05-02 19:44:26 -03:00
David Capello
66564e354f Fix issue #394 - crash when we cancel the file save operation
There were problems calling a pure virtual function (IFileOpProgress
implemented by OpenFileJob) when we are already in ~Job() dtor. So we've
to wait the background thread (added Job::waitJob() function) to join
the thread so it can use IFileOpProgress safely.

Also the save process of .ase files now can be cancelled (it wasn't
possible before).
2014-05-02 17:04:55 -03:00
David Capello
33753ccde8 .ase format: remove static members to save chunks 2014-05-02 14:59:20 -03:00
David Capello
d0c2107278 .ase format: write the header at the beginning of the process
This is a common issue when the save process fails, we get an .ase file
without header. So basically with this change we save the most important
information of the header first, and then save the rest of frames/layers
info. At the end we can save the file size.

- Other change: removed "current_frame_header" static variable.
2014-05-02 14:38:35 -03:00
David Capello
aaa662cf23 Implement CelProperties commands using DocumentApi::setCelOpacity 2014-05-02 12:10:29 -03:00
David Capello
049affae65 Timeline: Fix bug start cels movement with right-click 2014-05-02 11:56:18 -03:00
David Capello
f60d1c5c4f Add "Cancel" option to cel_movement_popup (popup when you move cels in the Timeline) 2014-05-02 11:55:44 -03:00
David Capello
7a15f1c909 Merge remote-tracking branch 'origin/dev' into dev 2014-05-02 11:29:24 -03:00
David Capello
4946dd5ebb Timeline: Fix problem clicking first and second frame 2014-05-02 11:28:44 -03:00
David Capello
d76f6f6716 Add DocumentApi::setCelOpacity() 2014-05-02 11:28:21 -03:00
David Capello
09027fdee4 Fix issue #258 - bug moving a cel from a transparent layer to background
The problem was in DocumentApi::moveCel(). We cannot move a Cel between
layers and frames at the same time easily (it's not possible to do it
without being in a temporal invalid state, e.g. where two cels are in the
same frame position). It's better if we create completely new cel for
the target and remove the previous one in all cases (undoers are already
prepared to do those operations correctly).

- Add Sprite::getImageRefs() member function.
2014-05-02 11:28:03 -03:00
David Capello
bee4dff5a8 Merge branch 'dev' of git@github.com:aseprite/aseprite.git into dev 2014-04-29 23:08:20 -03:00
David Capello
6edf02765a Fix Graphics::fillAreaBetweenRects() 2014-04-29 23:07:25 -03:00
David Capello
62c5d5222f Redraw editors when all layers are hidden/shown 2014-04-29 23:04:57 -03:00
David Capello
e363577e65 Better double-click: remove DoubleClickeable and make ui::Widget default behavior to convert double-clicks into mouse downs 2014-04-29 23:02:27 -03:00
David Capello
62fc42c24d Timeline: Add icons to lock/unlock and hide/show all layers 2014-04-29 22:51:14 -03:00
David Capello
be13633d44 Merge branch 'dev' of git@github.com:aseprite/aseprite.git into dev 2014-04-29 01:21:43 -03:00
David Capello
f4a62493a2 Update TODO.md 2014-04-29 01:21:24 -03:00
David Capello
d470a6b78a Fix Clear command to delete the selection first when the range is enabled in one frame/one layer 2014-04-29 01:19:39 -03:00
David Capello
0120ef58e1 AppMenuItem: fix updating enabled/checked state in popup menus (in timeline popups mainly) 2014-04-29 01:11:50 -03:00
David Capello
4d48e40484 Fix RemoveLayer command so it's disabled when we have no more layers to remove 2014-04-29 01:01:25 -03:00
David Capello
5601b07df6 Fix NewFrame command so it's enabled even when we don't have layers 2014-04-29 01:00:15 -03:00
David Capello
05d0eaee6d Timeline: fix painting code for paddings area when we've removed all layers 2014-04-29 00:51:42 -03:00
David Capello
870a435cb6 Timeline: fix crash when we remove all layers (issue #393) 2014-04-29 00:51:08 -03:00
David Capello
17e59bc9e5 And fix mouse wheel from Allegro 4.4 data 2014-04-28 22:07:01 -03:00
David Capello
a21febf6e8 Merge branch 'dev' of git@github.com:aseprite/aseprite.git into dev 2014-04-28 22:03:25 -03:00
David Capello
ec61c6b972 Add support for horizontal mouse wheel and scroll bar notifications (better support for trackpads)
WM_HSCROLL/WM_VSCROLL messages are used by some trackpads drivers to
notify about horizontal/vertical pan gestures.
2014-04-28 22:02:56 -03:00
David Capello
58720851c4 Update MiniEditor scroll properly when EditorView scroll changes 2014-04-28 01:45:22 -03:00
David Capello
4ea41e1024 Fix problem rendering underlined characters 2014-04-26 16:19:05 -03:00
David Capello
3935b10467 Merge remote-tracking branch 'origin/dev' into dev 2014-04-26 16:05:55 -03:00
David Capello
9fa0f4077b Fix default MiniEditorWindow position 2014-04-26 16:05:29 -03:00
David Capello
5584424b79 Adjust windows position when ui::Manager (the main windows/display) is resized 2014-04-26 16:04:25 -03:00
David Capello
75591fa491 Fix animation playback in MiniEditor: now it handles frame duration correctly 2014-04-26 12:06:11 -03:00
David Capello
a411cd88d9 Merge branch 'dev' of git@github.com:aseprite/aseprite.git into dev 2014-04-26 11:34:46 -03:00