remove the entire idea of a tabbable for VCA master faders
[ardour.git] / gtk2_ardour / axis_view.h
index 4ce76c92ce52b74c74135614acd40075879011cb..62362f0e4a6bf4a8b92c9706f80d1c012892d27d 100644 (file)
@@ -54,15 +54,12 @@ class AxisView : public virtual Selectable, public PBD::ScopedConnectionList, pu
        virtual std::string name() const = 0;
 
        sigc::signal<void> Hiding;
-       
-       void set_old_order_key (uint32_t ok) { _old_order_key = ok; }
-       uint32_t old_order_key() const { return _old_order_key; }
 
        virtual std::string state_id() const = 0;
        /* for now, we always return properties in string form.
         */
        std::string gui_property (const std::string& property_name) const;
-       
+
        template<typename T> void set_gui_property (const std::string& property_name, const T& value) {
                std::stringstream s;
                s << value;
@@ -71,11 +68,18 @@ class AxisView : public virtual Selectable, public PBD::ScopedConnectionList, pu
                gui_object_state().set_property<T> (state_id(), property_name, value);
        }
 
+       void cleanup_gui_properties () {
+               /* remove related property node from the GUI state */
+               gui_object_state().remove_node (state_id());
+               property_hashtable.clear ();
+       }
+
        bool marked_for_display () const;
        virtual bool set_marked_for_display (bool);
 
        static GUIObjectState& gui_object_state();
-       
+       void clear_property_cache() { property_hashtable.clear(); }
+
   protected:
 
        AxisView (ARDOUR::Session* sess);
@@ -95,7 +99,6 @@ class AxisView : public virtual Selectable, public PBD::ScopedConnectionList, pu
        Gtk::Label name_label;
 
        mutable boost::unordered_map<std::string, std::string> property_hashtable;
-       uint32_t _old_order_key;
 }; /* class AxisView */
 
 #endif /* __ardour_gtk_axis_view_h__ */