Mercurial > hg > svgui
comparison view/ViewManager.cpp @ 731:f831ca41d4a5 tonioni
Add selectionChangedByUser for selection changes prompted by interactivity rather than by undo/redo
author | Chris Cannam |
---|---|
date | Wed, 05 Mar 2014 09:35:32 +0000 |
parents | 084fd76deb89 |
children | 0c1ef0d05c82 |
comparison
equal
deleted
inserted
replaced
730:711ae36a53a2 | 731:f831ca41d4a5 |
---|---|
277 ViewManager::setSelections(const MultiSelection &ms) | 277 ViewManager::setSelections(const MultiSelection &ms) |
278 { | 278 { |
279 if (m_selections.getSelections() == ms.getSelections()) return; | 279 if (m_selections.getSelections() == ms.getSelections()) return; |
280 SetSelectionCommand *command = new SetSelectionCommand(this, ms); | 280 SetSelectionCommand *command = new SetSelectionCommand(this, ms); |
281 CommandHistory::getInstance()->addCommand(command); | 281 CommandHistory::getInstance()->addCommand(command); |
282 emit selectionChangedByUser(); | |
282 } | 283 } |
283 | 284 |
284 size_t | 285 size_t |
285 ViewManager::constrainFrameToSelection(size_t frame) const | 286 ViewManager::constrainFrameToSelection(size_t frame) const |
286 { | 287 { |