From 763bba9de67fb1bd06658a0bac91440727ee5a51 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 8 Oct 2007 16:30:57 +0000 Subject: SharedPtr-ify engine side store. Fix reattaching to engine. Fix connection paths. Remove last dependencies on client (model) library from Serialiser. Fix Raul::PathTable::find_descendants_end. git-svn-id: http://svn.drobilla.net/lad/ingen@847 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/PatchModel.hpp | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'src/libs/client/PatchModel.hpp') diff --git a/src/libs/client/PatchModel.hpp b/src/libs/client/PatchModel.hpp index 642bf34f..5d375faf 100644 --- a/src/libs/client/PatchModel.hpp +++ b/src/libs/client/PatchModel.hpp @@ -22,8 +22,10 @@ #include #include #include -#include "NodeModel.hpp" #include +#include "interface/Patch.hpp" +#include "NodeModel.hpp" + #include "ConnectionModel.hpp" using std::list; using std::string; @@ -38,22 +40,21 @@ class Store; * * \ingroup IngenClient */ -class PatchModel : public NodeModel +class PatchModel : public NodeModel, public Ingen::Shared::Patch { public: - typedef std::list > Connections; - const Connections& connections() const { return _connections; } - SharedPtr get_connection(const string& src_port_path, const string& dst_port_path) const; - //SharedPtr get_node(const string& node_name) const; + SharedPtr get_connection(const string& src_port_path, + const string& dst_port_path) const; void set_filename(const string& filename) { _filename = filename; } - size_t poly() const { return _poly; } - const string& filename() const { return _filename; } - bool enabled() const { return _enabled; } - bool polyphonic() const; + size_t poly() const { return _poly; } + const string& filename() const { return _filename; } + bool enabled() const { return _enabled; } + uint32_t internal_polyphony() const { return _poly; } + bool polyphonic() const; /** "editable" = arranging,connecting,adding,deleting,etc * not editable (control mode) you can just change controllers (performing) @@ -96,13 +97,10 @@ private: void add_connection(SharedPtr cm); void remove_connection(const string& src_port_path, const string& dst_port_path); - void rename_node(const Path& old_path, const Path& new_path); - void rename_node_port(const Path& old_path, const Path& new_path); - Connections _connections; string _filename; bool _enabled; - size_t _poly; + uint32_t _poly; bool _editable; }; -- cgit v1.2.1