From 00176fa0e8e834608efa5b2a44b3954132fb13ea Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 6 Jan 2008 01:38:33 +0000 Subject: More verbose LASH console output. git-svn-id: http://svn.drobilla.net/lad/patchage@1012 a436a847-0d15-0410-975c-d299462d15a1 --- src/LashDriver.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/LashDriver.cpp b/src/LashDriver.cpp index eeab10c..856ea2d 100644 --- a/src/LashDriver.cpp +++ b/src/LashDriver.cpp @@ -78,6 +78,7 @@ LashDriver::detach() void LashDriver::on_project_add(const SharedPtr project) { + cout << "[LashDriver] Add project - " << project->name() << endl; _project_name = project->name(); project->signal_save_file.connect(sigc::mem_fun(this, &LashDriver::on_save_file)); project->signal_restore_file.connect(sigc::mem_fun(this, &LashDriver::on_restore_file)); @@ -87,7 +88,7 @@ LashDriver::on_project_add(const SharedPtr project) void LashDriver::on_save_file(const string& directory) { - cout << "[LashDriver] LASH Save File - " << directory << endl; + cout << "[LashDriver] Save File - " << directory << endl; _app->store_window_location(); _app->state_manager()->save(directory + "/locations"); } @@ -96,7 +97,7 @@ LashDriver::on_save_file(const string& directory) void LashDriver::on_restore_file(const string& directory) { - cout << "[LashDriver] LASH Restore File - " << directory << endl; + cout << "[LashDriver] Restore File - " << directory << endl; _app->state_manager()->load(directory + "/locations"); _app->update_state(); } @@ -140,7 +141,7 @@ LashDriver::set_project_directory(const std::string& directory) if (project) project->set_directory(directory); else - cerr << "[LashDriver] No LASH project to set directory!" << endl; + cerr << "[LashDriver] No project \'" << _project_name << "\' to set directory!" << endl; } @@ -152,21 +153,18 @@ LashDriver::save_project() if (project) project->save(); else - cerr << "[LashDriver] No LASH project to save!" << endl; + cerr << "[LashDriver] No project \'" << _project_name << "\' to save!" << endl; } void LashDriver::close_project() { - cerr << "CLOSE PROJECT\n"; SharedPtr project = _server_interface->project(_project_name); if (project) project->close(); else - cerr << "[LashDriver] No LASH project to close!" << endl; + cerr << "[LashDriver] No project \'" << _project_name << "\' to close!" << endl; } - - -- cgit v1.2.1