Mercurial > hg > svgui
comparison view/ViewManager.h @ 1266:a34a2a25907c
Untabify
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 18:02:22 +0000 |
parents | efc7586de499 |
children | 7527701c8076 |
comparison
equal
deleted
inserted
replaced
1265:6e724c81f18f | 1266:a34a2a25907c |
---|---|
128 Selection getContainingSelection(sv_frame_t frame, bool defaultToFollowing) const; | 128 Selection getContainingSelection(sv_frame_t frame, bool defaultToFollowing) const; |
129 | 129 |
130 Clipboard &getClipboard() { return m_clipboard; } | 130 Clipboard &getClipboard() { return m_clipboard; } |
131 | 131 |
132 enum ToolMode { | 132 enum ToolMode { |
133 NavigateMode, | 133 NavigateMode, |
134 SelectMode, | 134 SelectMode, |
135 EditMode, | 135 EditMode, |
136 DrawMode, | 136 DrawMode, |
137 EraseMode, | 137 EraseMode, |
138 MeasureMode, | 138 MeasureMode, |
139 NoteEditMode //GF: Tonioni: this tool mode will be context sensitive. | 139 NoteEditMode //GF: Tonioni: this tool mode will be context sensitive. |
140 }; | 140 }; |
141 ToolMode getToolMode() const { return m_toolMode; } | 141 ToolMode getToolMode() const { return m_toolMode; } |
142 void setToolMode(ToolMode mode); | 142 void setToolMode(ToolMode mode); |
143 | 143 |
144 /// Override the tool mode for a specific view | 144 /// Override the tool mode for a specific view |
346 void signalSelectionChange(); | 346 void signalSelectionChange(); |
347 | 347 |
348 class SetSelectionCommand : public Command | 348 class SetSelectionCommand : public Command |
349 { | 349 { |
350 public: | 350 public: |
351 SetSelectionCommand(ViewManager *vm, const MultiSelection &ms); | 351 SetSelectionCommand(ViewManager *vm, const MultiSelection &ms); |
352 virtual ~SetSelectionCommand(); | 352 virtual ~SetSelectionCommand(); |
353 virtual void execute(); | 353 virtual void execute(); |
354 virtual void unexecute(); | 354 virtual void unexecute(); |
355 virtual QString getName() const; | 355 virtual QString getName() const; |
356 | 356 |
357 protected: | 357 protected: |
358 ViewManager *m_vm; | 358 ViewManager *m_vm; |
359 MultiSelection m_oldSelection; | 359 MultiSelection m_oldSelection; |
360 MultiSelection m_newSelection; | 360 MultiSelection m_newSelection; |
361 }; | 361 }; |
362 | 362 |
363 OverlayMode m_overlayMode; | 363 OverlayMode m_overlayMode; |
364 bool m_zoomWheelsEnabled; | 364 bool m_zoomWheelsEnabled; |
365 bool m_showCentreLine; | 365 bool m_showCentreLine; |