summaryrefslogtreecommitdiffstats
path: root/src/Patchage.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-16 04:55:16 +0000
committerDavid Robillard <d@drobilla.net>2006-10-16 04:55:16 +0000
commitc44ae9cd6a176c18655816ab6a1692a2fca65816 (patch)
treef52f7f6f56ccc0a95e8ae76d2a90f045a392f7bf /src/Patchage.h
parentecfdea2940a9726987c7992873d78d8ec465ee88 (diff)
downloadpatchage-c44ae9cd6a176c18655816ab6a1692a2fca65816.tar.gz
patchage-c44ae9cd6a176c18655816ab6a1692a2fca65816.tar.bz2
patchage-c44ae9cd6a176c18655816ab6a1692a2fca65816.zip
Magic flashy PaneExpander(TM) 2.0.
git-svn-id: http://svn.drobilla.net/lad/patchage@178 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Patchage.h')
-rw-r--r--src/Patchage.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Patchage.h b/src/Patchage.h
index c317b97..d730b4b 100644
--- a/src/Patchage.h
+++ b/src/Patchage.h
@@ -59,6 +59,9 @@ public:
void status_message(const string& msg);
inline void queue_refresh() { m_refresh = true; }
+ int max_pane_position()
+ { return m_main_paned->property_max_position() - m_messages_expander->get_label_widget()->get_height() - 8; }
+
protected:
void attach_menu_items();
@@ -71,6 +74,13 @@ protected:
void zoom_changed();
bool idle_callback();
+ void on_pane_position_changed();
+ void on_messages_expander_changed();
+
+ bool m_pane_closed;
+ bool m_update_pane_position;
+ int m_user_pane_position;
+
#ifdef HAVE_LASH
LashDriver* m_lash_driver;
Gtk::MenuItem* m_menu_lash_launch;
@@ -115,6 +125,7 @@ protected:
Gtk::HScale* m_zoom_slider;
Gtk::TextView* m_status_text;
Gtk::Paned* m_main_paned;
+ Gtk::Expander* m_messages_expander;
Gtk::Button* m_zoom_normal_button;
Gtk::Button* m_zoom_full_button;
};