Commit Graph

30 Commits

Author SHA1 Message Date
David Capello 855be8f05f Fix regression w/Preview close button
Now it deselects the 1:1 button in the toolbar again.
2017-03-30 16:27:18 -03:00
David Capello 293f14cf42 Fix window buttons
- Fixed regression introduced in f4c6c92dab
- Removed SkinButton template
2017-03-29 21:59:04 -03:00
David Capello 01979f0cac Select the valid tag for animation playback depending on the active timeline frame tag (related to #920) 2017-03-29 21:18:29 -03:00
David Capello a62f12ad09 Move all code to draw windows to ui-lib w/new styles 2017-02-17 14:18:47 -03:00
David Capello bb4faca1d1 New Style class in "ui" layer to paint widgets (only button at this moment)
This new ui::Style should finally replace the old app::skin::SkinStyle
class. At this moment both implementations are working to avoid an
huge refactor in just one commit.

- Added new ui::Style property in ui::Widget.
- Removed old code to set the button "bevel" (removed
  app::setup_bevels() functions).
- Removed setup_look() function and Left/RightButtonLooks.
- Removed check_button_new() function.
- Removed ui::Theme::paintButton/ComboBoxButton() functions.
2017-02-13 18:34:23 -03:00
David Capello 75020d9405 Simplify window icons in theme definition 2017-02-10 18:38:08 -03:00
David Capello 2bac4d0313 Fix problem playing animation in the current editor and the preview window 2017-01-31 10:49:59 -03:00
David Capello 767976c6bc Add option to play all frames (ignoring tags) 2016-11-30 10:23:29 -03:00
David Capello 6377b550e3 Replace base::Signal/Observable* with obs::signal/observable
We can use the obs library directly for signal/slots and observable
objects.
2016-09-13 15:02:00 -03:00
David Capello 5ecc356a41 Replace GPL license with the new EULA 2016-08-29 13:08:21 -03:00
David Capello d7f2155adb Show popup menu on "Play" buttons with Ctrl+click 2016-08-13 13:35:35 -03:00
David Capello c49ec61fa0 Minor refactor: rename DocumentView::getEditor/Document() -> editor/document() 2016-02-13 01:33:43 -03:00
David Capello 1f319cd2d1 Don't change MiniPlayButton state in preview window when we scroll it (fix #958) 2016-02-11 21:39:22 -03:00
David Capello 7b8d9102e1 Add independent scroll/zoom values in preview window per document (fix #959) 2016-02-11 21:09:31 -03:00
David Capello fcbb364085 Add "Play Once" option in "Play" button popup 2015-12-18 18:51:30 -03:00
David Capello e944ce0052 Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
David Capello 1aaeacc460 Refactor several "getNoun()" getters to "noun()"
This is a work-in-progress to create a consistent API and finally
separate the whole Aseprite base/gfx/ui libs into a reusable C++ library.

Classes:
app::IFileItem, app::AppMenuItem, app::skin::SkinPart,
gfx::Rect, gfx::Border, she::FileDialog,
ui::IButtonIcon, ui::Graphics, ui::Overlay, ui::Widget,
ui::ScrollableViewDelegate, and UI events
2015-12-04 14:39:04 -03:00
David Capello dc6161a66a Add mini_scrollbar_size dimension in skin.xml 2015-09-16 11:10:30 -03:00
David Capello 53a925e86d Remove SkinParts enum
Now we generate the list of SkinTheme parts from the skin.xml file using
the gen utility.

Several refactors included in SkinTheme class to simplify code.
2015-08-04 19:38:52 -03:00
David Capello a2538628c7 Convert ui::Widget::border_width/child_spacing to private fields 2015-06-23 19:20:49 -03:00
David Capello 401dd5362b Add option to change the "Stop" button behavior (fix #705) 2015-06-19 12:09:34 -03:00
David Capello e973aa0cc7 Don't close the Preview window if we close an unrelated Editor 2015-05-18 21:28:30 -03:00
David Capello 804330788b Add right-click popup menu in play buttons to change animation speed (fix #595) 2015-05-07 19:08:24 -03:00
David Capello a42d9d1c00 Add new Editor PlayState so we can have several editors playing animations
With this change we share the logic to play animations between the Preview
window and Enter key/play animation.
2015-04-06 16:12:28 -03:00
David Capello 7724c212e8 Return to the current frame when we stop the animation in Preview window 2015-03-11 16:20:19 -03:00
David Capello 58d302749c Use a FrameTag for the loop section (fix #557)
Changes:
* Paint FrameTags in Timeline with labels
* Add app::ui::FrameTagWindow
* Fix FrameTag::m_aniDir initialization
* Add warning for files that doesn't support frame tags
* Remove document preferences related to the active loop
2015-03-09 13:57:54 -03:00
David Capello 69ac11eea2 Remove IDocumentSettings and DocumentSettingsObserver
Document user options are completely replaced with DocumentPreferences.
2015-02-15 09:48:38 -03:00
David Capello 2c6067f7e4 Update license of app/ module to GPLv2 2015-02-12 12:16:25 -03:00
David Capello 22f35ab249 Independent scroll/zoom in Preview window (part of issue #407) 2015-02-10 12:59:43 -03:00
David Capello 5f78fbe354 Rename MiniEditorWindow to PreviewEditorWindow 2015-02-10 09:38:07 -03:00