Commit Graph

3558 Commits

Author SHA1 Message Date
David Capello
5fc3b06e8e Change ColorMap::m_remap to UniquePtr 2015-05-21 10:39:09 -03:00
David Capello
85d638097b Use rendered images to create optimized palette in render::create_palette_from_rgb() 2015-05-21 10:17:59 -03:00
David Capello
13ac74f37a Remap transparent color when ColorBar "Remap" button is used (fix #677) 2015-05-21 09:27:34 -03:00
David Capello
ec26dd7ee9 Merge branch 'fix-memory-leaks' 2015-05-20 17:11:34 -03:00
David Capello
a1b900325e Delete default skin font on exit 2015-05-20 16:58:23 -03:00
David Capello
9f6447f4af Fix app::Document::m_mutex leak 2015-05-20 16:56:08 -03:00
David Capello
ca16580b09 Don't create PalettePopup when the program starts 2015-05-20 16:51:32 -03:00
David Capello
e730b90958 Delete UndoCommands when the UndoHistory is destroyed 2015-05-20 16:51:07 -03:00
David Capello
c04f4976fb Delete slots in signal destructors 2015-05-20 16:24:58 -03:00
David Capello
621c4bb05d Link with dbghelp when memory-leak detection is enabled 2015-05-20 16:24:26 -03:00
David Capello
f683c50198 Destroy Editor render buffer on exit 2015-05-20 16:23:53 -03:00
David Capello
15a227d06f Add support for .pal files (fix #349, related to #181) 2015-05-20 16:08:16 -03:00
David Capello
5dee5f3a57 Save HttpLoader output as binary 2015-05-20 15:35:59 -03:00
David Capello
cf8cd97cb6 Use new FSTREAM_PATH() macro to open fstreams 2015-05-20 15:34:36 -03:00
David Capello
a4e7df6037 Fix loading/saving .gpl files inside folders with Unicode chars on Windows 2015-05-20 15:33:34 -03:00
David Capello
104e5e6479 Shift key locks X/Y axis in Move tool (fix #602) 2015-05-20 15:07:17 -03:00
David Capello
9b9ac319dc Rename checkFromAllegroKeyArray() members to isPressed() 2015-05-20 15:02:31 -03:00
David Capello
13aef4eecf Add support to change the transparent color with middle click 2015-05-20 12:11:47 -03:00
David Capello
1ff4f06a69 Show transparent index in ColorBar with a little dot 2015-05-20 11:40:22 -03:00
David Capello
ae048f5756 Avoid including ColorBar in PaletteView 2015-05-20 11:38:38 -03:00
David Capello
23a4cb3a0b Fix some problems updating the StatusBar cel opacity slider
Now the StatusBar observes changes in the cel opacity to update the
slider (e.g. when we change the cel opacity through Cel > Properties
menu, the StatusBar refresh its slider).
2015-05-19 16:39:47 -03:00
David Capello
a90a70bd1e Avoid giving F10 and Alt keys to the system on Win32/Skia port 2015-05-19 15:45:49 -03:00
David Capello
189ee56c4c Implement she::is_key_pressed() on Win32 for the Skia port 2015-05-19 15:34:47 -03:00
David Capello
20f532ffe8 Add Unicode char to WM_KEYDOWN processing in she::Window<T> 2015-05-19 15:17:07 -03:00
David Capello
4c0bbd50f8 Complete she::win32vk_to_scancode() conversions 2015-05-19 14:51:01 -03:00
David Capello
1c447fdeee Fix RGB mask/shift flags for 32bpp in Skia port 2015-05-19 14:21:04 -03:00
David Capello
524930fe54 Implement she::clock_value() with GetTickCount() on Win32 when we use Skia 2015-05-19 14:08:18 -03:00
David Capello
c21a84c9c9 Add zlib as libpng dependency 2015-05-19 14:02:52 -03:00
David Capello
9a1c522084 Remove unused variables 2015-05-19 13:44:00 -03:00
David Capello
288235fe32 Don't set the palette if we change the current frame of an inactive Editor
This happens when we press the play button in one Editor (it changes to
PlayState) and we start using other Editor. We don't want to change
the current palette/ColorBar for that animation playing in the background.

Fix #676
2015-05-18 21:34:30 -03:00
David Capello
e973aa0cc7 Don't close the Preview window if we close an unrelated Editor 2015-05-18 21:28:30 -03:00
David Capello
e106f6feec Don't use get_current_palette() in set_win32_clipboard_bitmap() 2015-05-18 21:18:02 -03:00
David Capello
dd4683a27b Remove unused function set_black_palette() 2015-05-18 21:17:16 -03:00
David Capello
15fb45f3a1 Avoid problems regenerating brush boundaries when the brush image ptr addresses are the same 2015-05-18 20:45:54 -03:00
David Capello
12e28960e4 Move Editor cursor color to pref.xml 2015-05-18 18:16:35 -03:00
David Capello
1144ef6fd3 Update system window title bar when the document is saved with other name (fix #675) 2015-05-18 17:08:01 -03:00
David Capello
a8577a4273 Rename Context::isUiAvailable to Context::isUIAvailable 2015-05-18 17:04:31 -03:00
David Capello
f6be0c3be6 Replace ISettings with Preferences
Changes:
* Move FreehandAlgorithm/InkType/RotationAlgorithm/SelectionMode to
  app::tools namespace
* Removed ISettings, IToolSettings, IBrushSettings, ISelectionSettings,
  and IColorSwatchesStore (and implementations from UISettingsImpl)
* Added app::tools::PreferenceGlue to do some adjustments that
  UIToolSettingsImpl was doing
* Remove signals from App related to brush size/angle changes, and current
  tool change (there events can be observed directly from Preferences)
* Remove ColorBar::FgColor/BgColor, these options can be observed from
  Preferences::colorBar.fg/bgColor
2015-05-18 16:53:25 -03:00
David Capello
026972a7b9 Merge branch 'origin/master' 2015-05-18 15:03:48 -03:00
David Capello
70dd6806a9 Fix problem redrawing eraser cursor when the brush size changes (fix #671) 2015-05-18 15:02:02 -03:00
David Capello
6c882e43d5 Rename Editor::m_cursorThick -> m_cursorOnScreen 2015-05-18 15:00:59 -03:00
David Capello
52cdea6cf0 Merge branch 'master' 2015-05-18 13:08:21 -03:00
David Capello
aca944251a Merge pull request #674 from agateau/linux-open-folder
Add support for open_folder on Linux
2015-05-18 11:21:59 -03:00
Aurélien Gâteau
817b134f31 Add support for open_folder on Linux
Removed base::launcher::support_open_folder() as it would always return
true.
2015-05-15 22:37:58 +02:00
David Capello
41ed14f036 Replace ISettings::get/setAutoSelectLayer() with Preferences class 2015-05-13 11:57:13 -03:00
David Capello
00ff89529c Replace ISettings::get/setGrabAlpha() with Preferences class 2015-05-13 11:46:49 -03:00
David Capello
8c6c77e73a Remove deprecated GlobalSettingsObserver class 2015-05-13 11:23:26 -03:00
David Capello
06b53981d4 Replace ISettings::get/setRightClickMode() with Preferences class 2015-05-13 11:19:16 -03:00
David Capello
70f844380b Replace ISettings::get/setShowSpriteEditorScrollbars() with Preferences class 2015-05-13 10:41:55 -03:00
David Capello
c42ca3200f Remove (now) unused ISettings::get/setCenterOnZoom() 2015-05-13 10:34:00 -03:00