Commit Graph

3046 Commits

Author SHA1 Message Date
David Capello
8eb8122bc0 Add widgets to HomeView (icon, new file, open file, and list boxes)
* Add widgets/home_view.xml
* Add possibility to specify style="..." and border="..." in XML widgets
* Add SkinStyleProperty
* Remove Label::get/setTextColor() (replaced with styles)
* Add <image> widget in WidgetLoader
* Paint labels, link labels, and views with styles
2015-02-26 09:53:19 -03:00
David Capello
c396f271c8 Fix problem changing tabs with the mouse wheel 2015-02-25 09:00:19 -03:00
David Capello
7839a6761a Minor fix in Tabs::calculateHot() detecting the area to close a tab 2015-02-24 20:21:29 -03:00
David Capello
8c6f55cc41 Add support to reorder tabs (close #118) 2015-02-24 20:10:22 -03:00
David Capello
2d3b26da69 Merge pull request #600 from blackmiaool/patch-1
Update CONTRIBUTING.md
2015-02-23 18:29:50 -03:00
blackmiaool
6019ad5bf0 Update CONTRIBUTING.md
Fix spelling mistake
2015-02-23 23:15:08 +08:00
David Capello
c813241601 Merge branch '1.0' 2015-02-23 11:40:37 -03:00
David Capello
cc5f574db5 filename_formatter: Replace "{path}" with "." if the path is empty (fix #591) 2015-02-23 11:37:02 -03:00
David Capello
2d64c55661 Minor fixes in click on tabs behavior 2015-02-23 10:52:04 -03:00
David Capello
ff66ea025c Add support to close Home tab with middle mouse button or right-click popup menu 2015-02-22 21:18:53 -03:00
David Capello
926e714f74 Don't show close buttons for small tabs
Only the selected tab has a visible close button regardless of its size.
2015-02-22 13:06:22 -03:00
David Capello
8fa97cba32 Animate all tabs when a tab is added or removed
As now there is no scroll in Tabs widget, and the width of all tabs might
vary when a new one is added/removed (e.g. when there is not enough space),
we've to animated them all.

Removed ANI_SMOOTH_SCROLL_TICKS animation, now all animations are
controlled in the same way using a Tabs::Tab::oldX/oldWidth/x/width fields.
2015-02-21 20:06:35 -03:00
David Capello
2dac7f3869 Add Frame Tags Properties dialog/command 2015-02-20 11:42:59 -03:00
David Capello
b52bcd8c95 Fix close icon style after clicking tabs 2015-02-20 08:53:52 -03:00
David Capello
6064debe13 Add support to close any kind of WorkspaceView (HomeView and DevConsoleView)
* Add WorkspaceView::onCloseView() member function
* Now DevConsoleView is inside MainWindow (just like HomeView)
2015-02-19 22:14:06 -03:00
David Capello
e850c8dbb0 Add an icon to "Home" tab 2015-02-19 21:44:22 -03:00
David Capello
b2ccf7a017 Add copyright in gui.xml 2015-02-19 20:30:04 -03:00
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