From a18022d4243de7b2093507c574689c7a17c82bb9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 11 Oct 2008 21:02:10 +0000 Subject: Add control randomize feature (node context menu). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1648 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/NodeModel.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/client/NodeModel.hpp') diff --git a/src/client/NodeModel.hpp b/src/client/NodeModel.hpp index 03afc17c..9b6efde8 100644 --- a/src/client/NodeModel.hpp +++ b/src/client/NodeModel.hpp @@ -62,7 +62,7 @@ public: uint32_t num_ports() const { return _ports.size(); } const Ports& ports() const { return _ports; } - void port_value_range(SharedPtr port, float& min, float& max); + void port_value_range(SharedPtr port, float& min, float& max) const; // Signals sigc::signal > signal_new_port; @@ -89,9 +89,11 @@ protected: Ports _ports; ///< Vector of ports (not a Table to preserve order) string _plugin_uri; ///< Plugin URI (if PluginModel is unknown) SharedPtr _plugin; ///< The plugin this node is an instance of - uint32_t _num_values; ///< Size of _min_values and _max_values - float* _min_values; ///< Port min values (cached for LV2) - float* _max_values; ///< Port max values (cached for LV2) + +private: + mutable uint32_t _num_values; ///< Size of _min_values and _max_values + mutable float* _min_values; ///< Port min values (cached for LV2) + mutable float* _max_values; ///< Port max values (cached for LV2) }; -- cgit v1.2.1