Mercurial > hg > svgui
comparison view/ViewManager.h @ 711:084fd76deb89 tonioni
Allow per-pane overrides for tool mode
author | Chris Cannam |
---|---|
date | Thu, 09 Jan 2014 16:41:55 +0000 |
parents | ad12e428785b |
children | f831ca41d4a5 |
comparison
equal
deleted
inserted
replaced
710:c65826b5e980 | 711:084fd76deb89 |
---|---|
96 Clipboard &getClipboard() { return m_clipboard; } | 96 Clipboard &getClipboard() { return m_clipboard; } |
97 | 97 |
98 enum ToolMode { | 98 enum ToolMode { |
99 NavigateMode, | 99 NavigateMode, |
100 SelectMode, | 100 SelectMode, |
101 EditMode, | 101 EditMode, |
102 DrawMode, | 102 DrawMode, |
103 EraseMode, | 103 EraseMode, |
104 MeasureMode, | 104 MeasureMode, |
105 NoteEditMode //GF: Tonioni: this tool mode will be context sensitive. | 105 NoteEditMode //GF: Tonioni: this tool mode will be context sensitive. |
106 }; | 106 }; |
107 ToolMode getToolMode() const { return m_toolMode; } | 107 ToolMode getToolMode() const { return m_toolMode; } |
108 void setToolMode(ToolMode mode); | 108 void setToolMode(ToolMode mode); |
109 | 109 |
110 /// Override the tool mode for a specific view | |
111 void setToolModeFor(const View *v, ToolMode mode); | |
112 /// Return override mode if it exists for this view or global mode otherwise | |
113 ToolMode getToolModeFor(const View *v) const; | |
114 /// Clear all current view-specific overrides | |
115 void clearToolModeOverrides(); | |
116 | |
110 bool getPlayLoopMode() const { return m_playLoopMode; } | 117 bool getPlayLoopMode() const { return m_playLoopMode; } |
111 void setPlayLoopMode(bool on); | 118 void setPlayLoopMode(bool on); |
112 | 119 |
113 bool getPlaySelectionMode() const { return m_playSelectionMode; } | 120 bool getPlaySelectionMode() const { return m_playSelectionMode; } |
114 void setPlaySelectionMode(bool on); | 121 void setPlaySelectionMode(bool on); |
272 bool m_inProgressExclusive; | 279 bool m_inProgressExclusive; |
273 | 280 |
274 Clipboard m_clipboard; | 281 Clipboard m_clipboard; |
275 | 282 |
276 ToolMode m_toolMode; | 283 ToolMode m_toolMode; |
284 std::map<const View *, ToolMode> m_toolModeOverrides; | |
277 | 285 |
278 bool m_playLoopMode; | 286 bool m_playLoopMode; |
279 bool m_playSelectionMode; | 287 bool m_playSelectionMode; |
280 bool m_playSoloMode; | 288 bool m_playSoloMode; |
281 bool m_alignMode; | 289 bool m_alignMode; |