aseprite/src/app/ui
David Capello a09b00dba8 Fix synchronization of different UI elements depending on the active tool
With this patch now the context bar shows the real active tool
preferences. For example, if we choose the option to use the Eraser
tool with right-click, now right-clicking will draw with the Eraser
brush size (instead of using the selected tool/left-click tool brush
size).

Changes:
* Removed the toolBox.activeTool() field from preferences
  (as the option isn't persisted between sessions)
* Added an observable app::tools::ActiveToolManager class to sync all
  UI elements that depend on the active tool and ink.
* Moved a lot of "active tool" logic from app::Editor to the
  new ActiveToolManager
* Moved app::tools::ToolLoopManager::Pointer as an indepedent
  app::tools::Pointer class
2016-04-25 15:20:53 -03:00
..
editor Fix synchronization of different UI elements depending on the active tool 2016-04-25 15:20:53 -03:00
skin Add possibility to recover raw images from a session (as a sequence of frames or layers) 2016-04-07 16:12:03 -03:00
ani_controls.cpp Add "Play Once" option in "Play" button popup 2015-12-18 18:51:30 -03:00
ani_controls.h Add tooltips to AniControls 2015-08-11 13:23:48 -03:00
animated_widget.h Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
app_menuitem.cpp Refactor several "getNoun()" getters to "noun()" 2015-12-04 14:39:04 -03:00
app_menuitem.h Refactor several "getNoun()" getters to "noun()" 2015-12-04 14:39:04 -03:00
brush_popup.cpp Merge pull request #924 from TheKK/brush_value_set 2016-04-25 14:04:06 -03:00
brush_popup.h Remove BrushPopupDelegate 2015-12-17 13:24:44 -03:00
button_set.cpp Restore selected ButtonSet item when we offer the mouse capture 2015-12-16 16:55:49 -03:00
button_set.h Improve BrushPopup to save custom brushes (type/size/angle params) 2015-12-15 17:12:11 -03:00
color_bar.cpp Rotate foreground color hue by default with mouse wheel above ColorSelector 2016-03-17 16:42:50 -03:00
color_bar.h Add mouse wheel behavior in color selector to rotate hue (fix #1012) 2016-03-17 16:40:34 -03:00
color_button.cpp Add app::IColorSource interface to get pixels from widgets from mouse pos 2016-03-17 17:16:35 -03:00
color_button.h Add app::IColorSource interface to get pixels from widgets from mouse pos 2016-03-17 17:16:35 -03:00
color_popup.cpp Rename app::ColorSelector -> app::ColorPopup 2016-03-17 16:08:08 -03:00
color_popup.h Rename app::ColorSelector -> app::ColorPopup 2016-03-17 16:08:08 -03:00
color_selector.cpp Add mouse wheel behavior in color selector to rotate hue (fix #1012) 2016-03-17 16:40:34 -03:00
color_selector.h Implement app::IColorSource in color selectors 2016-03-18 23:35:23 -03:00
color_sliders.cpp Add more precision to HSV <-> RGB conversion (fix #961) 2016-02-12 13:01:32 -03:00
color_sliders.h Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
color_source.h Add app::IColorSource interface to get pixels from widgets from mouse pos 2016-03-17 17:16:35 -03:00
color_spectrum.cpp Implement app::IColorSource in color selectors 2016-03-18 23:35:23 -03:00
color_spectrum.h Implement app::IColorSource in color selectors 2016-03-18 23:35:23 -03:00
color_tint_shade_tone.cpp Show color on status bar when mouse is over ColorTintShadeTone (and not captured) 2016-04-20 09:37:49 -03:00
color_tint_shade_tone.h Implement app::IColorSource in color selectors 2016-03-18 23:35:23 -03:00
color_wheel.cpp Implement app::IColorSource in color selectors 2016-03-18 23:35:23 -03:00
color_wheel.h Implement app::IColorSource in color selectors 2016-03-18 23:35:23 -03:00
configure_timeline_popup.cpp Rename PopupWindow enums 2015-12-05 15:56:32 -03:00
configure_timeline_popup.h Add option to put the onion skin behind the sprite 2015-07-31 15:55:06 -03:00
context_bar.cpp Fix synchronization of different UI elements depending on the active tool 2016-04-25 15:20:53 -03:00
context_bar.h Fix synchronization of different UI elements depending on the active tool 2016-04-25 15:20:53 -03:00
context_bar_observer.h Update license of app/ module to GPLv2 2015-02-12 12:16:25 -03:00
data_recovery_view.cpp Add possibility to recover raw images from a session (as a sequence of frames or layers) 2016-04-07 16:12:03 -03:00
data_recovery_view.h Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
devconsole_view.cpp Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
devconsole_view.h Refactor scripting code 2016-04-06 15:37:13 -03:00
document_view.cpp Enable eraser support for Wacom tablets on Skia/Win back-end 2016-04-20 22:33:10 -03:00
document_view.h Minor refactor: rename DocumentView::getEditor/Document() -> editor/document() 2016-02-13 01:33:43 -03:00
drop_down_button.cpp Remove SkinParts enum 2015-08-04 19:38:52 -03:00
drop_down_button.h Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
file_list.cpp Merge branch 'unicode-text' 2016-04-04 10:26:57 -03:00
file_list.h Move clock/tick from "she" to "base" library and switch to uint64_t type 2016-03-29 16:19:23 -03:00
file_list_view.cpp Generalize View::setViewScroll() to blit valid/scrollable region automatically 2016-01-05 16:37:52 -03:00
file_list_view.h Generalize View::setViewScroll() to blit valid/scrollable region automatically 2016-01-05 16:37:52 -03:00
file_selector.cpp Add properties in App to access directly to timeline/contextBar/workspace 2016-04-22 13:19:06 -03:00
file_selector.h Generalize View::setViewScroll() to blit valid/scrollable region automatically 2016-01-05 16:37:52 -03:00
font_popup.cpp Rename PopupWindow enums 2015-12-05 15:56:32 -03:00
font_popup.h Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
frame_tag_window.cpp Rename ui::Window::getKiller() -> closer() 2015-12-04 14:54:15 -03:00
frame_tag_window.h Change name of generated files from "generated_file.h" to "file.xml.h" 2015-09-22 16:33:49 -03:00
hex_color_entry.cpp Refactor several "getNoun()" getters to "noun()" 2015-12-04 14:39:04 -03:00
hex_color_entry.h Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
home_view.cpp Add properties in App to access directly to timeline/contextBar/workspace 2016-04-22 13:19:06 -03:00
home_view.h Change name of generated files from "generated_file.h" to "file.xml.h" 2015-09-22 16:33:49 -03:00
icon_button.cpp Refactor several "getNoun()" getters to "noun()" 2015-12-04 14:39:04 -03:00
icon_button.h Rename PreferredSize -> SizeHint 2015-12-03 21:50:05 -03:00
input_chain.cpp Fix triggering Editor's onCut() without mask when ColorBar's onCanCut() enables it 2015-05-11 09:37:39 -03:00
input_chain.h Unify Cut/Copy/Paste/Clear handling with InputChain class 2015-05-09 19:55:33 -03:00
input_chain_element.h Unify Cut/Copy/Paste/Clear handling with InputChain class 2015-05-09 19:55:33 -03:00
keyboard_shortcuts.cpp Add properties in App to access directly to timeline/contextBar/workspace 2016-04-22 13:19:06 -03:00
keyboard_shortcuts.h Add scaling from center/pivot (fix #576) and with flipping (fix #579) 2016-04-08 11:55:40 -03:00
main_menu_bar.cpp Update license of app/ module to GPLv2 2015-02-12 12:16:25 -03:00
main_menu_bar.h Update license of app/ module to GPLv2 2015-02-12 12:16:25 -03:00
main_window.cpp Fix synchronization of different UI elements depending on the active tool 2016-04-25 15:20:53 -03:00
main_window.h Change name of generated files from "generated_file.h" to "file.xml.h" 2015-09-22 16:33:49 -03:00
marching_ants.h Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
news_listbox.cpp Refactor several "getNoun()" getters to "noun()" 2015-12-04 14:39:04 -03:00
news_listbox.h Cache RSS news file 2015-03-04 19:24:37 -03:00
notifications.cpp Refactor several "getNoun()" getters to "noun()" 2015-12-04 14:39:04 -03:00
notifications.h Rename PreferredSize -> SizeHint 2015-12-03 21:50:05 -03:00
palette_popup.cpp Rename PopupWindow enums 2015-12-05 15:56:32 -03:00
palette_popup.h Add option to load/save default palette preset (fix #626) 2015-05-08 16:08:55 -03:00
palette_view.cpp Add app::IColorSource interface to get pixels from widgets from mouse pos 2016-03-17 17:16:35 -03:00
palette_view.h Add app::IColorSource interface to get pixels from widgets from mouse pos 2016-03-17 17:16:35 -03:00
palettes_listbox.cpp Rename PreferredSize -> SizeHint 2015-12-03 21:50:05 -03:00
palettes_listbox.h Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
popup_window_pin.cpp Refactor several "getNoun()" getters to "noun()" 2015-12-04 14:39:04 -03:00
popup_window_pin.h Update license of app/ module to GPLv2 2015-02-12 12:16:25 -03:00
preview_editor.cpp Minor refactor: rename DocumentView::getEditor/Document() -> editor/document() 2016-02-13 01:33:43 -03:00
preview_editor.h Add independent scroll/zoom values in preview window per document (fix #959) 2016-02-11 21:09:31 -03:00
recent_listbox.cpp Add properties in App to access directly to timeline/contextBar/workspace 2016-04-22 13:19:06 -03:00
recent_listbox.h Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
resources_listbox.cpp Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
resources_listbox.h Rename PreferredSize -> SizeHint 2015-12-03 21:50:05 -03:00
search_entry.cpp Refactor several "getNoun()" getters to "noun()" 2015-12-04 14:39:04 -03:00
search_entry.h Rename PreferredSize -> SizeHint 2015-12-03 21:50:05 -03:00
select_accelerator.cpp Add tooltip to "Super" key checkbox in shortcut dialog 2016-03-02 12:33:05 -03:00
select_accelerator.h Add tooltip to "Super" key checkbox in shortcut dialog 2016-03-02 12:33:05 -03:00
status_bar.cpp Fix synchronization of different UI elements depending on the active tool 2016-04-25 15:20:53 -03:00
status_bar.h Fix synchronization of different UI elements depending on the active tool 2016-04-25 15:20:53 -03:00
styled_button.cpp Refactor several "getNoun()" getters to "noun()" 2015-12-04 14:39:04 -03:00
styled_button.h Rename PreferredSize -> SizeHint 2015-12-03 21:50:05 -03:00
tabs.cpp Merge branch 'unicode-text' 2016-04-04 10:26:57 -03:00
tabs.h Rename PreferredSize -> SizeHint 2015-12-03 21:50:05 -03:00
timeline.cpp Improve status bar with icons/automatically generated and re-used parts (fix #752) 2016-04-19 13:45:23 -03:00
timeline.h Invalidate/redraw timeline in a general document update 2016-02-01 10:56:03 -03:00
toolbar.cpp Fix synchronization of different UI elements depending on the active tool 2016-04-25 15:20:53 -03:00
toolbar.h Fix synchronization of different UI elements depending on the active tool 2016-04-25 15:20:53 -03:00
user_data_popup.cpp Add color field to doc::UserData 2015-12-11 19:18:36 -03:00
user_data_popup.h Add user data field on layers and cels 2015-12-10 18:34:25 -03:00
workspace.cpp Refactor several "getNoun()" getters to "noun()" 2015-12-04 14:39:04 -03:00
workspace.h Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
workspace_panel.cpp Refactor several "getNoun()" getters to "noun()" 2015-12-04 14:39:04 -03:00
workspace_panel.h Support to clone tabs using Ctrl+drag (close #634) 2015-04-20 13:49:25 -03:00
workspace_tabs.cpp Add possibility to move tabs between different WorkspaceTabs widgets 2015-04-02 15:43:50 -03:00
workspace_tabs.h Add possibility to move tabs between different WorkspaceTabs widgets 2015-04-02 15:43:50 -03:00
workspace_view.h Unify Cut/Copy/Paste/Clear handling with InputChain class 2015-05-09 19:55:33 -03:00
workspace_views.h Update license of app/ module to GPLv2 2015-02-12 12:16:25 -03:00
zoom_entry.cpp Add missing #include files 2015-10-02 10:54:15 -03:00
zoom_entry.h Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00