Commit Graph

6139 Commits

Author SHA1 Message Date
David Capello
835941a6d6 Rename C++ style guides to CODING_STYLE.md file 2018-06-08 16:24:11 -03:00
David Capello
e025d1a40a Improve widget class generator including only required .h files
Instead of including "ui/ui.h" we can include the specific header file
for the used widgets in the .xml widget.
2018-06-08 15:52:10 -03:00
David Capello
7d96968ac3 Use BoolPrefWidget for alert options in Preferences dialog 2018-06-08 15:25:08 -03:00
David Capello
b8445956ae Restore selected Timeline range after undo/redo 2018-06-08 14:40:02 -03:00
David Capello
db097d3e67 Bring back the old timeline style (#1741, #1744)
We've added a new shade to show the focused cel (active layer/frame)
inside the selected range of the timeline when multiple cels are
selected.
2018-06-07 12:21:21 -03:00
David Capello
867b42d7ed Minor change in listbox.cpp to avoid gcc warnings 2018-06-06 16:36:59 -03:00
David Capello
7a35eb26a1 Add new pref="" attribute to <check> widgets to bind check boxes with bool preference options automatically
With this change we've moved the propagateToChildren/propagateToParent
flags from ui::KeyMessage to ui::Message so anykind of
message (e.g. user defined messages like kSavePreferencesMessage) can
use these flags (processed by ui::Widget::onProcessMessage()).
2018-06-06 16:35:02 -03:00
David Capello
05f6aec8b2 Add ability to select timeline + color bar at the same time (related to #1741) 2018-06-05 13:11:29 -03:00
David Capello
f29ead0f1d Minor change in cmd::ClearRect to avoid static analysis confusion (close #1478)
The Cel argument in ClearRect() ctor must not be nullptr.
2018-06-05 11:33:28 -03:00
David Capello
65e28c8f1e Alternative fix for #1716 without using calloc 2018-06-05 11:20:25 -03:00
David Capello
2fe40a2e50 Add first draft about coding standards on Aseprite 2018-06-01 16:24:46 -03:00
David Capello
594fe3fb90 Fix problems drawing color selectors in background thread w/Allegro back-end
In debug mode Aseprite can crashes, in release mode the effect is only
visual: if the palette contains semi-transparent colors, the Allegro
drawing mode is changed while drawing the color bar and the color
selector will use the new drawing mode (or vice-versa).

Bug introduced in 0fe5edb7fe
2018-05-31 15:54:09 -03:00
David Capello
0c7c1b13ec
Merge pull request #1739 from Gasparoken/fix-toggling-timeline-pauses-animation
Fix toggling timeline visibility pauses animation (fix #1726)
2018-05-31 12:36:50 -03:00
Gaspar Capello
59eed7f8d9 Fix toggling timeline visibility pauses animation (fix #1726) 2018-05-31 12:08:02 -03:00
David Capello
89c3819784 Fix segfault on Linux closing the app 2018-05-30 18:20:31 -03:00
David Capello
96ca735ed5 Add command to Stroke the selection bounds w/the foreground color 2018-05-30 18:05:18 -03:00
David Capello
291e9c7dde Add command to fill selection with foreground color (F key, related to #1387) 2018-05-30 16:53:20 -03:00
David Capello
6ab467e5f9 Merge branch 'master' 2018-05-28 15:20:50 -03:00
David Capello
cf17ebac76 General update of palette extensions
* Better IDs for palettes
* Rename psygnork -> psygnosia
* Added ARQ16
2018-05-28 15:19:22 -03:00
David Capello
ca10195a48
Merge pull request #1635 from SagePtr/patch-1
Update arne32.gpl to v20e5
2018-05-28 15:17:29 -03:00
David Capello
e70af6d434 Add palettes by Adigun A. Polack
https://twitter.com/AdigunPolack
http://pixeljoint.com/p/158352.htm
2018-05-28 14:32:02 -03:00
David Capello
cb68687409 Update clip/observable/undo modules 2018-05-28 14:14:34 -03:00
David Capello
76915c7cb0 Automatically increase the canvas size if bigger images are loaded in a sequence (fix #1719) 2018-05-24 15:37:01 -03:00
David Capello
31dcd3272a Fix error using filters when the selection is outside the canvas and is hidden/deselected (fix #1737) 2018-05-24 15:25:41 -03:00
David Capello
0f51467768 Fix my common typo "completelly" instead of "completely" 2018-05-24 14:21:00 -03:00
David Capello
a845b098d9 Minor changes in ui/system.cpp 2018-05-24 13:12:01 -03:00
David Capello
40968891f2 Add option to disable native clipboard
This is related to #1100, as the Linux port is not well tested and may
fail, it's good to have an option to disable the native clipboard code
just in case.
2018-05-24 12:56:07 -03:00
David Capello
218a0863c3 Minor formatting changes 2018-05-24 11:48:42 -03:00
David Capello
d917ab7c53
Merge pull request #1736 from Gasparoken/fix-buggy-timeline
Fix timeline glitch playing linked frames (fix #1705)
2018-05-24 11:15:37 -03:00
Gaspar Capello
fd53e373b6 Fix timeline glitch playing linked frames (fix #1705) 2018-05-24 10:55:58 -03:00
David Capello
22e2145d65 Add clipboard support in Linux/X11 (fix #1100) 2018-05-23 17:20:52 -03:00
David Capello
c8c12700e5 win: Fix compilation w/Allegro backend (fix #1730) 2018-05-23 15:20:11 -03:00
David Capello
139c5aac49 Add flag to compile CLI-only (fix #1279)
New cmake flag -DENABLE_UI=OFF can be used to turn off the GUI
and compile a CLI-only version of Aseprite.

Requested here too:
https://community.aseprite.org/t/1351
2018-05-07 00:11:50 -03:00
David Capello
c221685c44
Merge pull request #1718 from Gasparoken/fix-pivot-standbyState
Fix clickable pivot pos in StandbyState (fix #1608)
2018-05-03 12:01:47 -03:00
Gaspar Capello
a7c7e82aa8 Fix clickable pivot pos in StandbyState (fix #1608)
Also reported in https://community.aseprite.org/t/pivot-point-doesnt-recalibrate-when-setting-its-direction/1228
2018-05-03 11:39:01 -03:00
David Capello
160209cb25 Fix flags to compile Skia on macOS which fixes exception handling
On Clang/macOS we cannot mix projects compiled with -fno-rtti that use
std::__throw_bad_weak_ptr() function and expect to catch
std::runtime_error as an std::exception in our project (compiled with
-frtti).

Real fix to crash in c59f03a7a0 and other
crash like moving a layer below to the background, and maybe a lot of
other cases where exceptions are used.

Example of this bug: https://gist.github.com/dacap/7ddffbe401eb42620de397e47edfcc76
2018-04-28 11:58:34 -03:00
David Capello
41b97cde40 Update laf and clip modules 2018-04-28 11:48:37 -03:00
David Capello
b986c742cd Test catching std::exception when move_range() fails
It looks like we're having problems catching std::runtime_error as
std::exception on Clang/macOS. So we'll test catching the more generic
exception which is the same that we do in timeline.cpp
2018-04-27 13:31:14 -03:00
David Capello
c667b029ae Minor change in document_range_tests.cpp 2018-04-27 13:30:56 -03:00
David Capello
a40bc9d683 Update laf module 2018-04-27 10:13:32 -03:00
David Capello
3ddb3d054b
Merge pull request #1710 from Gasparoken/auto-show-selection-edges
Add option to disable auto show selection edges (fix #1614)
2018-04-20 11:34:46 -03:00
Gaspar Capello
dd82f6bbcc Add option to disable auto show selection edges (fix #1614) 2018-04-20 10:56:27 -03:00
David Capello
2bca629193 Update to Skia version m67
Aseprite can be compiled with m62, m65, and m67 now.
It looks like the Skia API is more stable now.

Discussions:
https://community.aseprite.org/t/compiling-aseprite-on-macos-high-sierra-10-13-4/1290/6
https://community.aseprite.org/t/error-with-compile-skia-mac-os/1267/8
2018-04-20 09:15:21 -03:00
David Capello
a95f95a734 app::ExtraCel::destroy() function doesn't exist 2018-04-18 17:03:04 -03:00
David Capello
a507951871 doc: Update copyright year 2018-04-18 16:57:20 -03:00
David Capello
4873d8d799 doc: Remove SpritesObserver 2018-04-18 16:56:02 -03:00
David Capello
44a920b444 Include base/base.h (and debug.h) for SGN/MID (and ASSERT) 2018-04-16 11:17:51 -03:00
David Capello
de25f286b4 Include pixman header file with "..." instead of <...>
To avoid clang error on Xcode
2018-04-16 10:59:59 -03:00
David Capello
eeb8069226
Merge pull request #1707 from Gasparoken/fix-selection-edges
Fix: Automatic Show Selection Edges with Cmd+A (#1614)
2018-04-13 16:04:46 -03:00
David Capello
c851065180
Merge pull request #1706 from Gasparoken/fix-move-tool
Fix Move Tool: selection bounds does not match with Layer movement
2018-04-13 16:04:33 -03:00