summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/PatchWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-28 03:02:58 +0000
committerDavid Robillard <d@drobilla.net>2008-09-28 03:02:58 +0000
commit7471821294765f6da694d14ff81581b31d1a983a (patch)
treedd951664dd83a45e23f18eea46fece64b3b715b7 /src/libs/gui/PatchWindow.cpp
parent77f7faa59bd8b6c447f11fba6dede9c29542c37a (diff)
downloadingen-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/PatchWindow.cpp')
-rw-r--r--src/libs/gui/PatchWindow.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libs/gui/PatchWindow.cpp b/src/libs/gui/PatchWindow.cpp
index e0dc4b06..664b06c5 100644
--- a/src/libs/gui/PatchWindow.cpp
+++ b/src/libs/gui/PatchWindow.cpp
@@ -67,6 +67,7 @@ PatchWindow::PatchWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glad
xml->get_widget("patch_copy_menuitem", _menu_copy);
xml->get_widget("patch_paste_menuitem", _menu_paste);
xml->get_widget("patch_delete_menuitem", _menu_delete);
+ xml->get_widget("patch_select_all_menuitem", _menu_select_all);
xml->get_widget("patch_close_menuitem", _menu_close);
xml->get_widget("patch_quit_menuitem", _menu_quit);
xml->get_widget("patch_view_control_window_menuitem", _menu_view_control_window);
@@ -103,6 +104,8 @@ PatchWindow::PatchWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glad
sigc::mem_fun(this, &PatchWindow::event_paste));
_menu_delete->signal_activate().connect(
sigc::mem_fun(this, &PatchWindow::event_delete));
+ _menu_select_all->signal_activate().connect(
+ sigc::mem_fun(this, &PatchWindow::event_select_all));
_menu_quit->signal_activate().connect(
sigc::mem_fun(this, &PatchWindow::event_quit));
_menu_fullscreen->signal_activate().connect(
@@ -418,6 +421,14 @@ PatchWindow::event_delete()
void
+PatchWindow::event_select_all()
+{
+ if (_view)
+ _view->canvas()->select_all();
+}
+
+
+void
PatchWindow::on_show()
{
if (_position_stored)