Mercurial > hg > svcore
comparison base/Layer.h @ 15:47500c27ac26
* Add getXForFrame / getFrameForX in preference to using the zoom level everywhere
author | Chris Cannam |
---|---|
date | Mon, 30 Jan 2006 13:19:42 +0000 |
parents | 1fa7cc0d008b |
children | 4563a72c1d8b |
comparison
equal
deleted
inserted
replaced
14:b101cc2ae1ab | 15:47500c27ac26 |
---|---|
147 virtual int getCompletion() const { return 100; } | 147 virtual int getCompletion() const { return 100; } |
148 | 148 |
149 virtual void setObjectName(const QString &name); | 149 virtual void setObjectName(const QString &name); |
150 | 150 |
151 /** | 151 /** |
152 * Return the pixel x-coordinate corresponding to a given sample | |
153 * frame (which may be negative). | |
154 */ | |
155 int getXForFrame(long frame) const; | |
156 | |
157 /** | |
158 * Return the closest frame to the given pixel x-coordinate. | |
159 */ | |
160 long getFrameForX(int x) const; | |
161 | |
162 /** | |
152 * Convert the layer's data (though not those of the model it | 163 * Convert the layer's data (though not those of the model it |
153 * refers to) into an XML string for file output. This class | 164 * refers to) into an XML string for file output. This class |
154 * implements the basic name/type/model-id output; subclasses will | 165 * implements the basic name/type/model-id output; subclasses will |
155 * typically call this superclass implementation with extra | 166 * typically call this superclass implementation with extra |
156 * attributes describing their particular properties. | 167 * attributes describing their particular properties. |