diff base/View.h @ 30:a6ef94ecbe74

* As previous commit
author Chris Cannam
date Fri, 17 Feb 2006 18:11:08 +0000
parents 8460b3bf8f04
children 4afaf0df4d51
line wrap: on
line diff
--- a/base/View.h	Fri Feb 17 18:04:26 2006 +0000
+++ b/base/View.h	Fri Feb 17 18:11:08 2006 +0000
@@ -159,20 +159,23 @@
     virtual void setPlaybackFollow(PlaybackFollowMode m);
     virtual PlaybackFollowMode getPlaybackFollow() const { return m_followPlay; }
 
+    typedef PropertyContainer::PropertyName PropertyName;
+
     // We implement the PropertyContainer API, although we don't
     // actually subclass PropertyContainer.  We have our own
     // PropertyContainer that we can return on request that just
     // delegates back to us.
     virtual PropertyContainer::PropertyList getProperties() const;
-    virtual PropertyContainer::PropertyType getPropertyType(const PropertyContainer::PropertyName &) const;
-    virtual int getPropertyRangeAndValue(const PropertyContainer::PropertyName &,
+    virtual PropertyContainer::PropertyType getPropertyType(const PropertyName &) const;
+    virtual int getPropertyRangeAndValue(const PropertyName &,
 					 int *min, int *max) const;
-    virtual QString getPropertyValueLabel(const PropertyContainer::PropertyName &,
+    virtual QString getPropertyValueLabel(const PropertyName &,
 					  int value) const;
-    virtual void setProperty(const PropertyContainer::PropertyName &, int value);
+    virtual void setProperty(const PropertyName &, int value);
     virtual QString getPropertyContainerName() const {
 	return objectName();
     }
+    virtual QString getPropertyContainerIconName() const = 0;
 
     virtual size_t getPropertyContainerCount() const;
 
@@ -187,6 +190,7 @@
     void propertyContainerRemoved(PropertyContainer *pc);
     void propertyContainerPropertyChanged(PropertyContainer *pc);
     void propertyContainerNameChanged(PropertyContainer *pc);
+    void propertyChanged(PropertyName);
 
     void centreFrameChanged(void *, unsigned long, bool);
     void zoomLevelChanged(void *, unsigned long, bool);
@@ -294,7 +298,7 @@
 	return m_v->getPropertyContainerName();
     }
     QString getPropertyContainerIconName() const {
-	return "view";
+	return m_v->getPropertyContainerIconName();
     }
 
 public slots: