diff options
author | David Robillard <d@drobilla.net> | 2007-12-20 00:52:10 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-12-20 00:52:10 +0000 |
commit | 46452c287cdc4b12c30589a8f877f3ab7359265b (patch) | |
tree | 4c8a51dccba7ecdefd1a2fc17fea17119612b3a7 /src/Patchage.hpp | |
parent | 5ac95692d1b48aabdac324e57378e7a7da9becd9 (diff) | |
download | patchage-46452c287cdc4b12c30589a8f877f3ab7359265b.tar.gz patchage-46452c287cdc4b12c30589a8f877f3ab7359265b.tar.bz2 patchage-46452c287cdc4b12c30589a8f877f3ab7359265b.zip |
Use fancy GladeFile class.
Remove silly Patchage-as-window-manager crap.
Less LOC.
git-svn-id: http://svn.drobilla.net/lad/patchage@988 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Patchage.hpp')
-rw-r--r-- | src/Patchage.hpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/Patchage.hpp b/src/Patchage.hpp index 5f54c7e..96aa35d 100644 --- a/src/Patchage.hpp +++ b/src/Patchage.hpp @@ -21,6 +21,7 @@ #include <string> #include <boost/shared_ptr.hpp> #include <libgnomecanvasmm.h> +#include <libglademm/xml.h> #include CONFIG_H_PATH class PatchageCanvas; @@ -51,20 +52,18 @@ public: void attach(); void quit() { _main_window->hide(); } + + void refresh(); + inline void queue_refresh() { _refresh = true; } void clear_load(); - - void refresh(); - - void update_state(); - void store_window_location(); - void status_message(const std::string& msg); - inline void queue_refresh() { _refresh = true; } + void update_state(); - int max_pane_position() - { return _main_paned->property_max_position() - - _messages_expander->get_label_widget()->get_height() - 10; } + int max_pane_position() { + return _main_paned->property_max_position() + - _messages_expander->get_label_widget()->get_height() - 10; + } protected: void connect_widgets(); @@ -88,10 +87,8 @@ protected: void on_pane_position_changed(); void on_messages_expander_changed(); - - bool _pane_closed; - bool _update_pane_position; - int _user_pane_position; + + Glib::RefPtr<Gnome::Glade::Xml> xml; #ifdef HAVE_LASH LashDriver* _lash_driver; @@ -129,6 +126,9 @@ protected: std::string _settings_filename; bool _refresh; bool _enable_refresh; + bool _pane_closed; + bool _update_pane_position; + int _user_pane_position; Gtk::Window* _main_window; JackSettingsDialog* _jack_settings_dialog; |