diff options
author | David Robillard <d@drobilla.net> | 2011-11-25 06:12:28 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-25 06:12:28 +0000 |
commit | a0d6e0d2ff7abdcfcd78d4002f2dc42f4cde82ed (patch) | |
tree | 0c581c8ed03ca280e03b6ec2827ff41fb6c617b8 /src/Patchage.hpp | |
parent | 572adb6873294bf2f26062cf297660aa449eb675 (diff) | |
download | patchage-a0d6e0d2ff7abdcfcd78d4002f2dc42f4cde82ed.tar.gz patchage-a0d6e0d2ff7abdcfcd78d4002f2dc42f4cde82ed.tar.bz2 patchage-a0d6e0d2ff7abdcfcd78d4002f2dc42f4cde82ed.zip |
Log (almost) everything to the messages window instead of the console.
Remove latency and load stuff in favour of plain old messages.
Remove status bar.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3627 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Patchage.hpp')
-rw-r--r-- | src/Patchage.hpp | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/src/Patchage.hpp b/src/Patchage.hpp index 2597178..8ff3ff5 100644 --- a/src/Patchage.hpp +++ b/src/Patchage.hpp @@ -33,7 +33,6 @@ #include <gtkmm/menuitem.h> #include <gtkmm/progressbar.h> #include <gtkmm/scrolledwindow.h> -#include <gtkmm/statusbar.h> #include <gtkmm/textview.h> #include <gtkmm/viewport.h> #include <gtkmm/window.h> @@ -77,10 +76,10 @@ public: inline void queue_refresh() { _refresh = true; } inline void driver_detached() { _driver_detached = true; } - void clear_load(); void info_msg(const std::string& msg); void error_msg(const std::string& msg); - void status_msg(const std::string& msg); + void warning_msg(const std::string& msg); + void update_state(); void store_window_location(); @@ -95,7 +94,6 @@ protected: void on_quit(); void on_show_messages(); void on_store_positions(); - void on_view_statusbar(); void on_zoom_in(); void on_zoom_out(); void on_zoom_normal(); @@ -105,7 +103,6 @@ protected: void zoom(double z); bool idle_callback(); bool update_load(); - void update_statusbar(); void buffer_size_changed(); @@ -133,7 +130,6 @@ protected: Widget<Gtk::AboutDialog> _about_win; Widget<Gtk::ScrolledWindow> _main_scrolledwin; Widget<Gtk::Window> _main_win; - Widget<Gtk::ProgressBar> _main_xrun_progress; Widget<Gtk::MenuItem> _menu_alsa_connect; Widget<Gtk::MenuItem> _menu_alsa_disconnect; Widget<Gtk::MenuItem> _menu_file_quit; @@ -147,28 +143,25 @@ protected: Widget<Gtk::MenuItem> _menu_view_arrange; Widget<Gtk::CheckMenuItem> _menu_view_messages; Widget<Gtk::MenuItem> _menu_view_refresh; - Widget<Gtk::CheckMenuItem> _menu_view_statusbar; Widget<Gtk::ImageMenuItem> _menu_zoom_in; Widget<Gtk::ImageMenuItem> _menu_zoom_out; Widget<Gtk::ImageMenuItem> _menu_zoom_normal; Widget<Gtk::Button> _messages_clear_but; Widget<Gtk::Button> _messages_close_but; Widget<Gtk::Dialog> _messages_win; - Widget<Gtk::Label> _latency_frames_label; - Widget<Gtk::Label> _latency_ms_label; - Widget<Gtk::Label> _sample_rate_label; Widget<Gtk::TextView> _status_text; - Widget<Gtk::Statusbar> _statusbar; - bool _attach; - bool _driver_detached; - bool _refresh; - bool _enable_refresh; - bool _jack_driver_autoattach; + Glib::RefPtr<Gtk::TextTag> _error_tag; + Glib::RefPtr<Gtk::TextTag> _warning_tag; + + bool _attach; + bool _driver_detached; + bool _refresh; + bool _enable_refresh; + bool _jack_driver_autoattach; #ifdef HAVE_ALSA - bool _alsa_driver_autoattach; + bool _alsa_driver_autoattach; #endif - }; #endif // PATCHAGE_PATCHAGE_HPP |