Commit Graph

3534 Commits

Author SHA1 Message Date
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
David Capello aea07d06af Replace ISettings::get/setZoomWithScrollWheel() with Preferences class 2015-05-13 10:33:05 -03:00
David Capello 02d163b8d8 Add common keys in ui::Entry for OS X 2015-05-11 12:12:13 -03:00
David Capello 7450139898 Merge branch 'agateau-hide-hidden-files' 2015-05-11 12:02:14 -03:00
David Capello 15618c4fde Merge branch 'hide-hidden-files' of https://github.com/agateau/aseprite into agateau-hide-hidden-files 2015-05-11 12:01:31 -03:00
David Capello 5f82aa8f08 Fix split_filename_tests on OS X and Unix-like platforms 2015-05-11 11:44:56 -03:00
David Capello 96102e0e8c Remove lines that can fail in fs_tests 2015-05-11 11:33:20 -03:00
David Capello bd7ad0cde0 Fix bug copying text on Windows clipboard
We were asking if the clipboard format was equal to Unicode Text to copy
Unicode text on it.
2015-05-11 11:26:37 -03:00
David Capello 7278f649f4 Select exact RGB match when we use eyedropper in RGB images
Fix #16
2015-05-11 11:25:53 -03:00
David Capello 2ac04c1c16 Show foreground/background color indicators in ColorBar
Related to #16 and #545
2015-05-11 10:53:50 -03:00
David Capello 9a6f635d31 Fix compilation error by implicit int <-> enum class conversion 2015-05-11 10:41:45 -03:00
David Capello 447bf3ef0b Add needed #include to use std::string type 2015-05-11 10:41:25 -03:00
David Capello e05a635533 Fix usage of ImageRef shared pointer in app/util/clipboard.cpp 2015-05-11 10:41:11 -03:00
David Capello 063f1d173c Fix TipWindow() ctor signature 2015-05-11 10:40:37 -03:00
David Capello cff735a7c8 Remove unused variables 2015-05-11 10:40:23 -03:00
David Capello 1583cd82bd Avoid using ESC key to close non-foreground windows 2015-05-11 09:53:45 -03:00
David Capello 300a5cc1cb Fix palette editor for one entry (non-selected range)
This fix the most common behavior where we are capable of use
eyedropper to pick just one color, and modify it with the editor.
2015-05-11 09:51:10 -03:00
David Capello 442d8c624a Fix triggering Editor's onCut() without mask when ColorBar's onCanCut() enables it
Asking for onCanCut/Copy/Paste/Clear just before onCut/Copy/Paste/Clear
in the same InputChainElement we ensure that the command for that specific
element can be used (and we aren't mixing onCans result of one input chain
element with the execution of the first input chain element command).
2015-05-11 09:37:39 -03:00
Aurélien Gâteau 1257060825 Do not list hidden files in file lists
This makes browsing $HOME a lot less cluttered.
2015-05-11 09:38:30 +02:00
David Capello 525e473fb5 Add relative mode in Palette Editor 2015-05-10 22:53:36 -03:00
David Capello 9fc7b993d4 Add ability to cut colors in the ColorBar 2015-05-10 21:36:46 -03:00
David Capello cd1f764d85 Rename EditorState::onBefore/AfterChangeState to onLeave/EnterState()
This is to avoid confusion about the meaning of these callbacks.
2015-05-10 19:32:42 -03:00
David Capello 38526f3b9e Rename PaletteView::clearSelection() -> deselect() 2015-05-10 19:23:30 -03:00
David Capello b5b59dece4 Add ability to clear colors from ColorBar 2015-05-10 19:19:48 -03:00
David Capello c1324d196e Fix ColorBar::onCanPaste() to return true when we can still paste colors 2015-05-09 20:27:40 -03:00