David Capello
2088d331ff
Update laf module
2018-07-07 12:32:41 -03:00
David Capello
c9b5800571
Update laf module
2018-07-07 12:20:44 -03:00
David Capello
a360c4fcc4
Merge branch 'master'
2018-07-07 12:20:25 -03:00
David Capello
9c79ea2b77
Rename app::Document -> Doc
2018-07-07 11:54:44 -03:00
David Capello
931c13ef58
Rename document_api_tests -> doc_api_tests
2018-07-07 10:10:46 -03:00
David Capello
d00fc99138
Rename DocumentRange -> DocRange
2018-07-07 10:07:21 -03:00
David Capello
432094f432
Rename Documents -> Docs
2018-07-07 08:38:04 -03:00
David Capello
ee5842cde3
Rename DocumentApi -> DocApi
2018-07-07 03:07:16 -03:00
David Capello
ac7e48d92d
Rename DocumentUndo -> DocUndo
2018-07-07 02:55:27 -03:00
David Capello
457a9999b5
Move doc::Context to app::Context ( #378 )
...
We've moved everything related to Context/active site/observable
documents from "doc" namespace to "app" namespace.
2018-07-07 02:47:42 -03:00
David Capello
612ad98392
Rename DocumentObserver/Event to DocObserver/Event
2018-07-06 21:06:03 -03:00
David Capello
9449bb3a43
Move RWLock class to laf module
2018-07-06 20:55:10 -03:00
David Capello
afbb1627fc
Merge pull request #1784 from Gasparoken/fix-flip-transformation-enhanced-behavior-#1738
...
Flip command changes to moving pixels state (fix #1738 )
2018-07-06 16:41:14 -03:00
Gaspar Capello
a69a120e14
Flip command changes to moving pixels state ( fix #1738 )
2018-07-06 16:22:44 -03:00
David Capello
3ed516bc11
Add "Reverse Frames" in Frames popup menu ( fix #1781 )
2018-07-05 16:03:54 -03:00
David Capello
c388f1d812
Fix issues updating status bar in special cases when status bar indicators layout do not change
2018-07-05 12:39:49 -03:00
David Capello
7250e6adc4
Fix destination index in status bar text when moving palette colors
2018-07-05 11:29:12 -03:00
David Capello
7f2082e89c
Show palette entry info in status bar correctly when there are selected colors ( fix #1777 )
2018-07-05 11:02:07 -03:00
David Capello
f0d61b0557
Make Command::execute() private so it can be called only from app::Context
2018-07-04 16:43:38 -03:00
David Capello
3704bb4093
Fix problems changing HSV/HSL color sliders with mouse wheel
...
When we change HSV/HSL sliders, the RGB color is calculated and all
sliders are re-updated from that color. As HSV/HSL are floating point
values, there might be a small adjustment in the 0-100 conversion for
the sliders, so we have to lock the changed slider to keep its
original value set from the mouse wheel.
Fix: https://community.aseprite.org/t/1411
2018-07-04 16:28:34 -03:00
David Capello
7c19744798
Add some checks in ui/manager.cpp to report messages correctly
2018-07-04 14:27:13 -03:00
David Capello
1c8f2cde7d
Fix bug: removing frames weren't saving updated cel frame positions in the backup info
2018-07-04 13:38:54 -03:00
David Capello
68bf959b80
Add TX_TRACE() in app/transaction.cpp for debugging purposes
2018-07-04 13:38:20 -03:00
David Capello
6b1c884eb5
Add code to check integrity of backups
2018-07-04 12:35:15 -03:00
David Capello
cc1e76490c
Disable more commands to edit reference layers
...
* Disable filters (e.g. replace color, adjust hue, etc.)
* Disable cut/copy/paste/clear
2018-06-29 16:36:01 -03:00
David Capello
ec8266ea48
Go back to current editor frame when animation in preview window is stopped
2018-06-29 15:13:56 -03:00
David Capello
ac65b1291d
Add Shift+Enter (PlayPreviewAnimation command) to play/stop animation in preview window ( fix #1774 )
2018-06-29 15:05:11 -03:00
David Capello
3e0ebd34c9
Fix macOS bug executing commands from other native menu instead of the open aseprite menubox when we use mnemonics
2018-06-29 12:14:54 -03:00
David Capello
4d885b5b8a
Use old render engine when there are visible ref layers in zoom > 100%
2018-06-28 16:56:35 -03:00
David Capello
598f69d2e0
Create all intermediate directories required for --save-as ( fix #1492 )
2018-06-28 15:44:59 -03:00
David Capello
aec65faa2b
Add DOC_SPRITE_MAX_WIDTH/HEIGHT constants
2018-06-28 13:53:38 -03:00
David Capello
f595ceea7f
Add possibility to write math expression in number textboxes ( fix #1762 )
2018-06-28 13:33:13 -03:00
David Capello
aa8d4dfc11
macOS: Fix bug re-assigning default keyboard shortcuts to other native menus
...
I've found this bug re-assigning Cmd+E shortcut to File > Export,
after restarting Aseprite, Cmd+E will still execute the default
action (File > Export Sprite Sheet), and the only way to fix this was
opening "Edit > Keyboard Shortcuts" and closing the file (which will
call AppMenus::instance()->syncNativeMenuItemKeyShortcuts()).
Now if we create native menus after loading user defined keyboard
shortcuts, the native menus will contain the correct keyboard
shortcuts from the very beginning.
2018-06-27 11:32:24 -03:00
David Capello
51ce52981a
Improve UX in File > Export in special cases for output filename extension
...
* When the extension is unknown, an error is shown.
* When the extension is not written, the default extension will
be added (the default extension is different depending on
if the file format is image format or an animation format).
2018-06-27 10:00:19 -03:00
David Capello
49106817d4
Undo resize operation correctly in File > Export w/Resize != 100% and without undo history
...
If we open a new image (there is no undo history) and use File > Export
with a Resize parameter, the resize command must be undone, but the
UndoState to return will be nullptr (nullptr is before the first UndoState,
which is the resize operation for the export operation). So without this
fix we just resize and cannot go back before the resize.
This regression was introduced in a4d1833a9c37aa95c67185ee8632bd4b9f8d84fc
2018-06-26 10:56:41 -03:00
David Capello
b015fee8e0
Add a semi-transparent pixel (alpha=254) when export png for Twitter
2018-06-25 15:58:28 -03:00
David Capello
56ec9f113c
Avoid crash if the theme package doesn't contain a sheet.png file
2018-06-25 14:05:57 -03:00
David Capello
58b9dfed11
Merge branch 'master'
v1.2.9-beta3
2018-06-22 16:22:06 -03:00
David Capello
33369c0a5f
Add a fast path for RGBA images to convert_image_to_surface()
...
Most common case in Aseprite where we convert
a IMAGE_RGB doc::Image into a 32bpp she::Surface
and all RGBA masks/shifts match.
2018-06-22 15:56:50 -03:00
David Capello
511752fea7
New render engine to use bicubic interpolation when zoom < %100 ( fix #1671 )
...
This only works with Skia back-end.
2018-06-22 15:41:22 -03:00
David Capello
d1338fbe54
Merge pull request #1761 from Gasparoken/fix-duplicate-cel-ignores-collapsed-layer-groups
...
Fix Duplicate Cels ignores collapsed layer groups (fix #1727 )
2018-06-21 17:17:12 -03:00
Gaspar Capello
2b177601b5
Fix Duplicate Cels ignores collapsed layer groups ( fix #1727 )
2018-06-21 14:37:52 -03:00
David Capello
e06735a4c0
Move EditorPreRender code to EditorPostRender
...
This simplify Editor::drawOneSpriteUnclippedRect() impl to create an
alternative version of the renderer in the future.
2018-06-21 12:58:11 -03:00
David Capello
c3e233f34d
Create EditorRender to merge shared render image buffer and AppRender
2018-06-19 23:25:31 -03:00
David Capello
a5b0c7ebdd
Merge pull request #1750 from DexterIV/master
...
Fix "Sprite>Rotate Canvas > 90" not working on empty canvas (fix #1711 )
2018-06-19 15:41:21 -03:00
David Capello
ddff5d559c
Keep focus of layer name when right-click a layer > Properties ( fix #1466 )
2018-06-19 15:25:49 -03:00
David Capello
9323194cd9
Add a flag to disable warnings for about.xml
2018-06-19 14:49:40 -03:00
David Capello
e82404e3ba
Don't jump inside "Loop" tag w/next/previous frame within tag when we are outside the tag ( fix #1756 )
2018-06-19 14:35:00 -03:00
David Capello
a0c0b1c8e2
Add option to disable Wintab from Preferences dialog
...
With this is easier to give support to the end-user. The
--disable-wintab option was initially added for crash situation when
the user cannot execute Aseprite from the very beginning, but in other
situations, when Aseprite can be executed correctly but the stylus
doesn't work as expected, it's nice to have this option available from
the UI just to disable the Wintab32.dll.
2018-06-19 14:10:19 -03:00
David Capello
790705937f
Fix compilation error in non-Windows platforms
2018-06-19 13:50:23 -03:00