diff options
Diffstat (limited to 'src/gui/App.cpp')
-rw-r--r-- | src/gui/App.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp index 3bf45761..968d5940 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -30,10 +30,11 @@ #include "module/World.hpp" #include "engine/Engine.hpp" #include "interface/EngineInterface.hpp" +#include "shared/runtime_paths.hpp" +#include "shared/LV2URIMap.hpp" #include "client/ObjectModel.hpp" #include "client/PatchModel.hpp" #include "client/ClientStore.hpp" -#include "shared/runtime_paths.hpp" #include "NodeModule.hpp" #include "ControlPanel.hpp" #include "SubpatchModule.hpp" @@ -389,6 +390,16 @@ App::icon_destroyed(void* data) } +bool +App::can_control(const Shared::Port* port) const +{ + return port->is_a(PortType::CONTROL) + || (port->is_a(PortType::VALUE) + && (port->supports(uris().object_class_float32) + || port->supports(uris().object_class_string))); +} + + } // namespace GUI } // namespace Ingen |