summaryrefslogtreecommitdiffstats
path: root/src/progs/gtk/PortController.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-17 23:47:42 +0000
committerDavid Robillard <d@drobilla.net>2006-06-17 23:47:42 +0000
commitc6d42dbbf9f6872d4fed67aecde8f7a65effab08 (patch)
tree424f7ec643cf81b8282e6404ac56d81e4ef34021 /src/progs/gtk/PortController.h
parent471c9e43493ab1d3a83ed6a8ca53bd818a2ed275 (diff)
downloadingen-c6d42dbbf9f6872d4fed67aecde8f7a65effab08.tar.gz
ingen-c6d42dbbf9f6872d4fed67aecde8f7a65effab08.tar.bz2
ingen-c6d42dbbf9f6872d4fed67aecde8f7a65effab08.zip
New patch ports interface
git-svn-id: http://svn.drobilla.net/lad/grauph@48 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/gtk/PortController.h')
-rw-r--r--src/progs/gtk/PortController.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/progs/gtk/PortController.h b/src/progs/gtk/PortController.h
index ee4dc41f..34919129 100644
--- a/src/progs/gtk/PortController.h
+++ b/src/progs/gtk/PortController.h
@@ -20,6 +20,7 @@
#include <string>
#include <gtkmm.h>
#include "GtkObjectController.h"
+#include "OmPortModule.h"
using std::string;
using namespace LibOmClient;
@@ -33,8 +34,11 @@ namespace OmGtk {
class Controller;
class OmPort;
+class OmPatchPort;
class ControlPanel;
class OmModule;
+class OmPortModule;
+class OmFlowCanvas;
/** Controller for a port on a (non-patch) node.
@@ -49,6 +53,8 @@ public:
virtual void destroy();
+ virtual void create_module(OmFlowCanvas* canvas, double x, double y);
+ OmPortModule* module() { return m_module; }
/*
virtual void add_to_store();
virtual void remove_from_store();
@@ -63,10 +69,12 @@ public:
ControlPanel* control_panel() const { return m_control_panel; }
void set_control_panel(ControlPanel* cp);
- CountedPtr<PortModel> port_model() const { return CountedPtr<PortModel>((PortModel*)m_model.get()); }
+ CountedPtr<PortModel> port_model() const { return m_model; }
private:
- OmPort* m_port; ///< Canvas module port
+ OmPatchPort* m_patch_port; ///< Port on m_module
+ OmPortModule* m_module; ///< Port pseudo-module (for patch ports only)
+ OmPort* m_port; ///< Port on some other canvas module
ControlPanel* m_control_panel; ///< Control panel that contains this port
};