summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/NodeControlWindow.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-13 06:11:25 +0000
committerDavid Robillard <d@drobilla.net>2006-09-13 06:11:25 +0000
commite5675ebfeb93175e16762d0a078bd51d15d05f63 (patch)
tree189249ed9014e4c482cfaed0d6af28ced68570ca /src/progs/ingenuity/NodeControlWindow.h
parent23b7568ab7a87a79c186b8ddf3d3db4f1f934b06 (diff)
downloadingen-e5675ebfeb93175e16762d0a078bd51d15d05f63.tar.gz
ingen-e5675ebfeb93175e16762d0a078bd51d15d05f63.tar.bz2
ingen-e5675ebfeb93175e16762d0a078bd51d15d05f63.zip
Heavy-duty redesign of client library and GUI (now fully signal driven with clean Model/View separation).
Smarter, centralized window creation/management (should make window unification easy (panes?)). Typed metadata system, no more fugly string conversion of floats. Supports OSC fundamental types string, int, float, blob for now (though blob isn't working over the wire yet). git-svn-id: http://svn.drobilla.net/lad/ingen@131 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/NodeControlWindow.h')
-rw-r--r--src/progs/ingenuity/NodeControlWindow.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/progs/ingenuity/NodeControlWindow.h b/src/progs/ingenuity/NodeControlWindow.h
index b30223d7..91ccbc49 100644
--- a/src/progs/ingenuity/NodeControlWindow.h
+++ b/src/progs/ingenuity/NodeControlWindow.h
@@ -14,7 +14,6 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-
#ifndef NODECONTROLWINDOW_H
#define NODECONTROLWINDOW_H
@@ -23,12 +22,17 @@
#include <gtkmm.h>
#include <libglademm.h>
#include <sigc++/sigc++.h>
+#include "util/CountedPtr.h"
using std::string; using std::vector;
+namespace Ingen { namespace Client {
+ class NodeModel;
+} }
+using Ingen::Client::NodeModel;
+
namespace Ingenuity {
class ControlGroup;
-class NodeController;
class ControlPanel;
@@ -39,10 +43,12 @@ class ControlPanel;
class NodeControlWindow : public Gtk::Window
{
public:
- NodeControlWindow(NodeController* node, size_t poly);
- NodeControlWindow(NodeController* node, ControlPanel* panel);
+ NodeControlWindow(CountedPtr<NodeModel> node, size_t poly);
+ NodeControlWindow(CountedPtr<NodeModel> node, ControlPanel* panel);
virtual ~NodeControlWindow();
+ CountedPtr<NodeModel> node() { return m_node; }
+
ControlPanel* control_panel() const { return m_control_panel; }
void resize();
@@ -52,9 +58,9 @@ protected:
void on_hide();
private:
- NodeController* m_node;
- ControlPanel* m_control_panel;
- bool m_callback_enabled;
+ CountedPtr<NodeModel> m_node;
+ ControlPanel* m_control_panel;
+ bool m_callback_enabled;
bool m_position_stored;
int m_x;