summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/PatchCanvas.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-04 21:45:20 +0000
committerDavid Robillard <d@drobilla.net>2006-10-04 21:45:20 +0000
commit30cb85c307b4c1273791721a782337742ade222c (patch)
tree020932d6f50ebbcd813c58f6f23e85a293587665 /src/progs/ingenuity/PatchCanvas.h
parent32261ba465be203f973a0e126672b8d7188ba327 (diff)
downloadingen-30cb85c307b4c1273791721a782337742ade222c.tar.gz
ingen-30cb85c307b4c1273791721a782337742ade222c.tar.bz2
ingen-30cb85c307b4c1273791721a782337742ade222c.zip
Moved generic utility stuff to new library "raul".
git-svn-id: http://svn.drobilla.net/lad/ingen@156 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/PatchCanvas.h')
-rw-r--r--src/progs/ingenuity/PatchCanvas.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/progs/ingenuity/PatchCanvas.h b/src/progs/ingenuity/PatchCanvas.h
index 7074c785..c91bb6ec 100644
--- a/src/progs/ingenuity/PatchCanvas.h
+++ b/src/progs/ingenuity/PatchCanvas.h
@@ -21,8 +21,8 @@
#include <boost/shared_ptr.hpp>
#include <flowcanvas/FlowCanvas.h>
#include <flowcanvas/Module.h>
-#include "util/CountedPtr.h"
-#include "util/Path.h"
+#include "raul/SharedPtr.h"
+#include "raul/Path.h"
#include "ConnectionModel.h"
#include "PatchModel.h"
#include "NodeModule.h"
@@ -49,7 +49,7 @@ class NodeModule;
class PatchCanvas : public LibFlowCanvas::FlowCanvas
{
public:
- PatchCanvas(CountedPtr<PatchModel> patch, int width, int height);
+ PatchCanvas(SharedPtr<PatchModel> patch, int width, int height);
virtual ~PatchCanvas() {}
@@ -60,11 +60,11 @@ public:
void build();
- void add_node(CountedPtr<NodeModel> nm);
- void remove_node(CountedPtr<NodeModel> nm);
- void add_port(CountedPtr<PortModel> pm);
- void remove_port(CountedPtr<PortModel> pm);
- void connection(CountedPtr<ConnectionModel> cm);
+ void add_node(SharedPtr<NodeModel> nm);
+ void remove_node(SharedPtr<NodeModel> nm);
+ void add_port(SharedPtr<PortModel> pm);
+ void remove_port(SharedPtr<PortModel> pm);
+ void connection(SharedPtr<ConnectionModel> cm);
void disconnection(const Path& src_port_path, const Path& dst_port_path);
void get_new_module_location(double& x, double& y);
@@ -92,7 +92,7 @@ private:
void disconnect(boost::shared_ptr<LibFlowCanvas::Port> src,
boost::shared_ptr<LibFlowCanvas::Port> dst);
- CountedPtr<PatchModel> m_patch;
+ SharedPtr<PatchModel> m_patch;
int m_last_click_x;
int m_last_click_y;