mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Add option to disable the new "move selection edges" behavior
This commit is contained in:
parent
e5c15161e8
commit
b8c64b31c1
@ -256,6 +256,7 @@ skip = &Skip
|
||||
title = Preferences
|
||||
section_general = General
|
||||
section_editor = Editor
|
||||
section_selection = Selection
|
||||
section_timeline = Timeline
|
||||
section_cursors = Cursors
|
||||
section_background = Background
|
||||
@ -315,6 +316,12 @@ keep_selection_after_clear_tooltip = <<<END
|
||||
Check this if you want to keep the selection
|
||||
after deleting it.
|
||||
END
|
||||
move_edges = Allow moving selection edges
|
||||
move_edges_tooltip = <<<END
|
||||
Check this if you want to be able to drag
|
||||
only the selection edges when the mouse is
|
||||
above them.
|
||||
END
|
||||
autotimeline = Show timeline automatically
|
||||
autotimeline_tooltip = <<<END
|
||||
Show the timeline automatically
|
||||
|
@ -8,6 +8,7 @@
|
||||
<listbox id="section_listbox">
|
||||
<listitem text="@.section_general" value="section_general" />
|
||||
<listitem text="@.section_editor" value="section_editor" />
|
||||
<listitem text="@.section_selection" value="section_selection" />
|
||||
<listitem text="@.section_timeline" value="section_timeline" />
|
||||
<listitem text="@.section_cursors" value="section_cursors" />
|
||||
<listitem text="@.section_background" value="section_bg" />
|
||||
@ -84,10 +85,14 @@
|
||||
<label text="@.right_click" />
|
||||
<combobox id="right_click_behavior" expansive="true" />
|
||||
</hbox>
|
||||
</vbox>
|
||||
|
||||
<!-- Selection -->
|
||||
<vbox id="section_selection">
|
||||
<separator text="@.editor_selection" horizontal="true" />
|
||||
<check text="@.auto_opaque" id="auto_opaque" tooltip="@.auto_opaque_tooltip" />
|
||||
<check text="@.keep_selection_after_clear" id="keep_selection_after_clear" tooltip="@.keep_selection_after_clear_tooltip" />
|
||||
<check text="@.move_edges" id="move_edges" tooltip="@.move_edges_tooltip" />
|
||||
</vbox>
|
||||
|
||||
<!-- Timeline -->
|
||||
|
@ -133,6 +133,9 @@ public:
|
||||
if (m_pref.selection.keepSelectionAfterClear())
|
||||
keepSelectionAfterClear()->setSelected(true);
|
||||
|
||||
if (m_pref.selection.moveEdges())
|
||||
moveEdges()->setSelected(true);
|
||||
|
||||
#if defined(_WIN32) || defined(__APPLE__)
|
||||
if (m_pref.cursor.useNativeCursor())
|
||||
nativeCursor()->setSelected(true);
|
||||
@ -297,6 +300,7 @@ public:
|
||||
m_pref.cursor.cursorScale(base::convert_to<int>(cursorScale()->getValue()));
|
||||
m_pref.selection.autoOpaque(autoOpaque()->isSelected());
|
||||
m_pref.selection.keepSelectionAfterClear(keepSelectionAfterClear()->isSelected());
|
||||
m_pref.selection.moveEdges(moveEdges()->isSelected());
|
||||
m_pref.guides.layerEdgesColor(layerEdgesColor()->getColor());
|
||||
m_pref.guides.autoGuidesColor(autoGuidesColor()->getColor());
|
||||
m_pref.slices.defaultColor(defaultSliceColor()->getColor());
|
||||
|
Loading…
x
Reference in New Issue
Block a user