Commit Graph

1721 Commits

Author SHA1 Message Date
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
David Capello
544a63cc28 Add "play" button in MiniEditorWindow (UI only)
At this moment the button isn't functional because the current frame
position is stored in the sprite (instead of the Editor). In this case,
when the "play" button is pressed, the mini-editor should show other
frames instead of the current one (should play the whole animation).
2013-01-20 21:58:16 -03:00
David Capello
337af9715e Minor change in document_tab_popup labels 2013-01-20 18:41:38 -03:00
David Capello
ed90055bf7 Replace modules/editors.cpp with widgets::Workspace class
Now we have one editor for each Document we want to edit. Before we were
creating one editor and switching the document on it, but now we have
several Editors (one for each opened Document). This simplifies the
Document implementation, because it doesn't need to know temporal
Editor information (like "preferred editor settings").

- Removed all code from modules/editors.cpp (legacy from C code).
- Removed PreferredEditorSettings class and
  Document::getPreferredEditorSettings().
- Added Workspace/WorkspaceView classes.
- Added DocumentView (a DocumentObserver).
- Added MiniEditorWindow class.
- Removed SelectFileCommand & CloseEditorCommand.
- Added TabView interface instead of using a raw void* in
  Tabs/TabsDelegate classes.
- Modified editors_draw_sprite() calls to Document::notifySpritePixelsModified
  notifications.
- The "current_editor" global variable wasn't removed because it's
  used in several places yet, but it will be removed in the near future.
  (Also this variable now can be NULL when we don't have an opened
  document.)
2013-01-20 18:40:37 -03:00
David Capello
8cc854aef6 Add some TODO items 2013-01-20 17:09:45 -03:00
David Capello
1f7a8bde64 Include only existent files in RecentFiles list 2013-01-18 23:39:19 -03:00
David Capello
e0f6b2fed4 Fix warning in msvc11 (UINT32_MAX is already defined) 2013-01-16 21:59:05 -03:00
David Capello
3ae4889526 Remove deprecated messages 2013-01-16 21:54:47 -03:00
David Capello
95a0c6d0f4 Merge branch 'dev' of git@github.com:dacap/aseprite.git into dev
Conflicts:
	src/ui/popup_window.cpp
	src/ui/tooltips.cpp
	src/ui/tooltips.h
	src/ui/window.cpp
2013-01-13 22:45:25 -03:00
David Capello
eacd0c7642 Replace ui::jregion with gfx::Region class
This is an old TODO item, and it's the first step to finally
get rid of JRect and struct jrect.
2013-01-13 22:39:44 -03:00
David Capello
6332b1a6e5 Add gfx::Region class
This class will be used to replace JRegion in ui lib.
2013-01-13 21:49:17 -03:00
David Capello
c5cf588370 Rename some member_functions to memberFunctions 2013-01-11 12:43:25 -03:00
David Capello
c913192fcb Fix color_unittest compilation error 2013-01-07 13:20:30 -03:00
David Capello
2ddb0ea181 Replace UndoConfigProvider with UndoHistoryDelegate interface 2013-01-06 15:46:53 -03:00
David Capello
b1fa72b585 Remove SkinTheme::less_bevel() 2013-01-06 14:54:19 -03:00
David Capello
76c4fd8243 Move draw_progress_bar() to SkinTheme::drawProgressBar() 2013-01-06 14:52:57 -03:00
David Capello
370e9cdd08 Remove character_length() and render_character() functions 2013-01-06 14:49:42 -03:00
David Capello
7adf1d1a25 Remove bevel_box() and SkinTheme::draw_bevel_box() 2013-01-06 14:48:32 -03:00
David Capello
a517deee0d Add ui::Color and ThemeColor, move Color to app::Color
Now colors are customizable from skin.xml file.
2013-01-06 14:45:43 -03:00
Ilya Barygin
9ba5ef44ca Fix FTBFS with --as-needed linker option
Libraries must be placed after object files in command line.
More information: https://bugs.gentoo.org/show_bug.cgi?id=445814

Conflicts:

	src/CMakeLists.txt
2013-01-01 21:12:22 -03:00
David Capello
b381d3a7b3 Add IDocumentSettings to separate document related settings from ISettings
This is the first step to have settings per document. Currently
IDocumentSettings is implemented as a global instance so all documents
share the configuration (as it was already working). But in the future
a project will be able to provide an alternative implementation to save
the configuration of each document in the same project.
2012-11-18 10:21:06 -03:00
David Capello
b029faf832 Add work-in-progress sub-projects in TODO file 2012-10-30 21:09:04 -03:00
David Capello
7a062b61a8 Add support for VC++11 (2012) 2012-10-30 21:08:33 -03:00
David Capello
7595227166 Merge branch 'dev' of git@github.com:dacap/aseprite.git into dev 2012-09-26 18:35:12 -03:00