Commit Graph

3663 Commits

Author SHA1 Message Date
David Capello
283f9984bf Add adjustments to third_party/CMakeLists.txt for the new gtest submodule 2015-05-29 11:26:56 -03:00
David Capello
fd445e01f9 Add third_party/gtest as a submodule 2015-05-29 11:08:47 -03:00
David Capello
f3cfa547d4 Remove third_party/gtest files 2015-05-29 11:07:33 -03:00
David Capello
5fb914ed68 Add missing m_nativeCursor variable inside she::SkiaDisplay 2015-05-29 10:22:07 -03:00
David Capello
144a4c3a46 Remove unused local variable 2015-05-29 10:10:24 -03:00
David Capello
2d61412c68 Fix several compiler problems with clang on Mac OS X 10.10 SDK 2015-05-29 10:10:07 -03:00
David Capello
8adbae888f Fix deleting UndoCommand instances from stack in undo_tests
This bug was introduced in e730b90958
to fix memory leaks in "app". Now a new UndoCommand::dispose() member
function was added to fix this problem.

Also std::function<> and std::tr1::function<> was removed from the test.
We're in the middle of a transition between OS X SDK 10.4 to 10.9/10
and this brings some problems.
2015-05-29 10:03:20 -03:00
David Capello
217a3c51c6 Fix invalid behavior when ImportSpriteSheet's "Import" button is pressed without a document 2015-05-28 20:19:35 -03:00
David Capello
1124c5caab Don't open a submenu again on mouse move if we clicked its parent to close it
Related to issue #647
2015-05-28 20:09:55 -03:00
David Capello
aea43e11c1 Improve alignment of submenu boxes 2015-05-28 19:35:28 -03:00
David Capello
4e1a429763 Remove bit field specifications from MenuBaseData 2015-05-28 19:23:42 -03:00
David Capello
20a3c36647 Close menu bar item's popup when the item is clicked a 2nd time (fix #647) 2015-05-28 19:22:44 -03:00
David Capello
9723d1b6ec Now the file type combobox in FileSelector acts like a filter (fix #643) 2015-05-28 18:59:12 -03:00
David Capello
ac9717b121 Minor style change to file_selector.xml 2015-05-28 17:06:01 -03:00
David Capello
e8ff3b8cda Minor style change to select_accelerator.xml <grid> element 2015-05-28 17:00:37 -03:00
David Capello
22c58887dd Save preferences immediately when we press "OK" button in OptionsCommand 2015-05-28 16:36:05 -03:00
David Capello
744fc67b28 Implement native open/save dialog on OS X (issue #321)
There were some problems detecting the release of Cmd+O keys after
opening a NSSavePanel. We fixed those problems calling
osx_keyboard_focused/modifiers(0) when we receive a windowDidResignKey
notification.
2015-05-28 16:29:01 -03:00
David Capello
7826e38382 Change she::FileDialog::show() argument from DisplayHandle to Display
This is because we could make use of Display member functions inside the
FileDialog::show() implementation.
2015-05-28 16:13:07 -03:00
David Capello
2a5c93e333 Move "do you want to overwrite this file?" question inside the FileSelector
Native file dialogs ask this same question too (also they check for
read-only attribute).
2015-05-28 16:11:06 -03:00
David Capello
71efdfdf76 Add an extra debug check in Editor::play/stop() functions
There are crashes in Editor::stop(). These asserts
were added just to see if we can catch them.
2015-05-28 11:13:15 -03:00
David Capello
f9eb87f6b1 Fix order of members initialisation in PaletteEntryEditor 2015-05-28 11:12:19 -03:00
David Capello
583eed4398 Remove unused variable in Option<T>::operator(T&) setter 2015-05-28 11:11:38 -03:00
David Capello
0fcb345f36 Avoid alarm/signals from curl (probably fix #679) 2015-05-28 09:12:26 -03:00
David Capello
4940b2bf3e Fix FSTREAM_PATH() for Unix-like systems 2015-05-27 20:03:43 -03:00
David Capello
a6dd7d8f6d Fix Render's onionskin base/step configuration 2015-05-27 17:47:46 -03:00
David Capello
3388eaffde Show onion skinning depending on the configured loop section (fix #555)
There is a new option (per document) to disable this behavior.
2015-05-27 17:42:41 -03:00
David Capello
625aa1ee55 Move onionskin options into render::OnionskinOptions class 2015-05-27 14:49:01 -03:00
David Capello
26b170e67f Merge branch 'skia' 2015-05-26 17:24:59 -03:00
David Capello
9dd8d0d120 Add an initial "she" implementation using a WGL context on Skia/Win port 2015-05-26 17:21:19 -03:00
David Capello
517e31c34b Move SkiaWindow to skia_window_win.cpp
Also, as the EventQueue should be shared between displays, it is
now created in SkiaSystem.
2015-05-22 15:52:02 -03:00
David Capello
2b50980cb0 Get keydown event when Alt key is pressed in Skia/Win port 2015-05-22 15:26:01 -03:00
David Capello
e2e33c009d Fix SkiaSurface::drawH/VLine() member functions 2015-05-22 14:08:46 -03:00
David Capello
7bcda88861 Fix redrawing of SkiaDisplay on Windows (now the cursor overlay is visible) 2015-05-22 14:06:54 -03:00
David Capello
5eea582365 Implement SkiaDisplay::setNativeMouseCursor() on Windows 2015-05-22 13:44:41 -03:00
David Capello
da3b3de6c1 Add she::LockedSurface::scrollTo() so we can specialize it in the Skia port 2015-05-22 13:26:09 -03:00
David Capello
237549b818 Implement SkiaDisplay::setMousePosition() 2015-05-22 12:14:45 -03:00
David Capello
73f4de1b5d Fix WM_MOUSEWHEEL/HSCROLL messages in she::Window for Skia
This fix was introduced in the Allegro side in 11929dfd60
2015-05-22 12:12:49 -03:00
David Capello
a2987b658b Remove WinEventQueue::m_stop flag 2015-05-22 12:04:24 -03:00
David Capello
41114580ae Move SkiaEventQueue to WinEventQueue
Added queueEvent() member function to EventQueue interface.
2015-05-22 11:56:07 -03:00
David Capello
02f8fd7920 Implement SkiaSurface::drawString/Char/ColoredRgbaSurface with a skColorFilter 2015-05-22 11:05:13 -03:00
David Capello
bb7d629471 Use SrcOver mode in SkiaSurface::drawRgbaSurface() 2015-05-22 11:02:46 -03:00
David Capello
3674399d0b Use SrcOver mode in SkiaSurface::fillRect() 2015-05-22 11:02:17 -03:00
David Capello
b44c4f8b7b Fix random pixels from memory in SkiaSurface::create/createRgba/applyScale() 2015-05-22 11:01:24 -03:00
David Capello
def9e7242a Remove commented line in skia_system.h 2015-05-22 10:56:40 -03:00
David Capello
6a8dfaddb5 Use ButtonSet instead of Buttons in ColorSelector 2015-05-21 18:24:31 -03:00
David Capello
1b5628fe42 Don't persist the active tool between sessions 2015-05-21 16:31:20 -03:00
David Capello
27485b7ff6 Fix problem selecting transparent color from the ColorBar with middle button
When we move the mouse with the middle mouse button, we must trigger
onPaletteViewIndexChange() delegate in any case (the middle button
doesn't change the m_currentEntry).
2015-05-21 16:25:41 -03:00
David Capello
2ff0f1e2a4 Remove app::tools::PreferencesGlue
Now we check the trace policy and intertwine in the same ToolLoopBase
class just before start drawing.
2015-05-21 16:14:26 -03:00
David Capello
49954ddd29 Create ToolLoopBase with common code between ToolLoopImpl and PreviewToolLoopImpl 2015-05-21 16:00:27 -03:00
David Capello
dd1c1dc40f Fix bug firing Option::AfterChange signal with previous value 2015-05-21 12:55:51 -03:00