4052 Commits

Author SHA1 Message Date
David Capello
59773e104e Update context bar when the pointer type changes
With this when we change between the stylus pen and eraser, the context
bar is updated with the correct brush settings for the tool.
2016-04-21 15:33:18 -03:00
David Capello
8e233878b6 Fix compilation error introduced in 119c87873f4660e4553aecc0d4ad2ae59e016fa5 2016-04-21 14:52:16 -03:00
David Capello
ac6d930d08 Missing PointerType in regular mouse movement events on OS X 2016-04-21 13:40:18 -03:00
David Capello
f447b457db Fix crash on OS X
This is strange because it didn’t happen before, I’m not sure if we
can call (or is “legal” to call) setURI() in this case.
2016-04-21 13:33:24 -03:00
David Capello
7c2786164d Remove unused variable 2016-04-21 13:31:24 -03:00
David Capello
56e663bca4 Merge branch 'eraser-support' 2016-04-21 13:22:23 -03:00
David Capello
9b05d2e8ef Add Wacom eraser support on OS X 2016-04-21 13:13:15 -03:00
David Capello
119c87873f Add she::PointerType::Cursor to identify puck like devices 2016-04-21 13:12:03 -03:00
David Capello
c5f7e9618b Use the real current tool preferences to draw and in the brush preview
The "real" current tool is the one in the editor returned by
getCurrentEditorTool() (which depends on quicktool modifiers
and right-click configuration).
2016-04-21 01:20:59 -03:00
David Capello
4198003446 Update context bar correctly when right-click changes the current tool
E.g. When right-click is configured with the Eraser tool, we must update
the context bar with the Eraser options in the context bar.
2016-04-21 00:57:06 -03:00
David Capello
7b4511a5df Unify she::InputDevice and ui::PointerType 2016-04-20 22:49:03 -03:00
David Capello
a58cbfbc1c Enable eraser support for Wacom tablets on Skia/Win back-end
Related to #610
2016-04-20 22:33:10 -03:00
David Capello
47708a6826 Include device in double-click event on Skia/Win 2016-04-20 22:30:45 -03:00
David Capello
955f86fc9e Add pressure and input device (mouse/stylus/eraser) info to mouse events
This is a first step to implement #610 and #710
2016-04-20 15:44:15 -03:00
David Capello
1c94dda072 Merge pen library into she library
This is the first step to add pen information to mouse events
(e.g. to known if a event came from the eraser or the regular tip).
2016-04-20 12:48:49 -03:00
David Capello
e723426214 Minor fix at pen_win.h
WTInfo is a macro defined as WTInfoW so anyway WTInfoW function was
being used.
2016-04-20 11:25:03 -03:00
David Capello
4be68ab5f0 Default folder for new files must be the latest used folder (fix #1068)
To behave in this way, the open/save dialog must receive a document
filename with an empty path.
2016-04-20 10:22:01 -03:00
David Capello
9cc8d43f0a Show color on status bar when mouse is over ColorTintShadeTone (and not captured) 2016-04-20 09:37:49 -03:00
David Capello
33003fb6f9 Show current grid tile in status bar when the grid is visible (fix #1075) 2016-04-19 15:51:34 -03:00
David Capello
fcca96d6a3 Add missing text in StatusBar::showColor() 2016-04-19 15:43:12 -03:00
David Capello
6661c0a32a Include RGB decimal values when we pick HSV colors (fix #1013) 2016-04-19 15:21:54 -03:00
David Capello
0993069e0b Add line length in status bar (fix #915) 2016-04-19 15:08:36 -03:00
David Capello
065188aea3 Include <cstring> needed in standby_state.cpp 2016-04-19 14:24:27 -03:00
David Capello
231b17615a Merge branch 'cmake-optima' of https://github.com/winterheart/aseprite into cmake-optima 2016-04-19 14:19:21 -03:00
David Capello
c9c4838641 Fix gfx::SizeT::createUnion() function 2016-04-19 14:09:18 -03:00
David Capello
75d545c976 Fix initial size indicator in status bar when we move pixels 2016-04-19 13:45:37 -03:00
David Capello
87ef48b50b Improve status bar with icons/automatically generated and re-used parts (fix #752) 2016-04-19 13:45:23 -03:00
Azamat H. Hackimov
b5f63d428c Refactoring CMake invocations
Using built-in function and modules for checking.
2016-04-19 20:56:04 +05:00
David Capello
af0267de03 Improve error reporting in gen utility when an invalid XML is used 2016-04-18 19:10:10 -03:00
David Capello
8de18946f8 Copy frame duration when we copy frames between two different sprites (fix #1023) 2016-04-18 16:53:07 -03:00
David Capello
fca32900bb Make base::string_to_lower/upper() use tolower/upper() for each Unicode char
It fixes issue #1065 because now UTF-8 strings are not destroyed by
these base::string_to_*() routines. This issue appears when we use
std::setlocale(), which was introduced in 27b55030e26e93c5e8d9e7e21206c8709d46ff22
2016-04-18 16:38:37 -03:00
David Capello
63243f7dba Minor change remove include base/string.h from app.h 2016-04-18 15:23:01 -03:00
David Capello
6c148c9bb6 Update version to 1.1.5-dev 2016-04-18 13:29:04 -03:00
David Capello
8775604e56 Make Aseprite a DPI-aware application (fix #1041) 2016-04-18 13:27:36 -03:00
Romain Giraud
ea06140be8 Fix error when decoding GPL file
Color without name are not added to the palette.
2016-04-13 17:26:57 +02:00
David Capello
b0f53324a7 Extra checks for an initialized SkiaDisplay for GPU support on OS X 2016-04-13 10:17:59 -03:00
David Capello
99d7eb5391 Fix crash using an non-fully initialized SkiaDisplay on SkiaWindow::Impl::paintGC() on OS X 2016-04-13 10:16:06 -03:00
David Capello
2636401c1c Remove gui.xml version check on release
This is sometimes useful on Debug builds, but it brings more problems
on Steam when we want to release a fix for a specific platform with
a modified version number.
2016-04-13 09:02:04 -03:00
David Capello
25a24a93d8 Avoid using an uninitialized m_surface pointer in SkiaDisplay
This should fix problems launching Aseprite on OS X (e.g. #1059).
2016-04-13 09:00:29 -03:00
David Capello
a76a1117f1 Fix crash using RotSprite with width/height == 0 (fix #1056) 2016-04-12 17:29:23 -03:00
David Capello
7c9ba13321 Add double-click support on Skia/OS X port (fix #1057) 2016-04-12 17:27:01 -03:00
David Capello
44fadbc275 Fix key modifiers on Alleg4/Windows back-end 2016-04-12 11:33:48 -03:00
David Capello
221e9bf4fc Add base::normalize_path() 2016-04-11 19:17:39 -03:00
David Capello
e4c46a761a Fix loading two times a file specified in the command line on OS X
To avoid receiving a she::DropFiles event (from application:openFiles:)
when we're loading files specified in the command line (i.e. when we are
showing the progress bar/processing "ui" layer events/CustomizedGuiManager
is listening for kDropFilesMessages) we call NSApp finishLauching after
we've processed the whole command line.
2016-04-11 19:15:42 -03:00
David Capello
63c723d327 Change OSXAppDelegate base type to avoid an opaque id type 2016-04-11 17:28:19 -03:00
David Capello
5ef931b7d4 Override application:openFiles: instead of application:openFile: 2016-04-11 17:27:34 -03:00
David Capello
49f11648b3 Fix opening files from Finder on the Skia/OS X port 2016-04-11 17:25:54 -03:00
David Capello
c900e4aa3c Don't call app_main() from OSXApp 2016-04-11 16:19:32 -03:00
David Capello
4acf12a478 Make Ctrl+Tab work on Skia/OS X port 2016-04-11 15:30:16 -03:00
David Capello
ed4b26b2c8 Add get_unicodechar_from_nsevent() to she/osx/view.mm 2016-04-11 15:30:16 -03:00