Mercurial > hg > svgui
comparison view/ViewManager.h @ 762:b75c95e7f906 tonioni
Fix potential for crash on reloading session file - loading selections should not emit signal as if user had just made them manually
author | Chris Cannam |
---|---|
date | Thu, 03 Apr 2014 08:51:30 +0100 |
parents | 56ba2b03508e |
children | 4c8ca536b54f |
comparison
equal
deleted
inserted
replaced
761:6a8d922f991d | 762:b75c95e7f906 |
---|---|
84 void removeSelection(const Selection &selection); | 84 void removeSelection(const Selection &selection); |
85 void clearSelections(); | 85 void clearSelections(); |
86 size_t constrainFrameToSelection(size_t frame) const; | 86 size_t constrainFrameToSelection(size_t frame) const; |
87 | 87 |
88 /** | 88 /** |
89 * Adding a selection normally emits the selectionChangedByUser | |
90 * signal. Call this to add a selection without emitting that signal. | |
91 * This is used in session file load, for example. | |
92 */ | |
93 void addSelectionQuietly(const Selection &selection); | |
94 | |
95 /** | |
89 * Return the selection that contains a given frame. | 96 * Return the selection that contains a given frame. |
90 * If defaultToFollowing is true, and if the frame is not in a | 97 * If defaultToFollowing is true, and if the frame is not in a |
91 * selected area, return the next selection after the given frame. | 98 * selected area, return the next selection after the given frame. |
92 * Return the empty selection if no appropriate selection is found. | 99 * Return the empty selection if no appropriate selection is found. |
93 */ | 100 */ |
295 bool m_playLoopMode; | 302 bool m_playLoopMode; |
296 bool m_playSelectionMode; | 303 bool m_playSelectionMode; |
297 bool m_playSoloMode; | 304 bool m_playSoloMode; |
298 bool m_alignMode; | 305 bool m_alignMode; |
299 | 306 |
300 void setSelections(const MultiSelection &ms); | 307 void setSelections(const MultiSelection &ms, bool quietly = false); |
301 void signalSelectionChange(); | 308 void signalSelectionChange(); |
302 | 309 |
303 class SetSelectionCommand : public Command | 310 class SetSelectionCommand : public Command |
304 { | 311 { |
305 public: | 312 public: |