Commit Graph

3661 Commits

Author SHA1 Message Date
David Capello
2e5f051e7d Catch exceptions if GL context cannot be created on Skia/OSX 2015-10-14 13:32:15 -03:00
David Capello
11401e9899 Resize NSView with multiples of 4
With this we should avoid seeing scaled pixels on screen with (e.g.) 3
pixels instead of 2 when Screen Scaling = 200%.
2015-10-14 13:11:08 -03:00
David Capello
9e90061e37 Fix first native cursor hiding on Skia backend 2015-10-14 12:44:37 -03:00
David Capello
ee7df1f973 Impl SkiaWindow::setNativeMouseCursor() on Skia/OSX 2015-10-14 12:30:48 -03:00
David Capello
d7d0eeec7f Fix SkiaWindow::updateWindow() on Skia/OSX 2015-10-14 12:00:50 -03:00
David Capello
d5c5c2e1f9 Remove commented line 2015-10-14 12:00:03 -03:00
David Capello
f9d0254d91 Initialize windows with width/height/scale args on Skia port 2015-10-14 10:25:24 -03:00
David Capello
66c5e04a58 Impl OSXWindow::setMousePosition on Skia/OSX port 2015-10-14 09:29:14 -03:00
David Capello
2fe612fd00 Add precise trackpad support on Skia/OSX port 2015-10-14 09:27:20 -03:00
David Capello
47f493df78 Fix window resize on Skia/OSX 2015-10-13 18:49:56 -03:00
David Capello
0a1f492c24 Implement SkiaSurface::setDrawMode() 2015-10-13 18:44:31 -03:00
David Capello
b8f5a0236c Add she::is_key_pressed() impl on Skia/OSX port 2015-10-13 17:12:51 -03:00
David Capello
0508b6fd67 Avoid beeps on keyDown/Up on Skia/OSX port 2015-10-13 17:11:45 -03:00
David Capello
d4e37218e2 Show errors on stderr on Skia port 2015-10-13 17:11:23 -03:00
David Capello
07900c8e48 Enable line that doesn't crash anymore on newer version of Skia 2015-10-13 17:10:59 -03:00
David Capello
4379c6793e Minor changes to Skia/OSX #includes 2015-10-13 16:55:29 -03:00
David Capello
15f4a16294 Add support for right and middle click on Skia/OSX port 2015-10-13 16:02:18 -03:00
David Capello
f818dbc692 Add keyDown/keyUp events to Skia/OSX port 2015-10-13 15:50:25 -03:00
David Capello
9ef3e1e134 Add --list-tags and --list-layers options
Related to #807
2015-10-13 13:23:45 -03:00
David Capello
615e369cc4 Fix closing multiple tabs with middle-click without moving mouse (fix #826) 2015-10-13 12:13:13 -03:00
David Capello
8c97bb1ffa Fix loading gray color (fix #828) 2015-10-13 11:48:08 -03:00
David Capello
250de2257c Complete clock_value() impl for Skia/OSX port w/msecs precision 2015-10-10 13:02:32 -03:00
David Capello
1d69edcced Fix to_skia(gfx::Color) impl 2015-10-10 12:15:40 -03:00
David Capello
7a00a0bfca Add missing #if/endif SK_SUPPORT_GPU 2015-10-09 19:48:31 -03:00
David Capello
324953b2fc Minor rename in skia_window_win.cpp 2015-10-09 19:48:07 -03:00
David Capello
247a8a7174 Make progress in Skia/OSX port
It includes:
- Use ARC instead of GC (compiling with -fobjc-arc flag)
- Implement GLContextCGL::getStencilBits/getSampleCount functions
- Modify OSXEventQueue to avoid creating a thread for app_main()
- NativeDialogs class can be compiled in 10.4 (with GC) and 10.6 (with
ARC)
- Split she/osx/view.h into view.h and view.mm
- get_local_mouse_pos() takes care of the window scale
- Temporal she::clock_value() impl
- Working SkiaWindow with Quartz and some progress with OpenGL
2015-10-09 19:45:39 -03:00
David Capello
f38fd4eb5e Refactor Skia/OSX port
- Moved OSXWindowDelegate to she/osx/window_delegate.h
- Renamed CloseDelegate to OSXWindowImpl
- Added m_ prefix to OSXWindow fields
2015-10-07 17:56:30 -03:00
David Capello
7bde73e2a3 Minor change in skia_window_osx.mm 2015-10-07 17:46:37 -03:00
David Capello
416951f592 Avoid crash when Cmd+Q is pressed on Skia/OSX port 2015-10-07 17:46:04 -03:00
David Capello
8edb0c0a67 Move OSXView to its own file
This new OSXView contains some basic mouse event handlers to generate
some she events.
2015-10-07 16:10:52 -03:00
David Capello
0db4c1c664 Add m_ prefix to OSXWindowDelegate fields 2015-10-07 16:07:14 -03:00
David Capello
6e5271848c Fix crash on resize on Skia/OSX port
Keep NSWindowDelegate reference alive in OSXWindow
2015-10-07 10:43:53 -03:00
David Capello
e3f0688945 Change GPU acceleration setting before the display scale 2015-10-06 17:13:50 -03:00
David Capello
165c7ccca4 Try to initialize the display with GPU acceleration and then without it 2015-10-06 17:04:03 -03:00
David Capello
f98c4df79a Rename SKIA_OPENGL_LIBRARY variable in src/she/CMakeLists.txt 2015-10-06 16:39:56 -03:00
David Capello
066a8dffcc Replace SkGLContext with our own GLContext class 2015-10-06 16:37:01 -03:00
David Capello
9e44818cd8 Move window size fields to OSXWindow 2015-10-06 11:18:21 -03:00
David Capello
580c900fb2 Add SkiaWindow::handle() impl on Skia/OSX port 2015-10-06 11:12:41 -03:00
David Capello
7118251f83 Create NSWindow in main thread/queue on Skia/OSX port
We cannot create/handle UI controls outside the main thread.
2015-10-06 10:57:56 -03:00
David Capello
69bb8fef9b Add flag to improve linking times when we use the Skia port 2015-10-05 21:19:11 -03:00
David Capello
03c0367827 Add option to disable GPU acceleration 2015-10-05 21:18:42 -03:00
David Capello
7434dd053a Avoid beep when Alt+char is pressed on Skia/Win port 2015-10-05 21:16:27 -03:00
David Capello
2bc6a76fd5 Minor change in she/CMakeLists.txt
This was done in case we need to use #include <GLES2/gl.2> in the future,
as this header file is in angle2 repository.
2015-10-05 17:42:07 -03:00
David Capello
9a8b7cd741 Fix UI rendering on Skia/Win port w/GPU when screen scaling >= 200%
If screen scaling is not 1:1, we create a SkSurface using a off-screen
texture, everything is painted there and then a blit to the screen
framebuffer is done in SkiaWindow::paintImpl()
2015-10-05 17:40:55 -03:00
David Capello
cc8b8cf52e Fix SkiaSurface::blitTo() with GPU and without GPU acceleration 2015-10-02 17:14:52 -03:00
David Capello
bb826c681b Add SkiaSurface::clear() impl 2015-10-02 17:13:49 -03:00
David Capello
6d1348c721 Fix SkiaSurface::drawRect() bounds 2015-10-02 16:24:58 -03:00
David Capello
7a747fc144 Add missing "override" to SkiaSurface::setDrawMode() 2015-10-02 12:12:57 -03:00
David Capello
e732297cfb Update Skia port to latest Skia version 2015-10-02 12:12:37 -03:00
David Capello
e8fde930bd Fix EventQueue::instance() for Skia port 2015-10-02 12:08:38 -03:00
David Capello
5033713430 Fix window resize on Skia/Win port 2015-10-02 11:24:04 -03:00
David Capello
311e90c58f Fix WinWindow::updateWindow() when m_scale > 1 2015-10-02 11:08:08 -03:00
David Capello
5d9b7475e0 Add missing #include files 2015-10-02 10:54:15 -03:00
David Capello
be9e0255b6 Fix bug painting Timeline cels in some special cases 2015-10-01 11:52:32 -03:00
David Capello
e4a71b9065 Show she::DisplayCreationException message when she::System::createDisplay() fails 2015-10-01 10:54:47 -03:00
David Capello
f54ba2c59d Fix Skia port to new SkiaDisplay::flip() impl 2015-09-30 19:58:30 -03:00
David Capello
4fbbd75599 Move Skia libraries as she library dependencies 2015-09-30 19:58:04 -03:00
David Capello
6210e0d85c Change she::Capabilities to a enum class 2015-09-30 16:45:04 -03:00
David Capello
460d4b47c9 Add missing "override" modifier on some member functions
These ones were detected by clang-700.0.72
2015-09-30 16:34:43 -03:00
David Capello
e2c0e0a435 Use "alpha" local variable 2015-09-30 16:31:23 -03:00
David Capello
4141adcd23 Avoid warning on Release build in cmd::SetPalette() ctor 2015-09-30 16:30:19 -03:00
David Capello
9c33f46859 Fix GifEncoder for indexed sprites which contain layers w/opacity < 255 2015-09-30 12:53:56 -03:00
David Capello
1c1a55b2d3 Don't reset mask color from doc::Image in Sprite Size and Rotate Sprite commands (fix #820) 2015-09-30 09:20:55 -03:00
David Capello
30b257a8f5 Fix Eraser tool to handle opacity values correctly 2015-09-30 08:59:59 -03:00
David Capello
3d4fdb62b4 Pass opacity value to Eraser, Blur, and Jumble tools 2015-09-30 08:59:32 -03:00
David Capello
1cb8a46e1c Rename PaintInk::Merge to PaintInk::Simple 2015-09-30 08:59:01 -03:00
David Capello
a824fcb5e1 Fix crash on Windows if gfx_directx_acknowledge_resize() fails 2015-09-29 13:58:12 -03:00
David Capello
24133498b0 Don't change WebP format options for each image loaded from a sequence 2015-09-29 12:07:45 -03:00
David Capello
a5bdf461f4 Use RAII helper to avoid calling WebPPictureFree for each return in WebPFormat::onSave() 2015-09-29 12:06:33 -03:00
David Capello
92c2596604 Remove filename from specific webp_format.cpp error messages
The filename is shown by the general encoder/decoder code.
2015-09-29 12:00:31 -03:00
David Capello
c30112ea10 Convert FileOp into a class 2015-09-29 11:27:00 -03:00
David Capello
ee0aae0e3c Replace SEQUENCE_IMAGE() macro with add_image() lambda in fop_operate() 2015-09-28 18:49:34 -03:00
David Capello
79cd0b258f Fix continuous change of Timeline scroll in playback when viewport is too small 2015-09-28 12:34:29 -03:00
David Capello
6550093f1f Minor change in Timeline::showCel() 2015-09-28 12:09:34 -03:00
David Capello
423bf990f9 Fix --border-padding option (fix #815) 2015-09-28 11:46:57 -03:00
David Capello
4ebefd3f13 Fix problem getting pixels in non-32bpp Allegro BITMAPs
Regression introduced in 5e3ba8237a
This changed was needed to load certain .png fonts correctly in the
SkinTheme.
2015-09-25 08:32:50 -03:00
David Capello
d5fea43972 Set as mask color the bg index specified in the GIF file 2015-09-24 23:51:58 -03:00
David Capello
732f527eb1 Remove invalid checks to avoid recalculating the new palette for each frame in GifDecoder 2015-09-24 23:51:31 -03:00
David Capello
dd87c2ef17 Add minor check (bg index != local mask) to avoid checking the whole image 2015-09-24 23:50:44 -03:00
David Capello
43881af1f2 Add comments and DLOG() calls in gif_format.cpp 2015-09-24 23:49:01 -03:00
David Capello
5a339f7f55 Put the local colormap entry in the palette if we need to remap m_bgIndex 2015-09-24 23:47:33 -03:00
David Capello
8db6693136 Add colormap2rgba() helper function in gif_format.cpp 2015-09-24 23:45:10 -03:00
David Capello
e47fa9f045 We don't need to give a RgbMap to convert from RGB -> Indexed 2015-09-24 23:42:51 -03:00
David Capello
3c219571b1 Don't change mask-index entry if it's out of the bound in PaletteOptimizer::calculate() 2015-09-24 23:39:36 -03:00
David Capello
1bb0bca361 doc and gfx libraries depends on fixmath (fix #817) 2015-09-24 10:02:52 -03:00
David Capello
0e07a01a9b Add a color picker in the Insert Text dialog 2015-09-23 17:45:07 -03:00
David Capello
1ac39ff85b Add simple "Edit > Insert Text" menu option (related to #28) 2015-09-23 17:38:45 -03:00
David Capello
ce96a77aae Add required flags to link the application with freetype2 library 2015-09-22 19:27:44 -03:00
David Capello
e15b9aca21 Remove some #includes directives 2015-09-22 17:32:42 -03:00
David Capello
d55017cd17 Use advanced_mode.xml.h in cmd_advanced_mode.cpp 2015-09-22 17:27:47 -03:00
David Capello
52d091810b Use the generated goto_frame.xml.h file in cmd_goto_frame.cpp 2015-09-22 17:25:48 -03:00
David Capello
63aac49f81 Fix #include in webp_format.cpp with new generated files for widgets 2015-09-22 17:08:07 -03:00
David Capello
4a94799d47 Use generated "sprite_size.xml.h" file in "cmd_sprite_size.cpp" 2015-09-22 17:01:36 -03:00
David Capello
e7e9f1d482 Change name of generated files from "generated_file.h" to "file.xml.h" 2015-09-22 16:33:49 -03:00
David Capello
a06e01ff7e Rename ui::Entry::EntryChange to ui::Entry::Change 2015-09-22 16:22:47 -03:00
David Capello
3dfd6de4f0 Fix saving/loading .gif files w/completely opaque images but with local transparent index
There are .gif files that specified a local transparent index
but the frame pixels don't use that index (i.e. the frame is completely
opaque anyway). The same happens when we use a transparent layer but the
transparent color is not used (i.e. the layer is completely opaque anyway).
With this patch we fix loading/saving correctly this kind of files/sprites.

Fix #800
2015-09-22 14:39:47 -03:00
David Capello
bab13c4739 Enable some debugging messages in gif decoder/encoder 2015-09-22 11:42:50 -03:00
David Capello
9d8f859438 Fix minor formatting issues introduced in #812 2015-09-21 17:49:12 -03:00
David Capello
6a0f4afab2 Merge pull request #812 from Fojar/issue#806
Flattening transparent layers shouldn't create a background layer (fix #806)
2015-09-21 17:45:23 -03:00
David Capello
795c4d5a87 Use ctest to run tests 2015-09-21 16:45:25 -03:00
David Capello
d70dc87253 Do not create a she::System to run UI tests 2015-09-21 16:44:55 -03:00
Aravin
3eb01db8e1 Flatten layers command no longer converts result to background when it shouldn't. (fix #806) 2015-09-21 13:19:39 -04:00
David Capello
47530bdbe6 Add color_slider_height dimension in skin.xml 2015-09-21 11:53:39 -03:00
David Capello
5e3ba8237a Fix from_allegro() auxiliary function to get correct alpha values 2015-09-18 18:17:33 -03:00
David Capello
629bea41a8 Fix scroll in Preview window (fix #811)
Regression bug introduced in 9772f99303
2015-09-18 16:35:29 -03:00
David Capello
09e18ddf2b Fix loading of non-default themes with missing parts 2015-09-18 13:05:52 -03:00
David Capello
fedbe66980 Remove alert dialog used for debugging purposes only 2015-09-18 12:43:02 -03:00
David Capello
c37c790b47 Add "Open Folder" button in Preferences > Theme section 2015-09-18 12:39:46 -03:00
David Capello
83fe139600 Fix base::open_folder() in case paths are specified with non-standard slashes 2015-09-18 12:39:23 -03:00
David Capello
df629db6c6 Add "Theme" section in Preferences 2015-09-18 12:23:02 -03:00
David Capello
3abea9c4b3 Use Preferences class to store the active theme 2015-09-18 11:56:45 -03:00
David Capello
2679a7cb25 Update flic library 2015-09-17 17:32:06 -03:00
David Capello
eae6f7b5c1 Remove unused variables in ColorWheel::pickColor() 2015-09-17 17:31:58 -03:00
David Capello
3705d1bdb9 Fix initialization order of PaintInk members 2015-09-17 17:31:45 -03:00
David Capello
9e561148fc Minor changes in Timeline::showCel()
Removed some local variables.
2015-09-17 16:40:49 -03:00
David Capello
581fbb6632 Fix some scrolling issues in Timeline when clicking in a new cel 2015-09-17 16:39:55 -03:00
David Capello
43b3df52b9 Fix minor issues drawing transparent scrollbars in Timeline 2015-09-17 16:06:56 -03:00
David Capello
9772f99303 Add scroll bars to Timeline widget (fix #732)
Changes:
- Added ui::ScrollableViewDelegate so ui::ScrollBar can be child of
  a non-ui::View widget.
- Added a generic ui::setup_scrollbars() utility to locate
  horizontal/vertical scrollbars depending on the scrollable area and
  the available viewport area.
- Replaced Timeline::m_scroll_x/y ints with m_hbar/m_vbar widgets.
- Added transparent scrollbar look & feel.
- Added a "hover" state to mini-scrollbars used in sprite editors.
2015-09-17 15:19:47 -03:00
David Capello
4ff5f79035 Merge branch 'master' 2015-09-17 10:37:21 -03:00
David Capello
1b79bd75b9 Avoid drawing straight lines with Shift key + Magic Wand tool 2015-09-16 12:24:25 -03:00
David Capello
8aefa24a5b Add key modifier to draw straight lines from the last point (fix #562)
- Removed ToolLoop::screenToSprite(), now ToolLoopManager::Pointer has
  sprite coordinates (instead of screen coordinates)
2015-09-16 12:19:10 -03:00
David Capello
dc6161a66a Add mini_scrollbar_size dimension in skin.xml 2015-09-16 11:10:30 -03:00
David Capello
182a094f2b Add some checks to Menu::closeAll() to avoid accessing null pointers
These are not reproducible situations, but we've received a crash
report that indicates that these pointers can be null if some
unknown scenario.
2015-09-16 10:52:02 -03:00
David Capello
c674c474f6 Fix strange scenarios/crashes using NewBrushCommand on multiple editors
We cannot use current_editor in SelectBoxDelegate implementations.
For example: NewBrushCommand cannot use the current_editor in
NewBrushCommand::onQuickboxEnd() because multiple editors can be in
SelectBoxState, and it looks like we can select the brush box in
a non-current editor if it's the first click to set that editor
as the current one.
2015-09-15 12:09:50 -03:00
David Capello
a2e33ffbca Use iterators to improve Timeline drawing performance
With this change we avoid calling several times LayerImage::cel() to draw
each cel.
2015-09-15 10:57:43 -03:00
David Capello
a9c3f82c11 Use a binary search to find cels in LayerImage 2015-09-15 08:18:52 -03:00
David Capello
510a686020 Change CelList and LayerList from std::list to std::vector
This change gives us an huge performance improvement to paint the
Timeline widget.
2015-09-14 17:37:21 -03:00
David Capello
11c70ab522 Add required #include <list> in document_exporter.cpp 2015-09-14 17:07:28 -03:00
David Capello
ace74fe391 Copy dragged image correctly when the transparent color isn't mask (fix #808) 2015-09-14 13:03:01 -03:00
David Capello
77e16cecd0 Use a UniquePtr<> to store the new image in new_image_from_mask() 2015-09-14 12:54:00 -03:00
David Capello
ab53f3f4d7 Update text entries when Abs/Rel mode is changed in Palette Editor (fix #809) 2015-09-14 08:53:31 -03:00
David Capello
74e642d997 Add extra KeyContexts for each selection transformation 2015-09-11 20:04:02 -03:00
David Capello
adce0b9569 Fix invalid key[] access in _handle_key_press()
On Windows, if we pressed numpad dot key, all timers start working
incorrectly (e.g. animations couldn't be reproduced anymore.).
There was one report about this same issue on Mac OS X.
2015-09-11 15:12:21 -03:00
David Capello
83aa99a8e2 Fix crash using SpriteSizeCommand on batch mode 2015-09-10 16:44:33 -03:00
David Capello
3d700ab94c New FLI/FLC encoder/decoder (fix #7) 2015-09-10 16:10:31 -03:00
David Capello
2a0f8ca536 Disable webp support by default (related to #799)
There is a new WITH_WEBP_SUPPORT cmake option to enable webp support.
2015-09-07 14:45:31 -03:00
David Capello
6bfae49eb0 Merge branch 'webp-support' 2015-09-02 11:11:45 -03:00
Gabriel Rauter
c2a58dd46f fix type conversion warn. & remove problem preset
fix type conversions by putting WebPOptions Class in a seperate file like
GifOptions and use Getter and Setter for better handling. In cases
needed explicit casting was used to supress those warings.

Additionaly the LAST WebPHint Option was removed as it does not work for
this situation.
2015-09-02 14:52:07 +02:00
Gabriel Rauter
7a3aa6d0c4 replace auto keyword with corresponding types 2015-09-02 13:34:40 +02:00
Gabriel Rauter
5f3dfd125c use functions for int status code error message conversion instead of maps 2015-09-02 04:10:53 +02:00
Gabriel Rauter
76f0f82b95 use base::convert_to for string to in conversion instead of own funtions 2015-09-02 03:55:26 +02:00
Gabriel Rauter
c9d9af7c6f use std::vector as buffer for input file 2015-09-02 03:51:35 +02:00
Gabriel Rauter
085ffcdcb2 use auto-generated widget for webp options dialog and save options 2015-09-02 01:26:34 +02:00
Gabriel Rauter
467fcbc0ce fix compatibility with last stable libWebP release = 0.4.3 2015-09-01 23:39:35 +02:00
Gabriel Rauter
5ae9b9a6ef correct copyright line 2015-09-01 23:11:50 +02:00
David Capello
f691b91310 Fix split_filename_tests 2015-09-01 13:05:41 -03:00
David Capello
e8abba1b93 Refactor some UI code
- Moved ui::GuiSystem from ui/base.h to ui/system.h as ui::UISystem
- Moved some internals to ui::details namespace
- Fix crash of UI tests when ~Manager is called
- Removed ui::init/exit_system() functions
2015-09-01 10:18:47 -03:00
Gabriel Rauter
497fc3ed3a implement simple non animation webp for #273
This includes lossless and lossy webp file format. For this reason a
save option dialog was added giving rudimentary options for saving to
the user.
2015-09-01 13:05:24 +02:00
David Capello
20832dee93 Update version to 1.1.1-dev 2015-08-31 13:27:40 -03:00
David Capello
d6684691bf Rename PRINTF to LOG 2015-08-28 20:48:49 -03:00
David Capello
7fb7b85b13 Minor adjustments to ButtonSet style 2015-08-28 15:48:19 -03:00
David Capello
984059e1bc Avoid selecting all RGBA+Index buttons in FilterTargetButtons 2015-08-28 15:41:02 -03:00
David Capello
465a0c1d14 Don't reset TARGET_ALL_FRAMES/LAYERS flags in FilterTargetButtons::setTarget() 2015-08-28 15:34:47 -03:00
David Capello
9231e9bd51 Add tooltips to FilterTargetButtons (fix #786) 2015-08-28 15:33:53 -03:00
David Capello
110aa74dae Add required #include "ui/timer.h" in ui/tooltips.h 2015-08-28 14:45:56 -03:00
David Capello
5c371285ab Improve FilterTargetButtons UI style using a ButtonSet
Related to #786
2015-08-28 14:37:00 -03:00
David Capello
db4817e3ef Add an extra grid test with four columns 2015-08-28 13:11:00 -03:00
David Capello
530edb4ae3 Add Widget() constructor to create default widgets 2015-08-28 13:10:42 -03:00
David Capello
d994d67a2a Fix crash using Shading mode with sprites with different palette sizes 2015-08-28 12:22:32 -03:00
David Capello
6c9733ca38 Use a FileHandle in Engine::evalFile() 2015-08-27 13:39:50 -03:00
David Capello
55a618a79a Fix scripting::Engine members initialization order 2015-08-27 13:39:38 -03:00
David Capello
f8f1aba806 Merge branch 'scripting' 2015-08-27 12:41:37 -03:00
David Capello
890931f270 Add RunScript command with Edit > Scripts menu 2015-08-27 12:40:20 -03:00
David Capello
ab893eec6e Improve "Color Curve" dialog to be used only with the mouse (fix #278) 2015-08-27 12:27:23 -03:00
David Capello
ffdf8ad568 Add activeSprite global 2015-08-27 11:58:50 -03:00
David Capello
8c961d58ef Use canonical path in recent file/path list (fix #654) 2015-08-27 11:12:30 -03:00
David Capello
eff31223ab Add support to open image sequences when files are specified in the command line (fix #785) 2015-08-27 09:34:14 -03:00
David Capello
9201239eb3 Fix detection of image sequence with some special cases/UTF-8 strings (fix #784) 2015-08-27 09:10:46 -03:00
David Capello
6dfbb05d58 Split bindings into several files 2015-08-27 08:19:09 -03:00
David Capello
62f90a1a76 Fix wording in empty ContextBar::InkShadesField widget 2015-08-27 08:10:09 -03:00
David Capello
2949ff0a7c Improve UI to drag-and-drop colors and the resize handle (related to #772) 2015-08-27 08:09:13 -03:00
David Capello
f3ac563e33 Add shading ink (fix #85) 2015-08-26 16:48:01 -03:00
David Capello
089bf6f81f Add basic scripting API to create Sprites and access pixels 2015-08-26 11:30:33 -03:00
David Capello
a79c9479b7 Replace dynamic_cast with static_cast in Widget::getRoot() 2015-08-25 14:40:53 -03:00
David Capello
19951c6dd5 New Keyboard Shortcuts dialog layout (fix #777) 2015-08-25 13:59:15 -03:00
David Capello
746f41ff5b Rename ui::ListBox::ChangeSelectedItem to ui::ListBox::Change 2015-08-25 13:56:21 -03:00
David Capello
0645a66521 Fix pressing multiple KeyAction modifiers at the same time (fix #778) 2015-08-25 13:29:19 -03:00
David Capello
ffba179712 Avoid an extra palette entry for the mask color in PaletteOptimizer::calculate() (fix #771) 2015-08-24 19:05:36 -03:00
David Capello
2bb926742f See symlinks to folder as folders (fix #524) 2015-08-24 16:55:05 -03:00
David Capello
46309fe68d Focus Entry field when a Combobox receives the focus for first time
This is a partial revert of a0c2237839 patch.
2015-08-24 16:45:35 -03:00
David Capello
434059d517 Don't access to the first item in DirectDraw surfaces list outside the gfx critical region
This could be a fix for a long-standing crash in
gfx_directx_restore_surface() accesing to an invalid
memory address.
2015-08-24 12:48:27 -03:00
David Capello
04f07af173 Fix problem leaving dirty areas in the screen when we move a window 2015-08-24 11:56:40 -03:00
David Capello
a0c2237839 Fix hanging when switching focus between different editable comboboxes
This bug was fixed before with d1799c037a but
then returned with 549404c216
2015-08-24 11:37:35 -03:00
David Capello
549404c216 Fix tooltips visibility (fix #770)
TooltipManager uses filters to intercept a kMouseEnterMessage, if we
remove this kind of message for the TooltipManager itself (in sendMessage),
we never get that message so we never show the tooltip.

This problem was introduced in d1799c037a
to fix a problem with comboboxes.
2015-08-24 11:33:02 -03:00
David Capello
de3d4c3662 Improve performance flipping the dirty region only 2015-08-24 10:14:25 -03:00
David Capello
8cc3cf3eb8 Avoid assert() fail in configureAsBackground() call from NewSpriteFromSelectionCommand::onExecute() 2015-08-21 15:32:32 -03:00
David Capello
214f886a0e Fix bug showing invalid layer name in Layer Props dialog after "New Layer" command 2015-08-21 14:55:34 -03:00
David Capello
5dfe7b64ae Enter key closes Cel or Layer properties if children have the focus 2015-08-21 14:53:31 -03:00
David Capello
4b064333cc Add color harmonies in the ColorWheel widget (issue #707) 2015-08-21 13:27:58 -03:00
David Capello
b0877df0cb Show current color indicator in the color wheel 2015-08-21 12:34:06 -03:00
David Capello
be0a944cd8 Change opacity to 255 for layers and cels on "Background from Layer" 2015-08-21 11:09:02 -03:00
David Capello
b9af6c3b02 Fix LayerProperties to modify the layer when the timer event triggers 2015-08-21 11:03:59 -03:00
David Capello
f8254b01aa Add support to modify several cels' opacity using CelProperties dialog 2015-08-21 11:01:49 -03:00
David Capello
318f0d20e9 Don't lock the sprite to change the current layer in the current_editor 2015-08-21 10:03:04 -03:00
David Capello
d3232c82ff Restore layer/cel properties before the transaction just in case we caught an exception 2015-08-21 09:38:18 -03:00
David Capello
97ba169b95 Minor change for LockedDocumentException messages 2015-08-21 09:22:40 -03:00
David Capello
dc9ee103f0 Make CelProperties dialog non-modal 2015-08-21 08:35:29 -03:00
David Capello
5e4164d552 Put focus in layer name when LayerProperties window is shown 2015-08-21 08:27:13 -03:00
David Capello
5942e62277 Minor change in LayerPropertiesWindow 2015-08-21 08:26:45 -03:00
David Capello
728432f9e5 Convert "Layer Properties" dialog in a non-modal window 2015-08-21 00:44:28 -03:00