summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchBox.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-12 23:42:17 +0000
committerDavid Robillard <d@drobilla.net>2012-08-12 23:42:17 +0000
commitefe8e2311ee2fed881f95cc1e72825906d21c7c1 (patch)
tree371c03610f691f0b97137b9e5b2f756b21fc5583 /src/gui/PatchBox.cpp
parente63caf72f320ab683de6378ff6f2944890054cbf (diff)
downloadingen-efe8e2311ee2fed881f95cc1e72825906d21c7c1.tar.gz
ingen-efe8e2311ee2fed881f95cc1e72825906d21c7c1.tar.bz2
ingen-efe8e2311ee2fed881f95cc1e72825906d21c7c1.zip
Use ingen:root as the path for the root patch, opening up path space for engine/driver/etc.
Strict conversion between Path and URI (Path no longer is-a URI). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4672 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PatchBox.cpp')
-rw-r--r--src/gui/PatchBox.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/PatchBox.cpp b/src/gui/PatchBox.cpp
index 7c9483f2..30330fd5 100644
--- a/src/gui/PatchBox.cpp
+++ b/src/gui/PatchBox.cpp
@@ -342,7 +342,7 @@ void
PatchBox::show_status(const ObjectModel* model)
{
std::stringstream msg;
- msg << model->path().chop_scheme();
+ msg << model->path();
const PortModel* port = 0;
const NodeModel* node = 0;
@@ -362,7 +362,7 @@ void
PatchBox::show_port_status(const PortModel* port, const Raul::Atom& value)
{
std::stringstream msg;
- msg << port->path().chop_scheme();
+ msg << port->path();
const NodeModel* parent = dynamic_cast<const NodeModel*>(port->parent().get());
if (parent) {
@@ -430,7 +430,7 @@ PatchBox::event_save()
} else {
_app->loader()->save_patch(_patch, document.get_uri());
_status_bar->push(
- (boost::format("Saved %1% to %2%") % _patch->path().chop_scheme()
+ (boost::format("Saved %1% to %2%") % _patch->path().c_str()
% document.get_uri()).str(),
STATUS_CONTEXT_PATCH);
}
@@ -543,7 +543,7 @@ PatchBox::event_save_as()
_app->forge().alloc_uri(uri.c_str()),
Resource::EXTERNAL);
_status_bar->push(
- (boost::format("Saved %1% to %2%") % _patch->path().chop_scheme()
+ (boost::format("Saved %1% to %2%") % _patch->path().c_str()
% filename).str(),
STATUS_CONTEXT_PATCH);
}
@@ -583,7 +583,8 @@ PatchBox::event_draw()
if (confirm) {
_view->canvas()->export_dot(filename.c_str());
_status_bar->push(
- (boost::format("Rendered %1% to %2%") % _patch->path() % filename).str(),
+ (boost::format("Rendered %1% to %2%")
+ % _patch->path().str() % filename).str(),
STATUS_CONTEXT_PATCH);
}
}