diff options
author | David Robillard <d@drobilla.net> | 2008-09-28 03:02:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-09-28 03:02:58 +0000 |
commit | 7471821294765f6da694d14ff81581b31d1a983a (patch) | |
tree | dd951664dd83a45e23f18eea46fece64b3b715b7 /src/libs/gui/PatchCanvas.cpp | |
parent | 77f7faa59bd8b6c447f11fba6dede9c29542c37a (diff) | |
download | ingen-7471821294765f6da694d14ff81581b31d1a983a.tar.gz ingen-7471821294765f6da694d14ff81581b31d1a983a.tar.bz2 ingen-7471821294765f6da694d14ff81581b31d1a983a.zip |
Select all support (from kfoltman).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1519 a436a847-0d15-0410-975c-d299462d15a1
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() |