From 318b37d8b556add13b3f156f31c9e72eca339a16 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 17 Aug 2012 02:14:07 +0000 Subject: Implement real logging system, LV2 log extension support, and purge evil/ugly/untranslatable C++ stream printing. Remove coloured log stuff from Raul. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4717 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PatchTreeWindow.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'src/gui/PatchTreeWindow.cpp') diff --git a/src/gui/PatchTreeWindow.cpp b/src/gui/PatchTreeWindow.cpp index 06eed694..00b96926 100644 --- a/src/gui/PatchTreeWindow.cpp +++ b/src/gui/PatchTreeWindow.cpp @@ -14,17 +14,15 @@ along with Ingen. If not, see . */ -#include "raul/log.hpp" -#include "raul/Path.hpp" -#include "ingen/Interface.hpp" -#include "ingen/client/ClientStore.hpp" -#include "ingen/client/PatchModel.hpp" #include "App.hpp" #include "PatchTreeWindow.hpp" #include "SubpatchModule.hpp" #include "WindowFactory.hpp" - -#define LOG(s) s << "[PatchTreeWindow] " +#include "ingen/Interface.hpp" +#include "ingen/Log.hpp" +#include "ingen/client/ClientStore.hpp" +#include "ingen/client/PatchModel.hpp" +#include "raul/Path.hpp" using namespace std; @@ -160,8 +158,9 @@ PatchTreeWindow::show_patch_menu(GdkEventButton* ev) if (active) { Gtk::TreeModel::Row row = *active; SharedPtr pm = row[_patch_tree_columns.patch_model_col]; - if (pm) - Raul::warn << "TODO: patch menu from tree window" << endl; + if (pm) { + _app->log().warn("TODO: patch menu from tree window"); + } } } @@ -205,7 +204,8 @@ PatchTreeWindow::patch_property_changed(const Raul::URI& key, Gtk::TreeModel::Row row = *i; row[_patch_tree_columns.enabled_col] = value.get_bool(); } else { - LOG(Raul::error) << "Unable to find patch " << patch->path() << endl; + _app->log().error(Raul::fmt("Unable to find patch %1%\n") + % patch->path()); } } _enable_signal = true; @@ -223,7 +223,8 @@ PatchTreeWindow::patch_moved(SharedPtr patch) Gtk::TreeModel::Row row = *i; row[_patch_tree_columns.name_col] = patch->symbol().c_str(); } else { - LOG(Raul::error) << "Unable to find patch " << patch->path() << endl; + _app->log().error(Raul::fmt("Unable to find patch %1%\n") + % patch->path()); } _enable_signal = true; -- cgit v1.2.1