Commit Graph

1940 Commits

Author SHA1 Message Date
David Capello
6b7625267d Remove layers button from StatusBar widget 2013-12-11 19:35:03 -03:00
David Capello
1f0d1be396 Rename app::SelectionSettings to app::UISelectionSettingsImpl
The class UISelectionSettingsImpl is the implementation
of ISelectionSettingsImpl so it doesn't need to be available from
ui_settings_impl.h. Also we can use anonymous namespaces to put classes
that are used only inside ui_settings_impl.cpp.
2013-12-11 19:19:27 -03:00
David Capello
b5ea9fd7e7 Merge branch 'timeline' into dev 2013-12-11 01:41:48 -03:00
David Capello
773333e264 Timeline: Add multiple frames selection 2013-12-11 01:40:31 -03:00
David Capello
4e917fc81c Add padding to text style 2013-12-11 01:35:40 -03:00
David Capello
4bd4aac429 Add styles to the Timeline widget
- Added support for styles to SkinTheme and skin.xml.
- Added app::skin::Style/Rule/BackgroundRule/IconRule/TextRule classes.
- Added app::skin::SkinPart class to refer to one part (BITMAP) of
  the skin sheet.
- Renamed app::skin::SkinPart to SkinParts as now SkinPart is a class.
2013-12-11 00:34:16 -03:00
David Capello
d6beafb8fd Merge pull request #9 from DocHoncho/ui-dev-squashed
Moved Transparent Color button to ContextBar, implemented SelectionSettings class
2013-12-10 11:35:50 -08:00
Joel Madigan
3ce805f63d Moved Transparent Color button to ContextBar
Implemented SelectionSettings class

Transparent Color button for moving pixels moved from status bar to
context bar.  Current Transparent Color stored by new SelectionSettings
class, retrievable from ISettings.

Also implemented Observer classes for existing Settings interfaces for
future use.

StatusBarObserver interface and supporting code removed from StatusBar.
2013-12-10 12:44:00 -05:00
David Capello
11335fd5f3 Improve the generation of css::Query instances (see Sheet::query() member function) 2013-12-09 23:07:48 -03:00
David Capello
20fb1317a3 Fix bug in Graphics::drawStringAlgorithm() painting invalid background color 2013-12-09 22:58:07 -03:00
David Capello
40fd251c39 Add support for vertical text alignment in Graphics::drawStringAlgorithm() 2013-12-09 22:57:43 -03:00
David Capello
4218dd852d Merge branch 'dev' into timeline 2013-12-08 20:39:01 -03:00
David Capello
f531f6d0d0 Simple implementation of issue #17 - Export animation to JSON/sprite sheet files
This is a good start point. From here we can add more formats and options
(XML, custom formats, templates, etc.), rotated sprites, trim, etc.)
2013-12-08 20:19:32 -03:00
David Capello
d77efb602e Add DocumentApi::undoEnabled()
Now we can disable the undo information in DocumentApi() passing
a NULL undoers collection on its ctor.
2013-12-08 20:07:02 -03:00
David Capello
e0a28c1d46 Minor refactor in skin properties
- Add get_skin_property(ui::Widget*) function to avoid duplicating code
  to create a SkinProperty.
- A SkinSliderProperty is not a SkinProperty: now it has its own name.
2013-12-05 01:19:46 -03:00
David Capello
8e81fb808d Add css library
This is a base library that will be used by SkinTheme to draw parts
with CSS styles (or something similar).
2013-12-03 19:31:36 -03:00
David Capello
61d5693727 Merge branch 'dev' of git@github.com:dacap/aseprite.git into dev 2013-12-01 22:09:11 -03:00
David Capello
2eb84124d0 Merge pull request #10 from DocHoncho/int-entry-fix
Tweaked IntEntry behavior - Fix problem selecting the whole text each time a key is pressed and the mouse is over the IntEntry widget
2013-12-01 17:08:02 -08:00
Joel Madigan
838382791e Tweaked IntEntry behavior
Changed behavior of IntEntry to stop it from continously selecting all
text as long as the mouse is over the input box.  It appears that
something continues to send kMouseEnterMessage messages while use is
typing, even if the mouse is still.  This caused the IntEntry select-all
multiple times and as the user typed would replace what they had already
written.

Also force value to be set within min >= value >= max when focus is lost.
This will get rid of bad values from the entry, such as 10q goes to 10,
40000 goes to 255, etc.
2013-11-30 18:36:22 -05:00
David Capello
3a2ef4644e Move Manager::getDefault() to .h so it can be inlined 2013-11-30 20:02:45 -03:00
David Capello
f3a9f97513 Fix new Unicode font, issue 294 (missing range of Cyrillic script) 2013-11-25 23:39:41 -03:00
David Capello
59c1c93f29 Add some German and Russian Unicode characters to font.png (to fix issue 294) 2013-11-25 20:32:43 -03:00
David Capello
8678e3b21b Mac OS X fix: ALLEGRO_HAVE_STDINT_H is already defined in alplatf.h 2013-11-25 10:44:20 -03:00
David Capello
06e0e5c8b3 Add missing inline modifier for ImageImpl<>::clear() specializations 2013-11-25 10:42:38 -03:00
David Capello
83ba85ff09 Fix get_app_path() impl for Linux and Mac OS X 2013-11-25 10:42:08 -03:00
David Capello
866c770d89 Add missing typenames in ImageImpl 2013-11-25 10:22:29 -03:00
David Capello
5a5536c389 Merge pull request #7 from DocHoncho/gcc-fixes
GCC fixes: explicit conversion of std::basic_string to const char*
2013-11-25 05:18:12 -08:00
Joel Madigan
dabcad1807 Add string::c_str() to several functions.
There were a number of places where a std::string was being used in a function calls that expected a c string.  These instances were trivally fixed by adding a call to string::c_str().

Note, I'm not sure if this is a GCC specific issue, however even if it is a case of MSVC simply letting these usages slide it can't hurt to be explicit.
2013-11-24 01:35:55 -05:00
David Capello
86dab97cac Fix for GCC in string.h 2013-11-23 19:01:28 -03:00
David Capello
033aad9d28 Fix Unicode characters encoding (we've to use utf-8) in Color::toHumanReadableString() and BrushAngleField() 2013-11-23 18:01:42 -03:00
David Capello
ad0b28bd63 Change Window() ctor to avoid ambiguity (DesktopWindow, WithoutTitleBar, or WithTitleBar)
In this way we know at the moment of the creation of the window if it
will need the close button.

Issue #280.
https://github.com/aseprite/aseprite/pull/6
2013-11-23 17:47:57 -03:00
David Capello
7dc8e548be Fix issue #280 - Close button doesn't appear in some windows
Thanks to @DocHoncho for the help.
See https://github.com/aseprite/aseprite/pull/6
2013-11-23 17:25:21 -03:00
David Capello
a1f3e290c2 Fix Timeline::updateUsingEditor() as it can be called with editor=NULL
In fact, now it's called with NULL when the program starts
(see commit 517d368f93).
2013-11-23 17:09:31 -03:00
David Capello
6f50385d5f Update CONTRIBUTING.md and INSTALL.md 2013-11-23 16:32:13 -03:00
David Capello
0090be560c Minor changes/fixes in CONTRIBUTING.md 2013-11-23 16:09:52 -03:00
David Capello
a8ea8ceccc Add CONTRIBUTING.md file 2013-11-23 16:01:49 -03:00
David Capello
a7716cfc62 Add option in INSTALL.md to copy data/ dir to ~/.aseprite on Linux 2013-11-23 16:01:34 -03:00
David Capello
88d8235e86 Merge branch 'dev' of git@github.com:dacap/aseprite.git into dev 2013-11-21 00:28:16 -03:00
David Capello
517d368f93 Merge pull request #5 from DocHoncho/fix-285
Fix for issue 285
2013-11-20 19:26:27 -08:00
David Capello
119d260ba2 Merge pull request #4 from DocHoncho/fix-284
Fix for issue 284
2013-11-20 19:20:42 -08:00
Joel Madigan
a13603a0aa Added call to UIContext::setActiveView(NULL) to force window title to have proper default value 2013-11-20 00:12:18 -05:00
Joel Madigan
422f1135d3 Fix for issue 284, assertion error was being triggered by passing an int to a function expecting type Item*. Looks like it was an oversight in commit b45dcf7 when the dialog was modified to use ui::ListItem 2013-11-19 23:32:11 -05:00
Joel Madigan
85503ec691 Fix for issue 279 2013-11-18 20:23:39 -03:00
David Capello
49cf2bdcf0 Fix issue #277, LoadPalette command can change the default palette 2013-11-15 17:01:28 -03:00
David Capello
ddf4a13490 Add the Palette menu with Load/Save commands 2013-11-15 16:56:50 -03:00
David Capello
f59f6f7d5e Fix bug creating bitmaps with width < 0 in draw_color() function 2013-11-15 15:46:54 -03:00
David Capello
055907d008 Remove thumbnails generation code
At the moment we'll keep the timeline simple (without thumbnails).
2013-11-10 23:11:59 -03:00
David Capello
d39feb063c Add SKIN_PART_NESW(name) macro in skin_parts.h 2013-11-10 23:06:00 -03:00
David Capello
5141079c5f Keep timeline in sync with current editor and after commands are executed 2013-11-10 22:59:25 -03:00
David Capello
28fe226236 Fix bug: Notify Context's observers in Context::onAdd/RemoveDocument 2013-11-10 20:36:15 -03:00