Commit Graph

1794 Commits

Author SHA1 Message Date
David Capello
fd6e4ccc21 Add support for transparent background color for ui::Slider to draw ui::IntEntry popup window without background 2013-04-03 21:17:12 -03:00
David Capello
eba1508473 Fix bug in import sprite sheet
The editor must be released before we destroy the document. (The document
destroys all its views now.)
2013-04-03 20:31:49 -03:00
David Capello
b45dcf7d0d Use ui::ListItem in ui::ComboBox widget 2013-04-03 20:31:02 -03:00
David Capello
1d76e0d545 When a widget is removed (through Widget::removeChild) we've to remove it from its ui::Manager
A widget without parent, cannot be part of the Manager (e.g. cannot be
the capture widget, or focused, or the widget with mouse).
2013-04-03 19:54:40 -03:00
David Capello
dcd8627406 Separate ui::ListBox::Item into ui::ListItem class 2013-04-02 21:34:30 -03:00
David Capello
b8c3d39c35 Add shading ink (for indexed images only) and color swatches (no UI yet) 2013-04-02 21:02:18 -03:00
David Capello
6cbe1fa5a0 Hide ink combobox for tools that doesn't make sense to change the ink
For example, eyedropper, selection, etc. are special tools that shouldn't
be allowed to change the ink (to avoid confusion).
2013-04-01 21:05:33 -03:00
David Capello
b879be9c6d Add InkType::kEraseInk 2013-04-01 20:55:29 -03:00
David Capello
b7d03ded07 Move tools/ink_type.h to settings/ 2013-04-01 20:52:20 -03:00
David Capello
add0d9bf06 Support InkType tool setting in ToolLoopImpl 2013-04-01 20:44:59 -03:00
David Capello
4f1dce5d54 Add InkType configuration for tools 2013-04-01 20:20:58 -03:00
David Capello
d259b5c394 Add experimental webserver API and home page
Added webserver::IRequest/IResponse/IDelegate interfaces.
2013-04-01 19:37:02 -03:00
David Capello
2364776c44 Add HTTP webserver feature (for testing only at the moment) 2013-03-31 00:36:00 -03:00
David Capello
ce6b186e1b Remove tool configuration from ConfigureTools command (it's in ContextBar now) 2013-03-30 21:46:35 -03:00
David Capello
db193a07a2 Add fields to modify spray options in ContextBar 2013-03-30 21:31:34 -03:00
David Capello
43f177df52 ContextBar::ToleranceField is from 0 to 255 (not 0 to 100) 2013-03-30 21:14:52 -03:00
David Capello
677c0588dc Show/hide fields in ContextBar when necessary 2013-03-30 21:12:09 -03:00
David Capello
1bf84bac41 Fix IntEntry's popup if it's beyond the screen border 2013-03-30 20:53:50 -03:00
David Capello
9076ee13ea Don't close IntEntry's popup in case of FOCUSLEAVE message 2013-03-30 20:50:43 -03:00
David Capello
cbb5809c10 Bigger hot region for IntEntry's popup window 2013-03-30 20:50:24 -03:00
David Capello
923dda083a Add popup to change the brush(pen) type in the ContextBar 2013-03-30 20:46:04 -03:00
David Capello
7c15aee0a5 Use new Entry suffixes in SpriteSizeCommand 2013-03-30 20:10:54 -03:00
David Capello
527c85e26e Replace image_free() with UniquePtrs 2013-03-30 19:53:52 -03:00
David Capello
bf745b1033 Add ContextBar in the MainWindow 2013-03-30 13:43:00 -03:00
David Capello
cb0cdb3197 Rename old _ji_* functions 2013-03-30 13:38:24 -03:00
David Capello
3171bd5ce7 Fix widgets borders using the "sunken_normal" SkinTheme part
Now the background color of the parent widget is used to draw the borders.
2013-03-30 13:27:38 -03:00
David Capello
a437a954f2 Sort #includes in ui/entry.cpp file 2013-03-30 13:11:49 -03:00
David Capello
4adc9f8489 Add ui::IntEntry widget 2013-03-30 13:11:35 -03:00
David Capello
fe6209ed52 Fix bug in ui::Entry::m_caret, after changing the widget's text we've to adjust the caret
This is to avoid "out of range" situations, where the caret is outdated
and doesn't correspond to the new widget's text length.
2013-03-30 00:35:25 -03:00
David Capello
1d6be62ae7 Fix ui::Entry::onEntryChange: must be a virtual member function 2013-03-29 23:40:12 -03:00
David Capello
f805a83527 Add entry_suffix color for skin theme 2013-03-29 16:27:08 -03:00
David Capello
c2664b6aac ADd Entry::set/getSuffix() property 2013-03-29 16:20:32 -03:00
David Capello
c5a0acf7c6 Add ComboBox::onChange() member function 2013-03-29 16:16:24 -03:00
David Capello
6c3523fbed Fix file_unittest.cpp 2013-03-29 11:01:11 -03:00
David Capello
ab89b590c6 Fix some typos in README.md 2013-03-27 23:16:20 -03:00
David Capello
a1ff62b33b Update README.md file 2013-03-27 23:13:43 -03:00
David Capello
a66d24d631 Fix compilation errors with G++ 2013-03-27 23:11:29 -03:00
David Capello
9f48723349 Remove unused local variables in load_tga_pf() 2013-03-27 23:10:59 -03:00
David Capello
860d28cd57 Implement Workspace::makeUnique() 2013-03-27 22:13:25 -03:00
David Capello
c328a1144e Use Widget::getFirstChild() in Workspace::destroyPart() 2013-03-27 21:45:53 -03:00
David Capello
462a80f246 Remove unused member Workspace::m_mainPart 2013-03-27 21:44:58 -03:00
David Capello
da946ed90c Add Widget::getFirstChild() member function 2013-03-27 21:44:21 -03:00
David Capello
1d56133e75 Add support to split workspace views
+ Added WorkspacePart class
+ Added WorkspaceView::cloneWorkspaceView()/onClonedFrom() methods.
2013-03-27 21:19:35 -03:00
David Capello
163af12313 Now mini editor's frame is synced with current editor's frame 2013-03-14 21:40:37 -03:00
David Capello
dbffd6c42a Update Aseprite name and copyright year in README file 2013-03-11 22:45:25 -03:00
David Capello
70259ac37e MiniEditorWindow already handle the playback button correctly 2013-03-11 22:27:13 -03:00
David Capello
02324f4cbb Refactor: move current frame/layer from Sprite class to Editor/DocumentView
This change is the first step to create a mini editor with the capability
to show the animation while we edit other frames. Also it will allow us
to have two or more editors of the same document in different frames.

- Added DocumentLocation: now the location in a document is a property
  of the current Context (Context::getActiveLocation()).
- Added ContextAccess/Reader/Writer classes.
- Added DocumentApi class: high-level API with the majority of methods
  in UndoTransaction class (that were not directly related to a undo
  transaction).
- Added AddFrame/RemoveFrame undoers to handle add/remove frame correctly:
  this fix issue #212.
- Removed SetCurrentLayer/Frame undoers.
2013-03-11 20:29:45 -03:00
David Capello
e06bd23b4e Fix bug where palette isn't correctly set when the DocumentView is changed 2013-02-20 19:54:00 -03:00
David Capello
f4d2b60948 Fix bug in tools with TracePolicyLast: the old_dirty_area was accumulated between different ToolLoopManager loops 2013-02-18 21:21:30 -03:00
David Capello
9b8e87da10 Update copyright year to 2013 2013-01-27 12:13:13 -03:00