Commit Graph

1707 Commits

Author SHA1 Message Date
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
David Capello
ef4934bef2 Remove JM_REQSIZE message 2012-09-26 18:34:52 -03:00
David Capello
44b8822e38 Remove deprecated MessageSignal message 2012-09-26 17:55:41 -03:00
David Capello
4ea2c69dae Fix compilation error in the dummy implementation of SystemConsole. 2012-09-26 17:26:41 -03:00
David Capello
0496f38ed3 Fix a typo in all files distributed under BSD-like and Allegro licenses
Thanks to Tobias Hansen.
2012-09-23 23:24:43 -03:00
David Capello
b51530e45d Merge branch 'dev' of git@github.com:dacap/aseprite.git into dev 2012-09-15 12:16:10 -03:00
David Capello
1426851928 Do not include scripts folder in the tarball 2012-09-14 20:31:17 -03:00
David Capello
64c50c672f Do not include loadpng library in the tarball 2012-09-14 20:31:08 -03:00
David Capello
9308d290e2 Add System::createEventLoop() (not yet functional) 2012-09-13 20:13:50 -03:00
David Capello
f0d8703ad8 Add app::Project class to handle projects in the near future. 2012-09-13 19:57:37 -03:00
David Capello
da9e9fd062 Fix algofill.cpp and rotate.cpp files to refer to the correct license. 2012-09-13 19:12:40 -03:00
David Capello
6b4591c5fd Add shell mode to execute scripts interactively.
- Added Shell class.
- Added base::SystemConsole to adjust stdin/stdout on Windows platform.
2012-09-08 20:10:48 -03:00
David Capello
2acef11c55 Add missing FindV8.cmake to use find_package(V8) 2012-09-05 21:22:47 -03:00
David Capello
3c1ee303c6 Replace CheckArgs with app::AppOptions/base::ProgramOptions classes 2012-09-05 21:14:42 -03:00
David Capello
6051387211 Add value name to ProgramOptions::Option::requiresValue() member function
This value name is displayed in operator<<(ostream, ProgramOptions&)
when a option requires a value.
2012-09-05 21:12:04 -03:00