Commit Graph

3237 Commits

Author SHA1 Message Date
David Capello
decaa6510f Add TODO comment for SkinParts enum 2015-05-06 10:53:01 -03:00
David Capello
d0fe427805 SkinProperty doesn't have mini font by default 2015-05-06 10:50:21 -03:00
David Capello
eeb6d6e1b5 Fix problem resetting fonts after F5 for widgets with "mini font" (after theme is reloaded)
There are some widgets (e.g. fg/bg color buttons in the ColorBar, and
ContextBar's check-boxes) that use a "mini font". We could setup the mini
font in onInitTheme(), but the whole program is not ready to do something
like that (there are too much child_spacing/borders values that are set
outside onInitTheme).

A better way is to ask to the theme itself (Theme::getWidgetFont())
about what font to use for each specific widget. And the Widget::m_font
field can act as a cache of this requested font. So now the "mini font"
is specified in a SkinProperty's flag.
2015-05-05 19:14:33 -03:00
David Capello
fed03e7d7b Continue playing animation when we scroll 2015-05-05 15:31:25 -03:00
David Capello
91c2872908 Fix bug showing "&&" in About dialog 2015-05-05 13:41:27 -03:00
David Capello
a489efdf03 Use ContextObserver to update the StatusBar
Instead of calling StatusBar::updateUsingEditor(Editor*), now the StatusBar
is a ContextObserver that observe changes in the active doc::Site. The
Editor notifies a ActiveSiteChange event when the active frame/layer
is changed.

Fix #657
2015-05-05 13:24:26 -03:00
David Capello
c3d7a96a87 Replace ContextObserver::onActiveDocumentChange() with onActiveSiteChange() 2015-05-05 12:58:50 -03:00
David Capello
14d369404e Use new filename_formatter() in tests (fix #658) 2015-05-05 12:04:20 -03:00
David Capello
53e25770b1 Status bar should not eat Enter key when it isn't focused (fix #660) 2015-05-05 09:47:05 -03:00
David Capello
a4db7ff0eb Ignore current ink mode for custom brushes 2015-05-04 19:18:12 -03:00
David Capello
88930a6d69 Replace PRINTF with TRACE in TwoPointsController 2015-05-04 19:04:11 -03:00
David Capello
01cffe202e Fix comment in app/tools/controller.h's include guard 2015-05-04 19:03:50 -03:00
David Capello
bdf28c01de Fix problem initializing oldX/Width fields for the docked tab
This fixes a problem creating interpolation between random
oldX/Width values and x/width fields. I've added some special values
in the initialization of a Tab to know if we are using uninitialized
values oldX/Width/x/width values in the animation.
2015-05-04 18:16:29 -03:00
David Capello
ae03dd5461 Don't use last selected document as active document if UI is enabled
Related to bug found in #656. In this way, if the UI is enabled,
the active document is != null only if there is an active view for it.

Anyway, in batch mode we can potentially have a lot of bugs. There are
several UI commands that think that active view != null (and
current_editor != null) when the active document != null.
2015-05-04 16:25:28 -03:00
David Capello
4f33bef43c Command::short_name() is id() now
(Fix compilation in Release mode.)
2015-05-04 16:08:15 -03:00
David Capello
5538c5a749 Update all tabs (main Tabs and from subpanels) when a document is modified 2015-05-04 15:52:00 -03:00
David Capello
53e572eaf5 Rename TabsDelegate::isModifiedTab() to isTabModified() 2015-05-04 15:33:05 -03:00
David Capello
f766763a92 Add CLA-signing step in CONTRIBUTING file 2015-05-04 15:18:15 -03:00
David Capello
116f0a760e Merge branch 'master' of git@github.com:aseprite/aseprite.git 2015-05-04 14:58:38 -03:00
David Capello
139e0cb8f5 Fix issues autocompleting the file name field in FileSelector
Now the file name field is an editable ComboBox, so we don't
autocomplete/modify the text inside the entry box.

With this commit we modified the editable ComboBox behavior too:
* When the ListBox is shown, the focus remain in the Entry field (now
  the ListBox cannot have the focus when the ComboBox is editable).
* When Up/down keys are received by the Entry, they are given to the
  ListBox to change the selected item. But the focus returns to the
  Entry anyway.
2015-05-04 14:58:24 -03:00
David Capello
ca3fade50d Don't call focusFirstChild() if the Window doesn't want the focus 2015-05-04 12:50:04 -03:00
David Capello
9528cae9db Merge pull request #656 from blackmiaool/fix_new_brush
Fix crash using NewBrush when Home tab is selected
2015-05-04 11:57:26 -03:00
David Capello
6f8603bcb1 Merge pull request #655 from blackmiaool/fix_palette
Show checkbox in Palette > Palette Editor
2015-05-04 11:47:40 -03:00
David Capello
8a2b1d46a1 Merge pull request #653 from blackmiaool/master
Select Home tab when it's not selected in HomeCommand
2015-05-04 11:47:24 -03:00
David Capello
fa8afc02e9 Create new layers above the current one
We've added a "top" parameter to have the previous behavior.
2015-05-04 11:45:08 -03:00
blackmiaool
00b45c3bd7 Fix crash using NewBrush when Home tab is selected 2015-05-04 22:38:15 +08:00
David Capello
883629b563 Fix bug triggering global keyboard shortcuts when a combobox popup is open
When a combobox popup is open, it creates a new non-foreground top window
(which is sibling of the window where the combobox widget is). When the
popup receives a key press, and it doesn't use it, the key is passed to
its parent (a ui::Manager), and then the latter has to process it.

Before this commit, CustomizedGuiManager::onProcessMessage() was
filtering shortcuts for foreground window, but it was working only
when the key was pressed in the foreground window itself (not when a
combination of foreground and background windows were open). Now the
filter is done in Manager::onProcessMessage() (which returns true,
i.e. key was used, for every pressed key when a foreground window
is found in its children hierarchy).
2015-05-04 11:25:42 -03:00
David Capello
ac8387a408 Move some ui::Combobox member functions to the header file 2015-05-04 10:41:05 -03:00
David Capello
c219e4dc07 Minor format change in ui/widget.cpp 2015-05-04 10:40:23 -03:00
blackmiaool
1d98f51197 Show checkbox in Palette > Palette Editor menu item when the Palette Editor is visible 2015-05-04 13:02:58 +08:00
blackmiaool
b2257752b3 Select Home tab when it's not selected in HomeCommand 2015-05-04 10:33:33 +08:00
David Capello
9bf11e0b40 Merge pull request #648 from blackmiaool/patch-2
Show checkbox in View > Timeline menu item when the Timeline is visible
2015-05-02 10:35:33 -03:00
blackmiaool
ffab635acd add override
add onChecked() function to Timeline command
2015-05-02 20:51:49 +08:00
blackmiaool
e646ee7047 add onChecked() function to Timeline command 2015-05-02 17:28:22 +08:00
David Capello
a49a36d7e1 Change Command::short_name() to id() (and from const char* to std::string) 2015-05-01 19:41:18 -03:00
David Capello
82bcc090c0 Stop animation with right-click 2015-04-30 19:54:30 -03:00
David Capello
b8a319ed6b Stop the animation when a command is executed and the Editor is in PlayState
This is to restore an old behavior were the animation was stopped pressing
other keys (e.g. arrow keys to move to another frame or layer).
2015-04-30 19:44:20 -03:00
David Capello
20120f432a Fix crash trying to move an empty cel with Move tool 2015-04-30 17:26:46 -03:00
David Capello
91bacca270 Fix bug introduced in a2cbf3f285: trim transparent layers correctly 2015-04-30 17:04:11 -03:00
David Capello
b519901cef Add support to specify tags in --filename-format option (related to #607)
Now we can use "{tag}" (or "{innertag}") and "{outertag}" in the filename
format.
2015-04-30 17:02:57 -03:00
David Capello
c81aa88fc7 Add --format option to specify JSON array format (fix #641) 2015-04-30 12:33:32 -03:00
David Capello
90dd876654 Merge branch 'agateau-build-fixes' 2015-04-30 12:30:52 -03:00
David Capello
35e951ec70 Merge branch 'build-fixes' of https://github.com/agateau/aseprite into agateau-build-fixes 2015-04-30 12:03:29 -03:00
David Capello
88a0e8c806 Merge branch 'brush' 2015-04-30 12:00:49 -03:00
David Capello
f1d522f548 Replace brush slots until the user presses the shortcut
We replace brush slots until the user presses its keyboard shortcut, which
means he is interested in reusing the brush. In this way, if we want to
keep a brush, we can press Ctrl+B, select the brush area, and then Alt+1
to keep the first brush, then the next brush slot will be used/replaced
until Alt+2 is pressed, etc.
2015-04-30 11:59:47 -03:00
David Capello
03faee9ce4 Add option to delete all brushes 2015-04-29 17:26:25 -03:00
David Capello
733d0a8e74 Minor fix in ButtonSet 2015-04-29 17:16:48 -03:00
David Capello
562df34f40 Show brushes in a ButtonSet with 3 columns 2015-04-29 17:16:43 -03:00
David Capello
f5b7fd84dc Connect to BrushPopup::BrushChange just one time 2015-04-29 16:34:21 -03:00
David Capello
2932add184 Fix BrushInkProcessing so we can use brushes between different pixel formats 2015-04-29 16:04:57 -03:00