diff options
author | David Robillard <d@drobilla.net> | 2011-05-14 18:43:34 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-14 18:43:34 +0000 |
commit | 2b7f092b857df8cde0cd4680e9de55f4cb98596b (patch) | |
tree | 221203a26c8e6a5b902f55ba87c40f36f886003f /libs/ardour/ardour/plugin.h | |
parent | c78528dcea03a61685ad0586eaa6302847af6fe9 (diff) |
Generic scale points API.
Hide scale points implementation inside specific Plugin subclass.
Don't needlessley/slowly get scale points twice for each port while building UI.
Remove dependence on specific plugin types from GenericPluginUI.
git-svn-id: svn://localhost/ardour2/branches/3.0@9511 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/plugin.h')
-rw-r--r-- | libs/ardour/ardour/plugin.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/ardour/plugin.h b/libs/ardour/ardour/plugin.h index d8f33c21f4..bc796712af 100644 --- a/libs/ardour/ardour/plugin.h +++ b/libs/ardour/ardour/plugin.h @@ -134,6 +134,13 @@ class Plugin : public PBD::StatefulDestructible, public Latent virtual bool parameter_is_input(uint32_t) const = 0; virtual bool parameter_is_output(uint32_t) const = 0; + typedef std::map<const std::string, const float> ScalePoints; + + virtual boost::shared_ptr<ScalePoints> + get_scale_points(uint32_t port_index) const { + return boost::shared_ptr<ScalePoints>(); + } + void realtime_handle_transport_stopped (); struct PresetRecord { |