From 77a9beca75debd2d87d735fc4fe847694eee6f13 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 25 Feb 2010 20:40:13 +0000 Subject: Work on contexts and polymorphic ports. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2492 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/App.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/gui/App.hpp') diff --git a/src/gui/App.hpp b/src/gui/App.hpp index 78839772..3ac881f6 100644 --- a/src/gui/App.hpp +++ b/src/gui/App.hpp @@ -35,11 +35,13 @@ namespace Ingen { class EngineInterface; class ClientInterface; class World; + class Port; } namespace Client { + class ClientStore; class PatchModel; class PluginModel; - class ClientStore; + class PortModel; class SigClientInterface; } namespace Serialisation { @@ -48,6 +50,7 @@ namespace Ingen { } namespace Ingen { + namespace GUI { class MessagesWindow; @@ -88,6 +91,7 @@ public: void port_activity(Port* port); void activity_port_destroyed(Port* port); + bool can_control(const Shared::Port* port) const; bool signal() const { return _enable_signal; } bool disable_signals() { bool old = _enable_signal; _enable_signal = false; return old; } @@ -113,8 +117,8 @@ public: static void init(Ingen::Shared::World* world); static void run(); - inline Ingen::Shared::World* world() { return _world; } - inline Ingen::Shared::LV2URIMap& uris() { return *_world->uris; } + inline Ingen::Shared::World* world() const { return _world; } + inline Ingen::Shared::LV2URIMap& uris() const { return *_world->uris; } protected: -- cgit v1.2.1