diff options
author | David Robillard <d@drobilla.net> | 2009-05-13 04:05:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-13 04:05:32 +0000 |
commit | 19928bb583e72802746b89e322f71ecc0fcb7427 (patch) | |
tree | 95912dc84d8c9dcf57939398514feaf148c1cd63 /src/gui/ControlPanel.cpp | |
parent | 96f839e64de70a23210847e322d24690299287fe (diff) | |
download | ingen-19928bb583e72802746b89e322f71ecc0fcb7427.tar.gz ingen-19928bb583e72802746b89e322f71ecc0fcb7427.tar.bz2 ingen-19928bb583e72802746b89e322f71ecc0fcb7427.zip |
The great ID refactoring of 2009.
Path is now actually URI (scheme path: for now).
Therefore ingen nodes and such live in the same namespace as ... well, everything.
Including plugins.
Thar be profit, laddies.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1992 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/ControlPanel.cpp')
-rw-r--r-- | src/gui/ControlPanel.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/ControlPanel.cpp b/src/gui/ControlPanel.cpp index 0d7feafd..ccfb54d2 100644 --- a/src/gui/ControlPanel.cpp +++ b/src/gui/ControlPanel.cpp @@ -25,6 +25,7 @@ #include "GladeFactory.hpp" using namespace std; +using namespace Raul; namespace Ingen { namespace GUI { @@ -251,17 +252,17 @@ ControlPanel::specific_voice_selected() void -ControlPanel::parent_property_changed(const std::string& predicate, const Raul::Atom& value) +ControlPanel::parent_property_changed(const Raul::URI& predicate, const Raul::Atom& value) { - if (predicate == "ingen:polyphony" && value.type() == Atom::INT) + if (predicate.str() == "ingen:polyphony" && value.type() == Atom::INT) _voice_spinbutton->set_range(0, value.get_int32() - 1); } void -ControlPanel::variable_changed(const std::string& predicate, const Raul::Atom& value) +ControlPanel::variable_changed(const Raul::URI& predicate, const Raul::Atom& value) { - if (predicate == "ingen:polyphonic" && value.type() == Atom::BOOL) { + if (predicate.str() == "ingen:polyphonic" && value.type() == Atom::BOOL) { if (value.get_bool()) _voice_control_box->show(); else |