summaryrefslogtreecommitdiffstats
path: root/src/gui/Port.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-23 19:55:13 +0000
committerDavid Robillard <d@drobilla.net>2013-02-23 19:55:13 +0000
commit6b6cb56b2ceab509569bfca247f108f2be5e25c0 (patch)
tree5a46eee0c3f518fa7bb20e6a8784e5bd3ba04598 /src/gui/Port.cpp
parent5a6aafff8dda9dddce479a2ad86edb933c9688c3 (diff)
downloadingen-6b6cb56b2ceab509569bfca247f108f2be5e25c0.tar.gz
ingen-6b6cb56b2ceab509569bfca247f108f2be5e25c0.tar.bz2
ingen-6b6cb56b2ceab509569bfca247f108f2be5e25c0.zip
Move Atom implementation out of Raul so it can depend on LV2.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5076 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/Port.cpp')
-rw-r--r--src/gui/Port.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index 0ab079c5..253a395b 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -49,7 +49,7 @@ Port::create(App& app,
Glib::ustring label;
if (app.world()->conf().option("port-labels").get<int32_t>()) {
if (human_name) {
- const Raul::Atom& name = pm->get_property(app.uris().lv2_name);
+ const Atom& name = pm->get_property(app.uris().lv2_name);
if (name.type() == app.forge().String) {
label = name.ptr<char>();
} else {
@@ -154,7 +154,7 @@ Port::moved()
void
Port::on_value_changed(double value)
{
- const Raul::Atom atom = _app.forge().make(float(value));
+ const Atom atom = _app.forge().make(float(value));
if (atom != model()->value()) {
Ingen::World* const world = _app.world();
_app.interface()->set_property(model()->uri(),
@@ -171,7 +171,7 @@ Port::on_value_changed(double value)
}
void
-Port::value_changed(const Raul::Atom& value)
+Port::value_changed(const Atom& value)
{
if (!_pressed && value.type() == _app.forge().Float) {
Ganv::Port::set_control_value(value.get<float>());
@@ -224,7 +224,7 @@ Port::build_uri_menu()
Gtk::Menu* menu = Gtk::manage(new Gtk::Menu());
// Get the port designation, which should be a rdf:Property
- const Raul::Atom& designation_atom = model()->get_property(
+ const Atom& designation_atom = model()->get_property(
_app.uris().lv2_designation);
if (!designation_atom.is_valid()) {
return NULL;
@@ -359,7 +359,7 @@ peak_color(float peak)
/* End peak colour stuff */
void
-Port::activity(const Raul::Atom& value)
+Port::activity(const Atom& value)
{
if (model()->is_a(_app.uris().lv2_AudioPort)) {
set_fill_color(peak_color(value.get<float>()));
@@ -403,7 +403,7 @@ Port::port_properties_changed()
}
void
-Port::property_changed(const Raul::URI& key, const Raul::Atom& value)
+Port::property_changed(const Raul::URI& key, const Atom& value)
{
const URIs& uris = _app.uris();
if (value.type() == uris.forge.Float) {