summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Patchage.cpp14
-rw-r--r--src/Patchage.h2
-rw-r--r--src/patchage.glade38
3 files changed, 41 insertions, 13 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 24716be..cff1f07 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -103,6 +103,7 @@ Patchage::Patchage(int argc, char** argv)
xml->get_widget("store_positions_menuitem", m_menu_store_positions);
xml->get_widget("file_quit_menuitem", m_menu_file_quit);
xml->get_widget("view_refresh_menuitem", m_menu_view_refresh);
+ xml->get_widget("view_messages_menuitem", m_menu_view_messages);
xml->get_widget("help_about_menuitem", m_menu_help_about);
xml->get_widget("canvas_scrolledwindow", m_canvas_scrolledwindow);
xml->get_widget("zoom_scale", m_zoom_slider);
@@ -138,6 +139,7 @@ Patchage::Patchage(int argc, char** argv)
m_menu_store_positions->signal_activate().connect( sigc::mem_fun(this, &Patchage::menu_store_positions));
m_menu_file_quit->signal_activate().connect( sigc::mem_fun(this, &Patchage::menu_file_quit));
m_menu_view_refresh->signal_activate().connect( sigc::mem_fun(this, &Patchage::menu_view_refresh));
+ m_menu_view_messages->signal_toggled().connect( sigc::mem_fun(this, &Patchage::show_messages_toggled));
m_menu_help_about->signal_activate().connect( sigc::mem_fun(this, &Patchage::menu_help_about));
attach_menu_items();
@@ -370,6 +372,18 @@ Patchage::menu_file_quit()
void
+Patchage::show_messages_toggled()
+{
+ const bool show = m_menu_view_messages->get_active();
+
+ if (show)
+ m_main_paned->set_position(static_cast<int>(m_main_paned->get_height() * 3/4));
+ else
+ m_main_paned->set_position(INT_MAX);
+}
+
+
+void
Patchage::menu_view_refresh()
{
assert(m_canvas);
diff --git a/src/Patchage.h b/src/Patchage.h
index f303a46..24f741a 100644
--- a/src/Patchage.h
+++ b/src/Patchage.h
@@ -63,6 +63,7 @@ protected:
void menu_store_positions();
void menu_file_quit();
+ void show_messages_toggled();
void menu_view_refresh();
void menu_help_about();
void zoom(double z);
@@ -104,6 +105,7 @@ protected:
Gtk::MenuItem* m_menu_jack_disconnect;
Gtk::MenuItem* m_menu_store_positions;
Gtk::MenuItem* m_menu_file_quit;
+ Gtk::CheckMenuItem* m_menu_view_messages;
Gtk::MenuItem* m_menu_view_refresh;
Gtk::MenuItem* m_menu_help_about;
Gtk::ScrolledWindow* m_canvas_scrolledwindow;
diff --git a/src/patchage.glade b/src/patchage.glade
index bfb8130..da089a3 100644
--- a/src/patchage.glade
+++ b/src/patchage.glade
@@ -52,7 +52,7 @@
<accelerator key="O" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image375">
+ <widget class="GtkImage" id="image450">
<property name="visible">True</property>
<property name="stock">gtk-open</property>
<property name="icon_size">1</property>
@@ -74,7 +74,7 @@
<accelerator key="S" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image376">
+ <widget class="GtkImage" id="image451">
<property name="visible">True</property>
<property name="stock">gtk-save</property>
<property name="icon_size">1</property>
@@ -96,7 +96,7 @@
<accelerator key="S" modifiers="GDK_CONTROL_MASK | GDK_SHIFT_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image377">
+ <widget class="GtkImage" id="image452">
<property name="visible">True</property>
<property name="stock">gtk-save-as</property>
<property name="icon_size">1</property>
@@ -124,7 +124,7 @@
<accelerator key="L" modifiers="GDK_CONTROL_MASK | GDK_MOD1_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image378">
+ <widget class="GtkImage" id="image453">
<property name="visible">True</property>
<property name="stock">gtk-execute</property>
<property name="icon_size">1</property>
@@ -146,7 +146,7 @@
<accelerator key="L" modifiers="GDK_MOD1_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image379">
+ <widget class="GtkImage" id="image454">
<property name="visible">True</property>
<property name="stock">gtk-connect</property>
<property name="icon_size">1</property>
@@ -168,7 +168,7 @@
<accelerator key="L" modifiers="GDK_SHIFT_MASK | GDK_MOD1_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image380">
+ <widget class="GtkImage" id="image455">
<property name="visible">True</property>
<property name="stock">gtk-disconnect</property>
<property name="icon_size">1</property>
@@ -196,7 +196,7 @@
<accelerator key="J" modifiers="GDK_CONTROL_MASK | GDK_MOD1_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image381">
+ <widget class="GtkImage" id="image456">
<property name="visible">True</property>
<property name="stock">gtk-execute</property>
<property name="icon_size">1</property>
@@ -218,7 +218,7 @@
<accelerator key="J" modifiers="GDK_MOD1_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image382">
+ <widget class="GtkImage" id="image457">
<property name="visible">True</property>
<property name="stock">gtk-connect</property>
<property name="icon_size">1</property>
@@ -240,7 +240,7 @@
<accelerator key="J" modifiers="GDK_SHIFT_MASK | GDK_MOD1_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image383">
+ <widget class="GtkImage" id="image458">
<property name="visible">True</property>
<property name="stock">gtk-disconnect</property>
<property name="icon_size">1</property>
@@ -268,7 +268,7 @@
<accelerator key="A" modifiers="GDK_MOD1_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image384">
+ <widget class="GtkImage" id="image459">
<property name="visible">True</property>
<property name="stock">gtk-connect</property>
<property name="icon_size">1</property>
@@ -290,7 +290,7 @@
<accelerator key="A" modifiers="GDK_SHIFT_MASK | GDK_MOD1_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image385">
+ <widget class="GtkImage" id="image460">
<property name="visible">True</property>
<property name="stock">gtk-disconnect</property>
<property name="icon_size">1</property>
@@ -318,7 +318,7 @@
<accelerator key="S" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image386">
+ <widget class="GtkImage" id="image461">
<property name="visible">True</property>
<property name="stock">gtk-save</property>
<property name="icon_size">1</property>
@@ -360,6 +360,18 @@
<widget class="GtkMenu" id="view_menu_menu">
<child>
+ <widget class="GtkCheckMenuItem" id="view_messages_menuitem">
+ <property name="visible">True</property>
+ <property name="tooltip" translatable="yes">View &quot;console&quot; messages</property>
+ <property name="label" translatable="yes">_Messages</property>
+ <property name="use_underline">True</property>
+ <property name="active">False</property>
+ <signal name="activate" handler="on_messages1_activate" last_modification_time="Sat, 14 Oct 2006 15:43:59 GMT"/>
+ <accelerator key="M" modifiers="GDK_CONTROL_MASK" signal="activate"/>
+ </widget>
+ </child>
+
+ <child>
<widget class="GtkImageMenuItem" id="view_refresh_menuitem">
<property name="visible">True</property>
<property name="label" translatable="yes">_Refresh</property>
@@ -368,7 +380,7 @@
<accelerator key="R" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image387">
+ <widget class="GtkImage" id="image463">
<property name="visible">True</property>
<property name="stock">gtk-refresh</property>
<property name="icon_size">1</property>