summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-11-09 03:45:35 +0000
committerDavid Robillard <d@drobilla.net>2008-11-09 03:45:35 +0000
commit72ffe8b96f492805b16df8d2ffa452e67046b974 (patch)
tree4c3e565f34e334c8cc3a58ab052ea2156eb4cfdc /src/gui
parent5d1f579900182f283a1c21ad4e59daf7f035e219 (diff)
downloadingen-72ffe8b96f492805b16df8d2ffa452e67046b974.tar.gz
ingen-72ffe8b96f492805b16df8d2ffa452e67046b974.tar.bz2
ingen-72ffe8b96f492805b16df8d2ffa452e67046b974.zip
Add concept of 'Resource' and make plugins a resource (as well as graph objects).
Get rid of crufty imperative Plugin API. Loading of plugin data from engine over HTTP. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1713 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/NodePropertiesWindow.cpp6
-rw-r--r--src/gui/PatchPropertiesWindow.cpp6
-rw-r--r--src/gui/UploadPatchWindow.cpp4
3 files changed, 10 insertions, 6 deletions
diff --git a/src/gui/NodePropertiesWindow.cpp b/src/gui/NodePropertiesWindow.cpp
index ae2c23b5..7885b906 100644
--- a/src/gui/NodePropertiesWindow.cpp
+++ b/src/gui/NodePropertiesWindow.cpp
@@ -56,7 +56,11 @@ NodePropertiesWindow::set_node(SharedPtr<NodeModel> node_model)
if (pm) {
_plugin_type_label->set_text(pm->type_uri());
_plugin_uri_label->set_text(pm->uri());
- _plugin_name_label->set_text(pm->name());
+ const Atom& name = pm->get_property("doap:name");
+ if (name.is_valid())
+ _plugin_name_label->set_text(pm->get_property("doap:name").get_string());
+ else
+ _plugin_name_label->set_text("(Unknown)");
}
}
diff --git a/src/gui/PatchPropertiesWindow.cpp b/src/gui/PatchPropertiesWindow.cpp
index caf81452..055c8386 100644
--- a/src/gui/PatchPropertiesWindow.cpp
+++ b/src/gui/PatchPropertiesWindow.cpp
@@ -89,11 +89,11 @@ void
PatchPropertiesWindow::ok_clicked()
{
App::instance().engine()->set_property(_patch_model->path(), "doap:name",
- Atom(_name_entry->get_text()));
+ Atom(Atom::STRING, _name_entry->get_text()));
App::instance().engine()->set_property(_patch_model->path(), "dc:creator",
- Atom(_author_entry->get_text()));
+ Atom(Atom::STRING, _author_entry->get_text()));
App::instance().engine()->set_property(_patch_model->path(), "dc:description",
- Atom(_textview->get_buffer()->get_text()));
+ Atom(Atom::STRING, _textview->get_buffer()->get_text()));
hide();
}
diff --git a/src/gui/UploadPatchWindow.cpp b/src/gui/UploadPatchWindow.cpp
index bb45cc71..874a4b43 100644
--- a/src/gui/UploadPatchWindow.cpp
+++ b/src/gui/UploadPatchWindow.cpp
@@ -239,8 +239,8 @@ UploadPatchWindow::upload_clicked()
Glib::ustring short_name = _short_name_entry->get_text();
GraphObject::Variables extra_rdf;
- extra_rdf["lv2:symbol"] = Atom(symbol);
- extra_rdf["doap:name"] = Atom(short_name);
+ extra_rdf["lv2:symbol"] = Atom(Atom::STRING, symbol);
+ extra_rdf["doap:name"] = Atom(Atom::STRING, short_name);
_response = 0;
_progress_pct = 0;