summaryrefslogtreecommitdiffstats
path: root/src/progs/gtk/PatchController.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-11 03:17:16 +0000
committerDavid Robillard <d@drobilla.net>2006-06-11 03:17:16 +0000
commit228279d6717e69ffd2d2a886244179635ac27c2b (patch)
treed8a25007daeda686f07aefc8b5fcc9486040c536 /src/progs/gtk/PatchController.h
parent9a3d8d0604a2f81e3514e8a1a30aaf41aadf73a2 (diff)
downloadingen-228279d6717e69ffd2d2a886244179635ac27c2b.tar.gz
ingen-228279d6717e69ffd2d2a886244179635ac27c2b.tar.bz2
ingen-228279d6717e69ffd2d2a886244179635ac27c2b.zip
Got store working directly through SigClientInterface
git-svn-id: http://svn.drobilla.net/lad/grauph@22 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/gtk/PatchController.h')
-rw-r--r--src/progs/gtk/PatchController.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/progs/gtk/PatchController.h b/src/progs/gtk/PatchController.h
index de4af5e4..d9491571 100644
--- a/src/progs/gtk/PatchController.h
+++ b/src/progs/gtk/PatchController.h
@@ -20,6 +20,8 @@
#include <string>
#include <gtkmm.h>
#include "NodeController.h"
+#include "PatchModel.h"
+template <class T> class CountedPtr;
namespace LibOmClient {
class PatchModel;
@@ -57,11 +59,13 @@ class NodeController;
class PatchController : public NodeController
{
public:
- PatchController(PatchModel* model);
+ PatchController(CountedPtr<PatchModel> model);
virtual ~PatchController();
+ /*
virtual void add_to_store();
virtual void remove_from_store();
+ */
virtual void destroy();
@@ -101,7 +105,7 @@ public:
void enable();
void disable();
- PatchModel* patch_model() const { return (PatchModel*)m_model; }
+ CountedPtr<PatchModel> patch_model() const { return m_patch_model; }
void enable_controls_menuitem();
void disable_controls_menuitem();
@@ -112,6 +116,8 @@ private:
PatchWindow* m_window; ///< Window currently showing this patch
PatchView* m_patch_view; ///< View (canvas) of this patch
+ CountedPtr<PatchModel> m_patch_model;
+
/** Invisible bin used to store patch view when not shown by a patch window */
Gtk::Alignment m_patch_view_bin;