David Capello
70629d6f89
Use Tx instead of Transaction in commands
2018-08-20 16:00:59 -03:00
David Capello
587f697bda
js: Add Site class and app.site property
2018-08-20 15:15:38 -03:00
David Capello
1306f9a8a1
js: Fix app.transaction() method
...
Now we are calling the argument instead of the same transaction()
function recursively.
2018-08-20 14:42:28 -03:00
David Capello
c902be8fdf
js: add App.undo/redo()
2018-08-20 14:34:36 -03:00
David Capello
4779169676
js: Fix Sprite.width setter
2018-08-20 14:33:52 -03:00
David Capello
bc300bf986
Remove Image/SpriteWrap for scripting
...
From now on we can share the transaction in the app::Context instead
of having the transaction in a SpriteWrap. This is useful to run
macros/scripts in a near future calling commands (and all commands
could share the same transaction).
Some changes with this:
* Added app::Context::setTransaction/transaction() methods.
* Added Tx class to create a new Transaction or use the currenet
app::Context transaction.
* Added App.transaction() scripting method.
2018-08-20 14:20:27 -03:00
David Capello
7620c05aed
Exit with 1 when --script <script> fails
...
We throw an exception if the script fails, so app_main() catches it
and exit with code 1 (in this way we can detect the problem running
scripts from command line).
2018-08-20 13:59:52 -03:00
David Capello
783b6f4ad9
Update observable module
2018-08-17 14:31:42 -03:00
Oliver Peter
70f0496cd9
Avoid dirent.d_type since it is not POSIX compatible.
...
This fixes the empty file dialog bug on XFS/JFS/... from issue #951
2018-08-17 10:28:53 -03:00
David Capello
b5ace78bdf
Discard enqueued kWinMoveMessage messages ( fix #1006 )
...
When we're moving or resizing a window, sending several
kWinMoveMessage doesn't make sense. So we discard all kWinMoveMessage
and re-enqueue a new one with the latest window bounds.
2018-08-16 15:40:53 -03:00
David Capello
9c032013f2
Fix confusing variable name (two vars named "cel")
2018-08-16 12:30:39 -03:00
David Capello
b83eddf2ea
Fix uninitialized var
2018-08-16 12:30:23 -03:00
David Capello
f2609e7e26
Remove unused var in Release mode
2018-08-16 12:28:14 -03:00
David Capello
6643cae29a
Update observable module
2018-08-16 12:27:57 -03:00
David Capello
e0caca3567
Fix crash when Aseprite is being closed
2018-08-16 12:27:41 -03:00
David Capello
373a64aa20
Add BubbleGum16 color palette by PineTreePizza
...
https://twitter.com/PineTreePizza/status/1009483133425717248
2018-08-15 13:45:08 -03:00
David Capello
6b7ba57ba2
macOS: Fix loading fonts from user home ~/Library/Fonts dir
2018-08-15 13:45:00 -03:00
David Capello
360172d7ba
Fix .png loading progress (don't use uninitialized vars)
2018-08-15 13:44:48 -03:00
Gaspar Capello
e0c1c3c1d3
Enhancement one click selection on Add & Subtract modes (issue #1811 )
2018-08-10 12:09:09 -03:00
David Capello
e0315a18f9
x11/skia: Implement System::getUnicodeFromScancode()
2018-08-09 11:38:19 -03:00
David Capello
06cf550002
Avoid warning in debug mode about unused var when KEY_TRACE does nothing
2018-08-09 11:33:08 -03:00
David Capello
01bb56b50a
x11/skia: Add System::isKeyPressed() impl
2018-08-09 11:21:05 -03:00
David Capello
f8b193545e
x11/skia: Support Space bar as a modifier
2018-08-09 11:19:32 -03:00
David Capello
e60c20d5a4
Add support for Editor::autoScroll() on all platforms
2018-08-08 18:58:28 -03:00
David Capello
27c8cda988
x11/skia: Add setMousePosition() impl
2018-08-08 18:58:10 -03:00
David Capello
26eb34d094
x11/skia: Add comments in SkiaWindow
2018-08-08 18:57:53 -03:00
David Capello
6dd025ae7b
x11/skia: Add Display::setIcons() impl
2018-08-08 18:45:32 -03:00
David Capello
c5f6299df4
x11/skia: Add capture/releaseMouse impl
2018-08-08 18:45:02 -03:00
David Capello
de6cf4b08d
Rename files in she from vk -> keys
2018-08-08 17:42:31 -03:00
David Capello
2487eb81d2
Add EV_TRACE() to trace events from src/she/x11/event_queue.cpp
2018-08-08 17:33:01 -03:00
David Capello
f2ed45e795
Replace base::UniquePtr -> std::unique_ptr
2018-08-08 17:27:26 -03:00
David Capello
b981818134
x11/skia: Support changing custom RGBA mouse cursors
2018-08-08 11:53:27 -03:00
David Capello
a061ce160b
x11/skia: Avoid assert failing when MappingNotify is received
2018-08-08 10:24:41 -03:00
David Capello
af32df1a2a
x11/skia: Add Unicode data to KeyPress events
2018-08-07 17:33:23 -03:00
David Capello
cb3b201734
x11/skia: Add basic KeyPress/Release handling
...
Unicode char still missing in the generated event.
2018-08-07 16:35:55 -03:00
David Capello
9e65ff9ad8
Add support for more chunks per frame
...
This issue appeared for first time here:
https://community.aseprite.org/t/1762/4
2018-08-06 18:05:04 -03:00
David Capello
d13806ac23
Restore CMake configuration to use -stdlib=libc++ even on OS X 10.7
2018-08-06 16:42:55 -03:00
David Capello
56d85a2dc8
Update macOS SDK in cmake command line
2018-08-06 13:55:11 -03:00
David Capello
44a5c78167
Minor change in Timeline::setViewScroll()
2018-08-03 16:02:16 -03:00
Gaspar Capello
404a163eb6
Fix timeline scroll clipping under layer 0
2018-08-03 15:58:49 -03:00
David Capello
204ad920de
Update submodules
2018-08-03 14:26:53 -03:00
David Capello
39645dbda0
Use CMAKE_CXX_STANDARD to use C++11 flags
2018-08-03 13:03:05 -03:00
David Capello
74742141de
Update clip library with changes in CMakeLists.txt
2018-08-03 13:01:39 -03:00
David Capello
b67f92bfc3
Minor formatting changes
2018-08-03 12:16:17 -03:00
Gaspar Capello
e8977bb6a3
Fix timeline does not scroll with range dragging ( fix #1780 )
2018-08-03 12:08:25 -03:00
David Capello
2b937ad0e1
Add a link to Mozilla summart of C++11 features available in gcc 4.8
2018-08-03 12:00:38 -03:00
David Capello
b6a9091763
Remove Ctrl+0/9 for ChangeColor because conflict with Ctrl+0 for FitScreen
2018-08-03 11:58:48 -03:00
Gaspar Capello
9dcadcf283
Fix calculation last drawable layer and last drawable frame
2018-08-03 11:10:43 -03:00
Gaspar Capello
5e86884f74
Color palette does not scroll ( fix #1796 )
2018-08-02 15:50:35 -03:00
Gaspar Capello
71b14fa2d9
Remove input param in Timeline::getDrawable functions
2018-08-02 15:28:39 -03:00