Commit Graph

6186 Commits

Author SHA1 Message Date
David Capello
8e5724e51f Minor change in About dialog 2018-07-24 15:27:02 -03:00
David Capello
b767b1868a Fix consecutive double-clicks on Linux (fix #1346, close #1766) 2018-07-24 15:08:27 -03:00
David Capello
e0958027db Update tinyexpr module 2018-07-24 14:49:08 -03:00
David Capello
95c6af355c Fix problems assigning different but similar modifiers to mouse wheel actions
For example, before this change we were depending on the order of the
wheel actions. If an action were associated to <Ctrl> and other one to
<Ctrl+Shift>, when we pressed <Ctrl+Shift> we weren't returning the
action with most modifiers pressed (in this case <Ctrl+Shift>), but
instead the one that was checked first in the for loop (which could
be the one with <Ctrl>).
2018-07-24 13:45:12 -03:00
David Capello
65bc54904d Reset mouse wheel customization section correctly 2018-07-24 13:42:59 -03:00
David Capello
f47508c21a Change default mouse wheel behavior (ctrl+wheel = change brush size) 2018-07-24 13:32:36 -03:00
David Capello
f4db850fb4 Disable quicktool when the mouse wheel is used with a modifier that active an "wheel action" for the selected tool
If we assign Ctrl to change brush size, and Ctrl to quickly select
Move tool, when we press Ctrl (quicktool=Move) and use the mouse wheel
to change the brush size, we prefer to see the selected
tool (e.g. Pencil tool) instead of the quicktool (Move tool).
2018-07-24 12:45:57 -03:00
David Capello
3c8220aa7d Show real-time filter preview in all editors
Fix: https://community.aseprite.org/t/1649
2018-07-23 23:43:31 -03:00
David Capello
0abbc98343 Update observable submodule 2018-07-23 15:20:58 -03:00
David Capello
413603a71a Don't use KeyboardShortcuts singleton for temporal changes in Keyboard Shortcuts dialog
Main changes:

- Improve the "Keyboard Shortcuts" dialog because instead of changing
  global shortcuts/menu keys and rollback everything if we select
  "Cancel", here we make a copy of all shortcuts, modify them in the
  dialog UI, and finally "commit" to the global shortcuts if the user
  confirms the dialog.
- Fix "Reset" button in "Keyboard Shortcuts" dialog for mouse wheel
  customization
2018-07-23 15:15:04 -03:00
David Capello
c5fda62173 Don't access to KeyboardShortcuts singleton from SelectAccelerator 2018-07-20 14:32:55 -03:00
David Capello
7740f6a710 Add mouse wheel customization for sprite editor
Fix #680, #970, https://community.aseprite.org/t/668
and possibility to change alpha with mouse wheel:
https://github.com/aseprite/aseprite/issues/680#issuecomment-344721509
2018-07-19 23:05:14 -03:00
David Capello
f33091dbfa Add KeyPtr as std::shared_ptr<Key> 2018-07-17 23:53:08 -03:00
David Capello
adb65ea64c Fix typo in gui.xml 2018-07-17 16:59:22 -03:00
David Capello
424d465144 Update she for skia-m67 on Linux 2018-07-16 18:10:54 -03:00
David Capello
e6e74977c9 Linux: Now we can get the image size from the native clipboard 2018-07-16 16:01:03 -03:00
David Capello
665d481a53 gcc: Fix compilation error in alleg4/alleg_surface.cpp 2018-07-16 16:00:35 -03:00
David Capello
b3c89cd110 Rename DocumentView -> DocView 2018-07-14 23:24:49 -03:00
David Capello
b8317805f8 Rename DocumentExporter -> DocExporter 2018-07-14 23:02:37 -03:00
David Capello
cf8eee60b0 Rename DocumentDiff -> DocDiff 2018-07-14 22:52:34 -03:00
David Capello
8d3da46ac9 Rename DocumentReader/Writer -> DocReader/Writer 2018-07-14 22:49:22 -03:00
David Capello
e88952572c Rename CreateDocumentArgs -> CreateDocArgs 2018-07-07 14:05:06 -03:00
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