Mercurial > hg > svgui
comparison view/ViewManager.h @ 718:e5f4385615ac tony_integration
Merge from tonioni branch
author | Chris Cannam |
---|---|
date | Tue, 28 Jan 2014 15:02:09 +0000 |
parents | 084fd76deb89 |
children | f831ca41d4a5 |
comparison
equal
deleted
inserted
replaced
704:b81f21f2c4c3 | 718:e5f4385615ac |
---|---|
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 }; | 106 }; |
106 ToolMode getToolMode() const { return m_toolMode; } | 107 ToolMode getToolMode() const { return m_toolMode; } |
107 void setToolMode(ToolMode mode); | 108 void setToolMode(ToolMode mode); |
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(); | |
108 | 116 |
109 bool getPlayLoopMode() const { return m_playLoopMode; } | 117 bool getPlayLoopMode() const { return m_playLoopMode; } |
110 void setPlayLoopMode(bool on); | 118 void setPlayLoopMode(bool on); |
111 | 119 |
112 bool getPlaySelectionMode() const { return m_playSelectionMode; } | 120 bool getPlaySelectionMode() const { return m_playSelectionMode; } |
271 bool m_inProgressExclusive; | 279 bool m_inProgressExclusive; |
272 | 280 |
273 Clipboard m_clipboard; | 281 Clipboard m_clipboard; |
274 | 282 |
275 ToolMode m_toolMode; | 283 ToolMode m_toolMode; |
284 std::map<const View *, ToolMode> m_toolModeOverrides; | |
276 | 285 |
277 bool m_playLoopMode; | 286 bool m_playLoopMode; |
278 bool m_playSelectionMode; | 287 bool m_playSelectionMode; |
279 bool m_playSoloMode; | 288 bool m_playSoloMode; |
280 bool m_alignMode; | 289 bool m_alignMode; |