summaryrefslogtreecommitdiffstats
path: root/src/gui/App.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-03-28 09:47:19 +0000
committerDavid Robillard <d@drobilla.net>2015-03-28 09:47:19 +0000
commitc0da1cf368b7d43c9c886b81768b4a62a07fae3f (patch)
tree83b651a2b680e32b990dd1e1909156aee475a181 /src/gui/App.cpp
parentd0b4376df39e95cb9389f5c42fc1c2333e8c0c97 (diff)
downloadingen-c0da1cf368b7d43c9c886b81768b4a62a07fae3f.tar.gz
ingen-c0da1cf368b7d43c9c886b81768b4a62a07fae3f.tar.bz2
ingen-c0da1cf368b7d43c9c886b81768b4a62a07fae3f.zip
Unify value widgets in properties dialog.
This shows the fancy URI selector for URI properties, and can show numeric controls for the property-to-add. The ontologies need some work, along with smarter widget creation, before the latter will actually be useful. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5648 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/App.cpp')
-rw-r--r--src/gui/App.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp
index 1bb9ba4d..65f5c90a 100644
--- a/src/gui/App.cpp
+++ b/src/gui/App.cpp
@@ -44,6 +44,7 @@
#include "MessagesWindow.hpp"
#include "NodeModule.hpp"
#include "Port.hpp"
+#include "RDFS.hpp"
#include "Style.hpp"
#include "SubgraphModule.hpp"
#include "ThreadedLoader.hpp"
@@ -236,6 +237,15 @@ App::set_property(const Raul::URI& subject,
}
void
+App::set_tooltip(Gtk::Widget* widget, const LilvNode* node)
+{
+ const std::string comment = RDFS::comment(_world, node);
+ if (!comment.empty()) {
+ widget->set_tooltip_text(comment);
+ }
+}
+
+void
App::property_change(const Raul::URI& subject,
const Raul::URI& key,
const Atom& value)