summaryrefslogtreecommitdiffstats
path: root/src/client/PluginModel.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-10 06:24:07 +0000
committerDavid Robillard <d@drobilla.net>2012-05-10 06:24:07 +0000
commit0c9e861caa8b1eed5068942edc35d5f91bac816e (patch)
treeb241856ddf49e1b1192f8ea442d1733d9d31b2f2 /src/client/PluginModel.cpp
parent8ec295a0f2a40086ed83e8d2ad8ad38c8125bcb4 (diff)
downloadingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.tar.gz
ingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.tar.bz2
ingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.zip
Work towards translatable strings and a cleaner log interface.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4338 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/PluginModel.cpp')
-rw-r--r--src/client/PluginModel.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp
index 1612be45..e6ac0a52 100644
--- a/src/client/PluginModel.cpp
+++ b/src/client/PluginModel.cpp
@@ -28,7 +28,6 @@
#include "ingen_config.h"
using namespace std;
-using namespace Raul;
namespace Ingen {
namespace Client {
@@ -39,8 +38,8 @@ const LilvPlugins* PluginModel::_lilv_plugins = NULL;
Sord::World* PluginModel::_rdf_world = NULL;
PluginModel::PluginModel(Shared::URIs& uris,
- const URI& uri,
- const URI& type_uri,
+ const Raul::URI& uri,
+ const Raul::URI& type_uri,
const Resource::Properties& properties)
: ResourceImpl(uris, uri)
, _type(type_from_uri(type_uri.str()))
@@ -60,17 +59,17 @@ PluginModel::PluginModel(Shared::URIs& uris,
}
}
-const Atom&
-PluginModel::get_property(const URI& key) const
+const Raul::Atom&
+PluginModel::get_property(const Raul::URI& key) const
{
- static const Atom nil;
- const Atom& val = ResourceImpl::get_property(key);
+ static const Raul::Atom nil;
+ const Raul::Atom& val = ResourceImpl::get_property(key);
if (val.is_valid())
return val;
// No lv2:symbol from data or engine, invent one
if (key == _uris.lv2_symbol) {
- const URI& uri = this->uri();
+ const Raul::URI& uri = this->uri();
size_t last_slash = uri.find_last_of('/');
size_t last_hash = uri.find_last_of('#');
string symbol;
@@ -150,12 +149,12 @@ PluginModel::set(SharedPtr<PluginModel> p)
_signal_changed.emit();
}
-Symbol
+Raul::Symbol
PluginModel::default_node_symbol() const
{
- const Atom& name_atom = get_property(LV2_CORE__symbol);
+ const Raul::Atom& name_atom = get_property(LV2_CORE__symbol);
if (name_atom.is_valid() && name_atom.type() == _uris.forge.String)
- return Symbol::symbolify(name_atom.get_string());
+ return Raul::Symbol::symbolify(name_atom.get_string());
else
return "_";
}
@@ -163,7 +162,7 @@ PluginModel::default_node_symbol() const
string
PluginModel::human_name() const
{
- const Atom& name_atom = get_property("http://usefulinc.com/ns/doap#name");
+ const Raul::Atom& name_atom = get_property("http://usefulinc.com/ns/doap#name");
if (name_atom.type() == _uris.forge.String)
return name_atom.get_string();
else