Commit Graph

2979 Commits

Author SHA1 Message Date
David Capello
4376647fcd Use generated FrameProperties widget in FramePropertiesCommand 2015-02-19 20:29:48 -03:00
David Capello
c704d20534 Rename StartView -> HomeView 2015-02-19 20:28:47 -03:00
David Capello
f4e01345c6 Add close/modified icon to tabs 2015-02-19 13:13:25 -03:00
David Capello
adf3e6c00d Add AniDir as a FrameTag property (it's persisted in .ase files) 2015-02-19 13:05:39 -03:00
David Capello
9f8505f490 Add Remove Frame Tag command 2015-02-18 11:44:54 -03:00
David Capello
9e67942235 Persist FrameTags in .ase files 2015-02-17 18:05:34 -03:00
David Capello
13611eb23e White text in Start tab 2015-02-17 16:28:53 -03:00
David Capello
9e734b2e8c Add NewFrameTag command 2015-02-17 16:12:10 -03:00
David Capello
d438fa09ed Displace all FrameTags in Sprite::add/removeFrame() 2015-02-17 16:07:20 -03:00
David Capello
446030a8e1 Implement FrameTags::add/remove() member functions 2015-02-17 16:07:03 -03:00
David Capello
a921ca171b Fix FrameTags::List type 2015-02-17 16:06:49 -03:00
David Capello
9e51cdce9c Implement Sprite::frameTags() 2015-02-17 16:06:33 -03:00
David Capello
de3e46d879 Draw Tabs widget using styles.
* Add background-repeat style rule to specify how to repeat the
  background image
* Remove PART_TAB_* skin parts from skin_parts.h
2015-02-17 16:03:00 -03:00
David Capello
bcf3b47962 Add doc::write/read_frame_tag() 2015-02-17 13:18:24 -03:00
David Capello
51a03f27ab Add doc::read/write_string() 2015-02-17 13:16:33 -03:00
David Capello
9106f3ada6 Separate frame_tags.cpp/h into frame_tag and frame_tags files 2015-02-17 12:52:27 -03:00
David Capello
11386543c8 Add <dimensions> to skin.xml 2015-02-17 12:22:46 -03:00
David Capello
ebdc2700c1 Replace app::skin::get_style() with SkinTheme::Styles 2015-02-17 11:43:25 -03:00
David Capello
f4603b3be1 Add FrameTag(s) classes 2015-02-17 11:37:42 -03:00
David Capello
1805d56733 Generate list of skin styles in SkinFile::Styles subclass 2015-02-17 11:10:43 -03:00
David Capello
3da835899d Add information about color chunks in docs/ase.txt 2015-02-17 10:21:36 -03:00
David Capello
e85c63aa93 Merge branch '1.0'
Conflicts:
	src/app/ui/editor/editor.cpp
	src/app/ui/editor/moving_pixels_state.h
	src/app/ui/editor/pixels_movement.cpp
	src/app/ui/editor/pixels_movement.h
	src/app/ui/editor/standby_state.cpp
	src/app/ui/editor/tool_loop_impl.cpp
	src/app/util/expand_cel_canvas.cpp
	src/app/util/expand_cel_canvas.h
2015-02-15 18:12:03 -03:00
David Capello
86d8975e92 Fix bug showing invalid areas when drawing/scrolling with zoom > 100% 2015-02-15 17:39:14 -03:00
David Capello
02ad6b9b78 Fix several bugs dropping pixels in the invalid editor 2015-02-15 17:08:21 -03:00
David Capello
881667f01b Replaced app::skin::ThemeColor with app::gen::SkinTheme::Colors
Generate app::gen::SkinFile class from skin.xml to automate creation
of ID references.
2015-02-15 15:29:16 -03:00
David Capello
c473c99525 Simplify Tabs::m_list iterations 2015-02-15 11:45:23 -03:00
David Capello
5a5c0424e7 Show a StartView when the program starts 2015-02-15 11:42:35 -03:00
David Capello
1a74326536 Add possibility to reset grid document preferences to global preferences 2015-02-15 09:59:11 -03:00
David Capello
69ac11eea2 Remove IDocumentSettings and DocumentSettingsObserver
Document user options are completely replaced with DocumentPreferences.
2015-02-15 09:48:38 -03:00
David Capello
869b6606b2 New documents get the global grid settings 2015-02-14 23:41:10 -03:00
David Capello
b12a2b5193 Add scope combo for Grid options in Preferences dialog
With this we make it clear what settings we're modifying: the global ones
or the active document ones.
2015-02-14 23:31:11 -03:00
David Capello
8387c7ba3e Fix XML error in pref.xml 2015-02-14 23:20:59 -03:00
David Capello
2e90eb8d4c Load document and tool preferences (fix #596) 2015-02-14 23:20:45 -03:00
David Capello
14cd8576f4 Move "center on zoom" option from General to Editor tab 2015-02-14 22:45:45 -03:00
David Capello
8f61302f7d Keep last selected section in Preferences dialog 2015-02-14 22:43:21 -03:00
David Capello
f3974002d5 Fix int <-> double <-> float casts
It looks like allegro includes several implicit conversions between
float and double.
2015-02-14 22:37:56 -03:00
David Capello
35be72833b Don't redefine ASSERT/TRACE in allegro/debug.h 2015-02-14 22:09:07 -03:00
David Capello
7785199899 Fix platform specific flags
* Replace ALLEGRO_WINDOWS and WIN32 with _WIN32
* Replace ALLEGRO_MACOSX with __APPLE__
2015-02-12 12:46:56 -03:00
David Capello
2c6067f7e4 Update license of app/ module to GPLv2 2015-02-12 12:16:25 -03:00
David Capello
16da2512b4 Remove dependency with Allegro library in config.h file
* Created base::write24bits() function (and detect endianness with a
  special base/config.h.cmakein)
* Use _WIN32 instead of ALLEGRO_WINDOWS
* Use _DEBUG instead of DEBUGMODE
* Replaced AL_CONST with "const" in bmp_format.cpp
* Replace stricmp() with base::utf8_icmp()
2015-02-12 10:55:58 -03:00
David Capello
22f35ab249 Independent scroll/zoom in Preview window (part of issue #407) 2015-02-10 12:59:43 -03:00
David Capello
5f78fbe354 Rename MiniEditorWindow to PreviewEditorWindow 2015-02-10 09:38:07 -03:00
David Capello
d1d49c5038 Add TogglePreview command (rename "mini-editor" to "preview")
Renamed Preview to FullscreenPreview to avoid confusion.
As an extra "to do", we need to add command aliases, so Preview matches
FullscreenPreview (mainly to keep user defined keyboard shortcuts).
2015-02-10 09:07:04 -03:00
David Capello
52003da721 Merge branch 'feature/continuous-cels' 2015-02-09 11:42:01 -03:00
David Capello
b78883782d Merge branch 'master' of git@github.com:aseprite/aseprite.git 2015-02-09 11:41:52 -03:00
David Capello
3ebb708000 Add CelData to share image/position/opacity between linked cels
Changes:
- Merged app::cmd::ObjectIO into doc::SubObjectsIO
- Changed app::cmd::SetCelImage with app::cmd::SetCelData
- Added Cel::createCopy/Link() to avoid confunsion with Cel copy ctor
- Renamed Sprite::getImage() -> getImageRef()
- Added Sprite::getDataCelRef()
- Added doc::CelsRange helper to iterate cels
- Added Sprite::cels()/uniqueCels() member functions (removed
  Sprite::getCels())
- Added DocumentRange::convertToCels()
2015-02-09 11:40:43 -03:00
David Capello
a77300f96a Keep editor scroll when the timeline is hidden/shown
This is not complete yet, there is a little flicker.
2015-02-06 12:50:46 -03:00
David Capello
5010d01356 Add EditorView::editor() member function 2015-02-06 12:49:08 -03:00
David Capello
04e413ca23 FrameProperties: change label for a range of frames (to a more noticeable one) 2015-02-06 12:47:52 -03:00
David Capello
e975d1c710 Add Sprite::first/lastLayer() member functions 2015-02-04 08:19:02 -03:00