summaryrefslogtreecommitdiffstats
path: root/src/LashDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-06 01:38:33 +0000
committerDavid Robillard <d@drobilla.net>2008-01-06 01:38:33 +0000
commit00176fa0e8e834608efa5b2a44b3954132fb13ea (patch)
tree5f339c95cf50465e0169d7307eaecd91dda5e7f3 /src/LashDriver.cpp
parentbe18675f37f47c229fdebf3ceaefd73b6e61cbb1 (diff)
downloadpatchage-00176fa0e8e834608efa5b2a44b3954132fb13ea.tar.gz
patchage-00176fa0e8e834608efa5b2a44b3954132fb13ea.tar.bz2
patchage-00176fa0e8e834608efa5b2a44b3954132fb13ea.zip
More verbose LASH console output.
git-svn-id: http://svn.drobilla.net/lad/patchage@1012 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/LashDriver.cpp')
-rw-r--r--src/LashDriver.cpp14
1 files changed, 6 insertions, 8 deletions
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<Raul::LashProject> 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<Raul::LashProject> 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<Raul::LashProject> 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;
}
-
-