comparison base/View.h @ 30:a6ef94ecbe74

* As previous commit
author Chris Cannam
date Fri, 17 Feb 2006 18:11:08 +0000
parents 8460b3bf8f04
children 4afaf0df4d51
comparison
equal deleted inserted replaced
29:8460b3bf8f04 30:a6ef94ecbe74
157 PlaybackIgnore 157 PlaybackIgnore
158 }; 158 };
159 virtual void setPlaybackFollow(PlaybackFollowMode m); 159 virtual void setPlaybackFollow(PlaybackFollowMode m);
160 virtual PlaybackFollowMode getPlaybackFollow() const { return m_followPlay; } 160 virtual PlaybackFollowMode getPlaybackFollow() const { return m_followPlay; }
161 161
162 typedef PropertyContainer::PropertyName PropertyName;
163
162 // We implement the PropertyContainer API, although we don't 164 // We implement the PropertyContainer API, although we don't
163 // actually subclass PropertyContainer. We have our own 165 // actually subclass PropertyContainer. We have our own
164 // PropertyContainer that we can return on request that just 166 // PropertyContainer that we can return on request that just
165 // delegates back to us. 167 // delegates back to us.
166 virtual PropertyContainer::PropertyList getProperties() const; 168 virtual PropertyContainer::PropertyList getProperties() const;
167 virtual PropertyContainer::PropertyType getPropertyType(const PropertyContainer::PropertyName &) const; 169 virtual PropertyContainer::PropertyType getPropertyType(const PropertyName &) const;
168 virtual int getPropertyRangeAndValue(const PropertyContainer::PropertyName &, 170 virtual int getPropertyRangeAndValue(const PropertyName &,
169 int *min, int *max) const; 171 int *min, int *max) const;
170 virtual QString getPropertyValueLabel(const PropertyContainer::PropertyName &, 172 virtual QString getPropertyValueLabel(const PropertyName &,
171 int value) const; 173 int value) const;
172 virtual void setProperty(const PropertyContainer::PropertyName &, int value); 174 virtual void setProperty(const PropertyName &, int value);
173 virtual QString getPropertyContainerName() const { 175 virtual QString getPropertyContainerName() const {
174 return objectName(); 176 return objectName();
175 } 177 }
178 virtual QString getPropertyContainerIconName() const = 0;
176 179
177 virtual size_t getPropertyContainerCount() const; 180 virtual size_t getPropertyContainerCount() const;
178 181
179 virtual const PropertyContainer *getPropertyContainer(size_t i) const; 182 virtual const PropertyContainer *getPropertyContainer(size_t i) const;
180 virtual PropertyContainer *getPropertyContainer(size_t i); 183 virtual PropertyContainer *getPropertyContainer(size_t i);
185 signals: 188 signals:
186 void propertyContainerAdded(PropertyContainer *pc); 189 void propertyContainerAdded(PropertyContainer *pc);
187 void propertyContainerRemoved(PropertyContainer *pc); 190 void propertyContainerRemoved(PropertyContainer *pc);
188 void propertyContainerPropertyChanged(PropertyContainer *pc); 191 void propertyContainerPropertyChanged(PropertyContainer *pc);
189 void propertyContainerNameChanged(PropertyContainer *pc); 192 void propertyContainerNameChanged(PropertyContainer *pc);
193 void propertyChanged(PropertyName);
190 194
191 void centreFrameChanged(void *, unsigned long, bool); 195 void centreFrameChanged(void *, unsigned long, bool);
192 void zoomLevelChanged(void *, unsigned long, bool); 196 void zoomLevelChanged(void *, unsigned long, bool);
193 197
194 public slots: 198 public slots:
292 } 296 }
293 QString getPropertyContainerName() const { 297 QString getPropertyContainerName() const {
294 return m_v->getPropertyContainerName(); 298 return m_v->getPropertyContainerName();
295 } 299 }
296 QString getPropertyContainerIconName() const { 300 QString getPropertyContainerIconName() const {
297 return "view"; 301 return m_v->getPropertyContainerIconName();
298 } 302 }
299 303
300 public slots: 304 public slots:
301 virtual void setProperty(const PropertyName &n, int value) { 305 virtual void setProperty(const PropertyName &n, int value) {
302 m_v->setProperty(n, value); 306 m_v->setProperty(n, value);