summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/PortPropertiesWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-05-01 04:01:04 +0000
committerDavid Robillard <d@drobilla.net>2007-05-01 04:01:04 +0000
commit3e5fef2e59776923f175a4260adf18c559ab861f (patch)
tree5c83291c595830ac472e5661de83d4560513a9d6 /src/progs/ingenuity/PortPropertiesWindow.cpp
parent71b5ad39baceacb5d7aa75050fd8c76bfb16fb76 (diff)
downloadingen-3e5fef2e59776923f175a4260adf18c559ab861f.tar.gz
ingen-3e5fef2e59776923f175a4260adf18c559ab861f.tar.bz2
ingen-3e5fef2e59776923f175a4260adf18c559ab861f.zip
Converted Raul (and thus Ingen and Machina) to use Redland over Raptor/Rasqal independently.
Fixed patch loading for Ingen (local only, still something wrong with remote...). git-svn-id: http://svn.drobilla.net/lad/ingen@486 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/PortPropertiesWindow.cpp')
-rw-r--r--src/progs/ingenuity/PortPropertiesWindow.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/progs/ingenuity/PortPropertiesWindow.cpp b/src/progs/ingenuity/PortPropertiesWindow.cpp
index b7a78ebc..3a490a74 100644
--- a/src/progs/ingenuity/PortPropertiesWindow.cpp
+++ b/src/progs/ingenuity/PortPropertiesWindow.cpp
@@ -66,8 +66,8 @@ PortPropertiesWindow::init(ControlGroup* control, SharedPtr<PortModel> pm)
float min = 0.0f;
float max = 1.0f;
- const Atom& min_atom = pm->get_metadata("min");
- const Atom& max_atom = pm->get_metadata("max");
+ const Atom& min_atom = pm->get_metadata("ingen:minimum");
+ const Atom& max_atom = pm->get_metadata("ingen_maximum");
if (min_atom.type() == Atom::FLOAT && max_atom.type() == Atom::FLOAT) {
min = min_atom.get_float();
max = max_atom.get_float();
@@ -108,9 +108,9 @@ PortPropertiesWindow::metadata_update(const string& key, const Atom& value)
{
_enable_signal = false;
- if ( (key == "min") && value.type() == Atom::FLOAT)
+ if ( (key == "ingen:minimum") && value.type() == Atom::FLOAT)
_min_spinner->set_value(value.get_float());
- else if ( (key == "max") && value.type() == Atom::FLOAT)
+ else if ( (key == "ingen:maximum") && value.type() == Atom::FLOAT)
_max_spinner->set_value(value.get_float());
_enable_signal = true;
@@ -131,7 +131,7 @@ PortPropertiesWindow::min_changed()
_control->set_range(min, max);
if (_enable_signal)
- App::instance().engine()->set_metadata(_port_model->path(), "min", min);
+ App::instance().engine()->set_metadata(_port_model->path(), "ingen:minimum", min);
}
@@ -149,15 +149,15 @@ PortPropertiesWindow::max_changed()
_control->set_range(min, max);
if (_enable_signal)
- App::instance().engine()->set_metadata(_port_model->path(), "max", max);
+ App::instance().engine()->set_metadata(_port_model->path(), "ingen:maximum", max);
}
void
PortPropertiesWindow::cancel()
{
- App::instance().engine()->set_metadata(_port_model->path(), "min", _initial_min);
- App::instance().engine()->set_metadata(_port_model->path(), "max", _initial_max);
+ App::instance().engine()->set_metadata(_port_model->path(), "ingen:minimum", _initial_min);
+ App::instance().engine()->set_metadata(_port_model->path(), "ingen:maximum", _initial_max);
delete this;
}