comparison base/View.h @ 74:47fd14e29813

* Fix long-standing off-by-1 bug in WaveFileModel that was getting us the wrong values for almost all audio data when merging channels (channel == -1) * Implement cut, copy and paste * Make draw mode work properly in time value layer * Minor fixes to CSV import
author Chris Cannam
date Fri, 07 Apr 2006 17:50:33 +0000
parents e1aad27029e3
children c983dda79f72
comparison
equal deleted inserted replaced
73:e9b8b51f6326 74:47fd14e29813
221 virtual PropertyContainer *getPropertyContainer(size_t i); 221 virtual PropertyContainer *getPropertyContainer(size_t i);
222 222
223 virtual QString toXmlString(QString indent = "", 223 virtual QString toXmlString(QString indent = "",
224 QString extraAttributes = "") const; 224 QString extraAttributes = "") const;
225 225
226 size_t getModelsStartFrame() const;
227 size_t getModelsEndFrame() const;
228
226 signals: 229 signals:
227 void propertyContainerAdded(PropertyContainer *pc); 230 void propertyContainerAdded(PropertyContainer *pc);
228 void propertyContainerRemoved(PropertyContainer *pc); 231 void propertyContainerRemoved(PropertyContainer *pc);
229 void propertyContainerPropertyChanged(PropertyContainer *pc); 232 void propertyContainerPropertyChanged(PropertyContainer *pc);
230 void propertyContainerNameChanged(PropertyContainer *pc); 233 void propertyContainerNameChanged(PropertyContainer *pc);
256 virtual void drawSelections(QPainter &); 259 virtual void drawSelections(QPainter &);
257 virtual bool shouldLabelSelections() const { return true; } 260 virtual bool shouldLabelSelections() const { return true; }
258 261
259 typedef std::vector<Layer *> LayerList; 262 typedef std::vector<Layer *> LayerList;
260 263
261 size_t getModelsStartFrame() const;
262 size_t getModelsEndFrame() const;
263 int getModelsSampleRate() const; 264 int getModelsSampleRate() const;
264 bool areLayersScrollable() const; 265 bool areLayersScrollable() const;
265 LayerList getScrollableBackLayers(bool testChanged, bool &changed) const; 266 LayerList getScrollableBackLayers(bool testChanged, bool &changed) const;
266 LayerList getNonScrollableFrontLayers(bool testChanged, bool &changed) const; 267 LayerList getNonScrollableFrontLayers(bool testChanged, bool &changed) const;
267 size_t getZoomConstraintBlockSize(size_t blockSize, 268 size_t getZoomConstraintBlockSize(size_t blockSize,