From 698c38587bd4f0133a132dc363098ff8298ec47b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 11 May 2009 18:05:24 +0000 Subject: * New ontology. * Display human names on patch ports on creation, if enabled. * Fix copy/paste of subpatches. * Split properties into "properties" (class properties) and "variables" (instance properties). * Names are kind of a legacy leftover... * Remove special set poly / enable / etc events in favour of just setting properties (less API, extensible, RDF compatible). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1973 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PatchPortModule.hpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/gui/PatchPortModule.hpp') diff --git a/src/gui/PatchPortModule.hpp b/src/gui/PatchPortModule.hpp index 60a50738..62c968ef 100644 --- a/src/gui/PatchPortModule.hpp +++ b/src/gui/PatchPortModule.hpp @@ -50,23 +50,31 @@ class PatchPortModule : public FlowCanvas::Module { public: static boost::shared_ptr create(boost::shared_ptr canvas, - SharedPtr port); + SharedPtr model, + bool human); virtual void store_location(); + void show_human_names(bool b); + + void set_name(const std::string& n); - SharedPtr port() const { return _port; } + SharedPtr port() const { return _model; } protected: - PatchPortModule(boost::shared_ptr canvas, SharedPtr port); + PatchPortModule(boost::shared_ptr canvas, SharedPtr model); void create_menu(); void set_selected(bool b); + + void set_port(SharedPtr port) { _port = port; } void set_variable(const std::string& predicate, const Raul::Atom& value); void set_property(const std::string& predicate, const Raul::Atom& value); - SharedPtr _port; + SharedPtr _model; + SharedPtr _port; PortMenu* _menu; + bool _human_name_visible; }; -- cgit v1.2.1