summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/PatchWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-04 04:47:30 +0000
committerDavid Robillard <d@drobilla.net>2006-10-04 04:47:30 +0000
commit1e01da451b279943ed51999ee06d64aba7c8faa2 (patch)
treef97067381f13b11a9e8f90284ac429b302f4d7a7 /src/progs/ingenuity/PatchWindow.cpp
parent91d5cb109563c67bdad5f3ebeaafc8e1e8f7e14a (diff)
downloadingen-1e01da451b279943ed51999ee06d64aba7c8faa2.tar.gz
ingen-1e01da451b279943ed51999ee06d64aba7c8faa2.tar.bz2
ingen-1e01da451b279943ed51999ee06d64aba7c8faa2.zip
Bug fixes.
Added copy to ingen (no cut or paste yet). Serialization work. git-svn-id: http://svn.drobilla.net/lad/ingen@153 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/PatchWindow.cpp')
-rw-r--r--src/progs/ingenuity/PatchWindow.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/progs/ingenuity/PatchWindow.cpp b/src/progs/ingenuity/PatchWindow.cpp
index e429d136..2ca3da14 100644
--- a/src/progs/ingenuity/PatchWindow.cpp
+++ b/src/progs/ingenuity/PatchWindow.cpp
@@ -59,6 +59,10 @@ PatchWindow::PatchWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glad
//xml->get_widget("patch_open_into_menuitem", m_menu_open_into);
xml->get_widget("patch_save_menuitem", m_menu_save);
xml->get_widget("patch_save_as_menuitem", m_menu_save_as);
+ xml->get_widget("patch_cut_menuitem", m_menu_cut);
+ xml->get_widget("patch_copy_menuitem", m_menu_copy);
+ xml->get_widget("patch_paste_menuitem", m_menu_paste);
+ xml->get_widget("patch_delete_menuitem", m_menu_delete);
xml->get_widget("patch_close_menuitem", m_menu_close);
xml->get_widget("patch_configuration_menuitem", m_menu_configuration);
xml->get_widget("patch_quit_menuitem", m_menu_quit);
@@ -84,6 +88,10 @@ PatchWindow::PatchWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glad
sigc::mem_fun(this, &PatchWindow::event_save));
m_menu_save_as->signal_activate().connect(
sigc::mem_fun(this, &PatchWindow::event_save_as));
+ m_menu_copy->signal_activate().connect(
+ sigc::mem_fun(this, &PatchWindow::event_copy));
+ m_menu_delete->signal_activate().connect(
+ sigc::mem_fun(this, &PatchWindow::event_delete));
m_menu_quit->signal_activate().connect(
sigc::mem_fun(this, &PatchWindow::event_quit));
m_menu_configuration->signal_activate().connect(
@@ -307,6 +315,22 @@ PatchWindow::event_save_as()
void
+PatchWindow::event_copy()
+{
+ if (m_view)
+ m_view->canvas()->copy_selection();
+}
+
+
+void
+PatchWindow::event_delete()
+{
+ if (m_view)
+ m_view->canvas()->destroy_selection();
+}
+
+
+void
PatchWindow::on_show()
{
if (m_position_stored)