diff options
Diffstat (limited to 'src/libs/gui/PatchCanvas.cpp')
-rw-r--r-- | src/libs/gui/PatchCanvas.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libs/gui/PatchCanvas.cpp b/src/libs/gui/PatchCanvas.cpp index bd3a6bee..ddbbdc2b 100644 --- a/src/libs/gui/PatchCanvas.cpp +++ b/src/libs/gui/PatchCanvas.cpp @@ -561,6 +561,15 @@ PatchCanvas::destroy_selection() } } +void +PatchCanvas::select_all() +{ + unselect_ports(); + for (list<boost::shared_ptr<Item> >::iterator m = _items.begin(); m != _items.end(); ++m) + if (boost::dynamic_pointer_cast<FlowCanvas::Module>(*m)) + if (!(*m)->selected()) + select_item(*m); +} void PatchCanvas::copy_selection() |