From dbe6899651ac929f59af160dd07aaf6bda079b23 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 18:54:27 +0100 Subject: Factor out log from Patchage class Towards saner dependencies. --- src/Patchage.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Patchage.hpp') diff --git a/src/Patchage.hpp b/src/Patchage.hpp index 98537a1..e453b68 100644 --- a/src/Patchage.hpp +++ b/src/Patchage.hpp @@ -38,7 +38,9 @@ #include #include +#include "ILog.hpp" #include "Legend.hpp" +#include "TextViewLog.hpp" #include "Widget.hpp" #include "patchage_config.h" @@ -70,6 +72,7 @@ public: const std::shared_ptr& canvas() const { return _canvas; } Gtk::Window* window() { return _main_win.get(); } + ILog& log() { return _log; } Configuration* conf() const { return _conf; } JackDriver* jack_driver() const { return _jack_driver; } @@ -92,10 +95,6 @@ public: inline void queue_refresh() { _refresh = true; } inline void driver_detached() { _driver_detached = true; } - void info_msg(const std::string& msg); - void error_msg(const std::string& msg); - void warning_msg(const std::string& msg); - void update_state(); void store_window_location(); @@ -210,6 +209,7 @@ protected: Widget _log_scrolledwindow; Widget _status_text; Legend* _legend; + TextViewLog _log; Glib::RefPtr _error_tag; Glib::RefPtr _warning_tag; -- cgit v1.2.1