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/PatchageCanvas.cpp | |
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/PatchageCanvas.cpp')
-rw-r--r-- | src/PatchageCanvas.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index 175d837..148466e 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -194,7 +194,7 @@ PatchageCanvas::connect(FlowCanvas::Connectable* port1, _app->alsa_driver()->connect(p1, p2); #endif } else { - status_message("WARNING: Cannot make connection, incompatible port types."); + _app->warning_msg("Cannot make connection, incompatible port types."); } } @@ -215,7 +215,7 @@ PatchageCanvas::disconnect(FlowCanvas::Connectable* port1, } if (!input || !output || input->is_output() || output->is_input()) { - status_message("ERROR: Attempt to disconnect mismatched/unknown ports"); + _app->error_msg("Attempt to disconnect mismatched/unknown ports."); return; } @@ -229,17 +229,11 @@ PatchageCanvas::disconnect(FlowCanvas::Connectable* port1, _app->alsa_driver()->disconnect(output, input); #endif } else { - status_message("ERROR: Attempt to disconnect ports with mismatched types"); + _app->error_msg("Attempt to disconnect ports with mismatched types."); } } void -PatchageCanvas::status_message(const string& msg) -{ - _app->status_msg(string("[Canvas] ").append(msg)); -} - -void PatchageCanvas::add_module(const std::string& name, PatchageModule* module) { _module_index.insert(std::make_pair(name, module)); |