Commit Graph

6581 Commits

Author SHA1 Message Date
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
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