Commit Graph

2314 Commits

Author SHA1 Message Date
David Capello
a9721b63a8 Undefine major/minor macros if they are defined (as in clang) for base::Version 2014-08-13 00:31:56 -03:00
David Capello
1f900eda26 Fix compilation error detected by clang 2014-08-13 00:22:48 -03:00
David Capello
6db36fe30b Add ZoomCommand so zoom keys are configured in gui.xml file 2014-08-13 00:22:29 -03:00
David Capello
155b770acd Avoid crash by ASSERT()
I think this ASSERT crashes the program because they aren't called from
the main thread, but I'm not quite sure.
2014-08-12 08:22:43 -03:00
David Capello
414427e879 ExportSpriteSheet: setup text of columns/width/height when the other fields are modified 2014-08-12 08:12:16 -03:00
David Capello
400ab0c464 Fix a bug in ui::Manager putting the focus in non-visible widgets
We've to ask for isVisible() member function because it checks for
the visibility of the widget and its parents.
2014-08-12 08:10:02 -03:00
David Capello
f0fa34cf4a ExportSpriteSheet: fix getting the best fit size for long animations 2014-08-12 08:09:09 -03:00
David Capello
42399df2c8 When copy and paste layers between documents, expand the number of total frames of the destination sprite if it's needed 2014-08-12 07:57:40 -03:00
David Capello
dde7915c24 ExportSpriteSheet: Fix "Height" combobox to make it editable 2014-08-12 07:29:57 -03:00
David Capello
37ac1444bd Fix issue 374: Selection is distorted when it's moved and RotSprite is on
Don't use RotSprite until the angle or the size of the image is changed.
2014-08-12 07:19:58 -03:00
David Capello
ebca329112 Add support to compile with MSVC 64bits
It's not ready, the program crashes when it starts, but at least we can
compile for 64bits.
2014-08-12 07:01:21 -03:00
David Capello
70f4354f88 Fix initial sprite sheet type in Export Sprite Sheet dialog 2014-08-11 11:48:36 -03:00
David Capello
a2ba77fa1d Fix horizontal/vertical export sprite sheet 2014-08-11 11:48:07 -03:00
David Capello
df3c16b802 Add more options to export sprite sheet (e.g. best fit for texture) 2014-08-11 11:33:17 -03:00
David Capello
1f25579f5a Fix bug: avoid clicking window borders when a combobox is open 2014-08-11 08:10:42 -03:00
David Capello
c936a792ab Add export_sprite_sheet.xml widget 2014-08-11 07:27:10 -03:00
David Capello
a767eb187d Add layer_properties.xml widget 2014-08-11 06:57:22 -03:00
David Capello
d11900cdef Use generated widget app::gen::DuplicateSprite in DuplicateSpriteCommand 2014-08-11 06:55:51 -03:00
David Capello
7550db81ba Fix issue 446 crash calling replace color in a sprite with no layers
- Fix access to a NULL pointer in ReplaceColorFilterWrapper
- Fix typo in NoImageException
- Do not allow to remove all layers in RemoveLayerCommand
2014-08-11 06:54:14 -03:00
David Capello
1c324c9b14 Add experimental option to use native mouse cursors (and some renames of cursor names) 2014-08-10 19:51:14 -03:00
David Capello
f48440fe71 Use the generated app::gen::Options widget for OptionsCommand 2014-08-10 01:12:31 -03:00
David Capello
58a515c3ae Win32: If we receive a WM_NCMOUSEMOVE message, we can generate a Event::MouseLeave if needed 2014-08-10 00:48:18 -03:00
David Capello
8cf25c49a7 Win32: Fix bug where the mouse capture isn't released 2014-08-10 00:12:33 -03:00
David Capello
4d4958bf35 Move capture/release mouse function to she layer 2014-08-09 22:32:05 -03:00
David Capello
33706ce6ff Fix issue 408 saving the Import Sprite Sheet window position 2014-08-09 21:54:12 -03:00
David Capello
303595689f Use generated widget app::gen::NewSprite in NewFileCommand 2014-08-09 21:45:07 -03:00
David Capello
df0d39ed87 Timeline: draw clipboard range after the selection outline 2014-08-09 21:35:23 -03:00
David Capello
2c675bfc4f Fix crash in PreviewCommand
We cannot use the ui::Graphics internal surface directly when we use
raster::convert_image_to_surface() (it expects an Rgba surface).
2014-08-09 21:33:38 -03:00
David Capello
93c6967409 Show mini editor window again after PlayAnimationCommand 2014-08-09 18:37:23 -03:00
David Capello
a5d6af7d87 Fix issue 426: The user should not be able to change cel opacity in Indexed images 2014-08-09 18:04:53 -03:00
David Capello
ff493552aa Capture mouse in PreviewCommand 2014-08-09 17:31:22 -03:00
David Capello
1e84c63042 Use ui::Window to show the animation playback instead of a custom event loop 2014-08-09 17:14:56 -03:00
David Capello
d23fa2230b Implement option to generate one optimized palette for all frames when we save a .gif file 2014-08-09 12:51:11 -03:00
David Capello
8dff8a979d Copy the background layer as background when a document is duplicated 2014-08-09 12:45:04 -03:00
David Capello
7632e83046 Don't show selection handles in the MiniEditor 2014-08-09 12:24:04 -03:00
David Capello
3bbdb80461 Fix Image::getRowStrideSize() function (fixes crash reported in issue 443) 2014-08-09 12:10:48 -03:00
David Capello
7faf8a1bb7 Fix crash in ClearCommand removing empty cels 2014-08-09 11:25:40 -03:00
David Capello
a6933b2c7a Rename ui::jmouse_poll to ui::_internal_poll_mouse 2014-08-09 11:16:54 -03:00
David Capello
b1b4ed8b39 Don't block Menu::showPopup() with a customized event loop
We must call Menu::showPopup() in ui::kMouseUpMessage message.
2014-08-09 11:13:51 -03:00
David Capello
67f9354b3d Update about dialog 2014-08-09 11:05:13 -03:00
David Capello
bebc129a4d Remove rounded corners to minifont.png to make it more readable 2014-08-09 10:45:06 -03:00
David Capello
6ccd95e22d Use a desktop Window in PreviewCommand to avoid a special events loop 2014-08-09 10:37:51 -03:00
David Capello
dfaf097b88 Rename base/compiler_specific.h to base/override.h 2014-08-09 08:08:20 -03:00
David Capello
ae974b544b Include <stdexcept> in app/util/clipboard.cpp (needed for gcc) 2014-08-08 10:52:21 -03:00
David Capello
5b5a2cfd9f Add support to copy and paste layers between different documents 2014-08-08 10:33:45 -03:00
David Capello
1391afb694 Fix gcc compilation error 2014-08-08 01:00:22 -03:00
David Capello
626ec1d2ba Add MoveTaskCommand: now you can move the selection with Shift+arrow keys 2014-08-08 01:00:02 -03:00
David Capello
6d1602f278 Minor change in gui.xml 2014-08-07 20:26:02 -03:00
David Capello
9fd60f1119 Move Timeline logic to drag-and-drop ranges to app::DocumentRange/move_range/copy_range
This fixes issue 433.
2014-08-07 20:19:31 -03:00
David Capello
0f99c78174 Win32: Return HTCLIENT when the mouse is above scrollbars but inside the client area 2014-08-07 08:45:51 -03:00