summaryrefslogtreecommitdiffstats
path: root/src/client/PortModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/PortModel.cpp')
-rw-r--r--src/client/PortModel.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/client/PortModel.cpp b/src/client/PortModel.cpp
index c18378db..af257ebf 100644
--- a/src/client/PortModel.cpp
+++ b/src/client/PortModel.cpp
@@ -21,30 +21,12 @@
namespace Ingen {
namespace Client {
-
-bool
-PortModel::is_logarithmic() const
-{
- const Atom& hint = get_variable("ingen:logarithmic");
- return (hint.is_valid() && hint.get_bool() > 0);
-}
-
-
bool
-PortModel::is_integer() const
+PortModel::has_hint(const std::string& qname) const
{
- const Atom& hint = get_variable("ingen:integer");
+ const Atom& hint = get_variable(qname);
return (hint.is_valid() && hint.get_bool() > 0);
}
-
-
-bool
-PortModel::is_toggle() const
-{
- const Atom& hint = get_variable("ingen:toggled");
- return (hint.is_valid() && hint.get_bool() > 0);
-}
-
void
PortModel::set(SharedPtr<ObjectModel> model)