Commit Graph

4421 Commits

Author SHA1 Message Date
David Capello
fcbb364085 Add "Play Once" option in "Play" button popup 2015-12-18 18:51:30 -03:00
David Capello
38128f7346 Fix bug reading (int/bool) parameters that aren't specified in Params
This fix a crash using ModifySelectionCommand commands.
2015-12-17 17:59:46 -03:00
David Capello
7f8cbfd250 New flags required for OS X/Skia port (m48 branch)
As now Skia uses <atomic> header file, we need C++11 and libc++
standard library when we compile with clang.
2015-12-17 17:43:13 -03:00
David Capello
70127f19e1 Fix closing the whole user data popup when we're selecting the user data color 2015-12-17 16:34:57 -03:00
David Capello
6ec07d5e10 Fix comment for ui::PopupWindow::setHotRegion() member function 2015-12-17 15:46:13 -03:00
David Capello
a3e77a657a Update context bar controls correctly when a new brush type is selected from a brush slot 2015-12-17 15:21:44 -03:00
David Capello
7a553f5c98 Link with skia_opts_avx.lib in Skia port
We're using m48 branch in Skia library.
2015-12-17 13:43:18 -03:00
David Capello
3845d6a31a Fix bugs setting BrushSlot flags from BrushPopup
E.g. We cannot set flags in a recently deleted BrushSlot after
show_popup_menu().
2015-12-17 13:37:22 -03:00
David Capello
0fbe3acfd0 Remove BrushPopupDelegate
At this moment we prefer to use AppBrushes and ContextBar directly
from BrushPopup.
2015-12-17 13:24:44 -03:00
David Capello
51e3ab178d Merge branch 'new-brush-popup' 2015-12-16 18:45:24 -03:00
David Capello
3b9ba0d7d2 Add missing members to SkiaDisplay port 2015-12-16 18:45:01 -03:00
David Capello
403e3ee726 Add popup on each BrushSlot to enable/disable params
Converted BrushSlotParams into a xml widget.
2015-12-16 18:14:04 -03:00
David Capello
0cdc71bf05 Add possibility to save brush type/size/angle, fg/bg colors, ink type/opacity, shade, etc. into brush slots
Fix #904
2015-12-16 17:27:04 -03:00
David Capello
1f513a1ed5 Restore selected ButtonSet item when we offer the mouse capture
When a ButtonSet triggers an onClick() when a mouse up message is received
(ButtonSet::m_multipleSelection == true), in case the mouse capture is
offered to other ButtonSet, we've to restore the selected item when we
capture the mouse, because we've never generated the onClick() event
in the first place.
2015-12-16 16:55:49 -03:00
David Capello
0f35102a4b Add show_popup_menu() internal function in brush_popup.cpp 2015-12-16 10:49:15 -03:00
David Capello
bd99a30146 Avoid closing BrushPopup when we click the menu popup option 2015-12-16 10:02:52 -03:00
David Capello
fd8e8686d5 Fix NewCustomBrushItem construction 2015-12-15 19:29:12 -03:00
David Capello
ab0c447be4 Merge branch 'master' 2015-12-15 18:19:28 -03:00
David Capello
3024bc7604 Fix redrawing issue when we "delete all brushes" 2015-12-15 18:17:42 -03:00
David Capello
53b8eb7c4d Don't use ContextBar from BrushPopup 2015-12-15 18:17:21 -03:00
David Capello
6ff62c899e Add "Save Brush Here" option to brush slot popup 2015-12-15 17:58:55 -03:00
David Capello
2d64a1926e Improve BrushPopup to save custom brushes (type/size/angle params)
We moved custom brushes stuff from ContextBar to app::AppBrushes class.
And now we can access the list of brushes from app::App::brushes() member.
2015-12-15 17:12:11 -03:00
David Capello
cff6d1cc65 Rename LinkLabel::getUrl() -> url() 2015-12-15 17:07:29 -03:00
David Capello
a380c9a877 Add possibility to create an empty LinkLabel 2015-12-15 17:07:13 -03:00
David Capello
e422acff1f Fix PopupWindow size hint when it doesn't have a title 2015-12-15 17:06:54 -03:00
David Capello
d8417df35f Add possibility to create empty ui::ListItems 2015-12-15 17:06:05 -03:00
David Capello
503c3c4bb5 Add missing #include <cstring> to use std::strlen() 2015-12-14 17:13:16 -03:00
David Capello
5ca927d307 Keep all frame-related information in filename_formatter() when replaceFrame is false
This bug was found in a comment in #897
2015-12-14 17:04:16 -03:00
David Capello
6d3623ec26 Add {tagframe} to filename format (fix #894) 2015-12-14 16:49:02 -03:00
David Capello
172e03b5e3 Merge branch 'TheKK-checkerBGRedraw' 2015-12-14 12:21:41 -03:00
Ying Ruei Liang (KK)
60f70e0d3e Invalidate editor after background setting changed 2015-12-14 12:31:44 +08:00
David Capello
c49abf9969 Add missing user_data.xml 2015-12-11 20:17:34 -03:00
David Capello
8698ac5f57 Merge branch 'user-data' 2015-12-11 19:49:56 -03:00
David Capello
a09df5201e Merge branch 'master' 2015-12-11 19:48:18 -03:00
David Capello
be9b33828d Don't restore the window minimized 2015-12-11 19:46:41 -03:00
David Capello
b0aea675cf Merge branch 'master' 2015-12-11 19:44:48 -03:00
David Capello
a088bf46a2 Remember exact window position (e.g. in which monitor it was closed)
It's working on alleg4 port on Windows only.
2015-12-11 19:40:18 -03:00
David Capello
868376380f Draw layers and cels in Timeline w/user-defined color in UserData 2015-12-11 19:37:19 -03:00
David Capello
addddf78a5 Add color field to doc::UserData 2015-12-11 19:18:36 -03:00
David Capello
594892f5ef Modify cel/layer property dialogs layout 2015-12-11 16:28:08 -03:00
David Capello
8a653b6de2 Load/save user data in .ase files 2015-12-11 16:23:29 -03:00
David Capello
2fcd2b4013 Copy user data when a layer is duplicated 2015-12-11 15:11:34 -03:00
David Capello
8b5d013b03 Serialize user data for layers and cel data
In this way undo/redo restore user data.
2015-12-11 15:11:24 -03:00
David Capello
9e6e303ccd Copy user data when we copy a cel 2015-12-11 14:46:27 -03:00
David Capello
2f7e36a95e Fix crash when we copy a cel w/drag-and-drop and change cel properties
This is because Context::notifyActiveSiteChanged() wasn't called on
each onAdd/RemoveCel() events. This should fix several bugs.
2015-12-11 14:27:30 -03:00
David Capello
3da1a80b63 Keep Undo History window position between sessions 2015-12-11 14:02:42 -03:00
David Capello
f27836744f Show correct user data after undo/redo and commit change immediately 2015-12-11 13:58:32 -03:00
David Capello
eb6b57c5fb Use a hot region equal to the whole manager area for UserDataPopup 2015-12-11 13:45:02 -03:00
David Capello
e78e9eeb2c Add PopupWindow::setClick/EnterBehavior() member functions 2015-12-11 12:48:11 -03:00
David Capello
08bef859e3 Add user data field on layers and cels 2015-12-10 18:34:25 -03:00