Commit Graph

3059 Commits

Author SHA1 Message Date
David Capello
7c3547f147 Add --crop command line (close #620) 2015-04-01 15:00:32 -03:00
David Capello
20394ceec2 Fix flags to use Skia backend on OS X 2015-04-01 12:37:55 -03:00
David Capello
6e8705eeb3 Remove unused variables in tabs.cpp 2015-04-01 12:35:28 -03:00
David Capello
3d63e0e1b4 Move SharedPtr to base namespace 2015-04-01 12:35:18 -03:00
David Capello
27c7f31175 Replace std::shared_ptr/unique_ptr with SharedPtr/UniquePtr 2015-04-01 11:37:01 -03:00
David Capello
154a79be3c Workspace: Fix bug referencing to a dead panel 2015-04-01 11:35:52 -03:00
David Capello
9f994ad253 Merge branch 'master' of git@github.com:aseprite/aseprite.git 2015-04-01 10:44:33 -03:00
David Capello
9dd944fc76 Add "docked" style for WorkspaceTabs 2015-04-01 10:27:22 -03:00
David Capello
86afa3a568 Add support to dock tabs as other Workspace panels 2015-03-31 17:31:45 -03:00
David Capello
6d107734f8 Remove app::UIContext::countViewsOf() 2015-03-31 11:52:25 -03:00
David Capello
61ca2df6c0 Merge pull request #623 from msiedlarek/missing-cmath
Added missing cmath header include.
2015-03-30 15:29:09 -03:00
Mikołaj Siedlarek
6a3b8c71fd Added missing cmath header include. 2015-03-30 20:21:04 +02:00
David Capello
11abb11f9b Add animation to Workspace preview drop area 2015-03-27 19:42:18 -03:00
David Capello
43f992bf8d Don't call layout() for each mouse move to preview Workspace drop area 2015-03-27 18:45:36 -03:00
David Capello
47948ee888 Move app::Tabs animation related stuff to app::AnimatedWidget 2015-03-27 18:35:42 -03:00
David Capello
2cfef9e250 Add feedback to Workspace to drop tabs on it 2015-03-27 18:14:00 -03:00
David Capello
9e27930f95 Add int type to ui::WidgetType enum 2015-03-27 17:31:45 -03:00
David Capello
691c88c9d9 Merge branch 'master' of git@github.com:aseprite/aseprite.git 2015-03-27 17:29:31 -03:00
David Capello
94b91424f8 Add Workspace::m_tabsBar field 2015-03-27 17:26:04 -03:00
David Capello
70b0495fdb Fix bug showing marching ants from a hidden app::Editor
Widget::isVisible() must return false if the widget isn't
inside a ui::Manager
2015-03-26 10:49:12 -03:00
David Capello
620b206b23 Remove unused variable 2015-03-26 10:43:39 -03:00
David Capello
baa2f61c6b Use base::get_temp_path() to get the temporary path
Unix-like systems use TMPDIR environment variable instead
of TEMP to indicate the temporary directory.
2015-03-26 09:32:48 -03:00
David Capello
e4a2b4a1ba Catch exceptions loading bitmap fonts
As now loadBitmapFont() throws exception in case of error, we have to
catch the problem to avoid a crash/uncaught exception.
2015-03-26 09:31:32 -03:00
David Capello
995e09bb60 Fix how global she::System singleton is set
This is to avoid special cases were an exception is thrown,
the she::System is deleted, and (an invalid) g_instance is used to
log this last exception message.
2015-03-26 09:30:11 -03:00
David Capello
a37fd89404 Fix compilation problem in gfx::Rect with clang (related to #618 too) 2015-03-26 08:03:53 -03:00
David Capello
e1ef923ea5 Merge remote-tracking branch 'origin/master' 2015-03-26 07:33:07 -03:00
David Capello
3b8cc3b8ea Merge remote-tracking branch 'origin/master' 2015-03-26 07:31:10 -03:00
David Capello
6f925ef161 Implement SkiaDisplay::flip() 2015-03-25 17:27:56 -03:00
David Capello
6e76d50864 Render SkiaWindow with scale factor 2015-03-25 17:27:43 -03:00
David Capello
7129873cd1 Implement SkiaSurface::applyScale() 2015-03-25 17:26:32 -03:00
David Capello
e0c78e0f94 Implement SkiaSurface::blitTo 2015-03-25 17:26:16 -03:00
David Capello
e3565946b4 Fix compilation of gfx::Rect on gcc 4.8.2 (part of #618) 2015-03-25 16:41:14 -03:00
David Capello
d242458d52 Avoid warning calling unknown ~NativeDialogs on gcc 2015-03-25 16:39:21 -03:00
David Capello
3e44399e4b Remove unused local variables 2015-03-25 16:38:56 -03:00
David Capello
c0697dfcef Implement SkiaSystem::loadSurface() and SkiaSurface::drawSurface() 2015-03-25 15:45:37 -03:00
David Capello
d816b18277 Define necessary SK_ constants to compile/link with Skia 2015-03-25 15:44:13 -03:00
David Capello
7eefe4e3c6 Minor adjustment for alpha=0 in floating tab borders 2015-03-24 15:19:42 -03:00
David Capello
4f0591c8b6 Remove load_bitmap_font() from Skia port 2015-03-24 12:12:05 -03:00
David Capello
e506387dad Add floating tabs in Tabs widget 2015-03-24 11:52:19 -03:00
David Capello
bab5d0c7e5 Minor change in ui::OverlayManager 2015-03-24 11:40:53 -03:00
David Capello
fc48164f9d Make bitmap font rendering independent on Allegro FONT
* Change font.png/minifont.png to RGBA to simplify bitmap font reader
* Add she::LockedSurface::drawColoredRgbaSurface()
* Add CommonLockedSurface and CommonFont
* Remove she::System::defaultFont()
* Add she::System::loadBitmapFont()
2015-03-24 09:18:23 -03:00
David Capello
f71a377a4f Fix problem with the first drag-and-drop on Tabs widget 2015-03-23 16:37:50 -03:00
David Capello
d6ecdefe22 Destroy "remap" data in ColorBar when we change to another document
At the moment this "remap" data is temporal in ColorBar, but maybe it
should be inside app::Document.
2015-03-23 14:55:34 -03:00
David Capello
fd62a60472 Save ColorBar box size in preferences 2015-03-23 14:39:21 -03:00
David Capello
a1d2b5e0dc Change palette view's box size with Ctrl+mouse wheel 2015-03-23 13:28:16 -03:00
David Capello
b13601117f Add option to "remap" colors after a drag-and-drop (related to #563) 2015-03-23 12:57:59 -03:00
David Capello
d14e4e8896 Add support to drag-and-drop colors in ColorBar/PaletteView (fix #37) 2015-03-23 12:25:32 -03:00
David Capello
d41b08caa8 Add UI to drag and drop colors in PaletteView 2015-03-20 15:29:44 -03:00
David Capello
26970832ac PaletteView: highlight selection outline when the mouse is over it 2015-03-20 14:46:48 -03:00
David Capello
8f1ac5f488 Add PaletteView::getPaletteEntryBounds() to simplify paint/hit-test code 2015-03-20 08:44:39 -03:00