fixes for 98% of all the warnings/errors reported by OS X gcc on tiger
[ardour.git] / libs / ardour / ardour / plugin.h
index d8f33c21f45ad5a54018a2c32788d57c70c1c348..fcd7d6d19b81c77f6d59fe07d7973e9840734349 100644 (file)
@@ -116,7 +116,7 @@ class Plugin : public PBD::StatefulDestructible, public Latent
        virtual uint32_t nth_parameter (uint32_t which, bool& ok) const = 0;
        virtual void activate () = 0;
        virtual void deactivate () = 0;
-        virtual void flush () { deactivate(); activate(); }
+       virtual void flush () { deactivate(); activate(); }
 
        virtual int set_block_size (pframes_t nframes) = 0;
 
@@ -134,6 +134,12 @@ 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 {
@@ -143,7 +149,7 @@ class Plugin : public PBD::StatefulDestructible, public Latent
                bool operator!= (PresetRecord const & a) const {
                        return uri != a.uri || label != a.label;
                }
-               
+
                std::string uri;
                std::string label;
                bool user;
@@ -153,7 +159,7 @@ class Plugin : public PBD::StatefulDestructible, public Latent
        void remove_preset (std::string);
 
        virtual bool load_preset (PresetRecord);
-       
+
        const PresetRecord * preset_by_label (const std::string &);
        const PresetRecord * preset_by_uri (const std::string &);
 
@@ -165,15 +171,15 @@ class Plugin : public PBD::StatefulDestructible, public Latent
        PresetRecord last_preset () const {
                return _last_preset;
        }
-       
+
        bool parameter_changed_since_last_preset () const {
                return _parameter_changed_since_last_preset;
        }
-       
+
        virtual int first_user_preset_index () const {
                return 0;
        }
-       
+
        /** Emitted when a preset is added or removed, respectively */
        PBD::Signal0<void> PresetAdded;
        PBD::Signal0<void> PresetRemoved;
@@ -218,7 +224,7 @@ class Plugin : public PBD::StatefulDestructible, public Latent
        cycles_t cycles() const { return _cycles; }
 
 protected:
-       
+
        friend class PluginInsert;
        friend struct PluginInsert::PluginControl;