Mercurial > hg > svgui
comparison view/View.h @ 229:387f2f6fc333 sv1-1.0pre2
* Remove tip dialog for now. I don't like it enough
* Fixes to export image
author | Chris Cannam |
---|---|
date | Wed, 14 Mar 2007 14:39:39 +0000 |
parents | 2ccd02015530 |
children | 4ed1446ad604 |
comparison
equal
deleted
inserted
replaced
228:1c4c9e3e44e6 | 229:387f2f6fc333 |
---|---|
213 virtual size_t getPropertyContainerCount() const; | 213 virtual size_t getPropertyContainerCount() const; |
214 | 214 |
215 virtual const PropertyContainer *getPropertyContainer(size_t i) const; | 215 virtual const PropertyContainer *getPropertyContainer(size_t i) const; |
216 virtual PropertyContainer *getPropertyContainer(size_t i); | 216 virtual PropertyContainer *getPropertyContainer(size_t i); |
217 | 217 |
218 // Render the entire contents on a wide canvas | 218 // Render the contents on a wide canvas |
219 virtual bool render(QPainter &paint, QRect rect); | 219 virtual QImage *toNewImage(size_t f0, size_t f1); |
220 virtual QImage *toNewImage(); | 220 virtual QImage *toNewImage(); |
221 virtual QSize getImageSize(size_t f0, size_t f1); | |
222 virtual QSize getImageSize(); | |
221 | 223 |
222 virtual int getTextLabelHeight(const Layer *layer, QPainter &) const; | 224 virtual int getTextLabelHeight(const Layer *layer, QPainter &) const; |
223 | 225 |
224 virtual bool getValueExtents(QString unit, float &min, float &max, | 226 virtual bool getValueExtents(QString unit, float &min, float &max, |
225 bool &log) const; | 227 bool &log) const; |
274 protected: | 276 protected: |
275 View(QWidget *, bool showProgress); | 277 View(QWidget *, bool showProgress); |
276 virtual void paintEvent(QPaintEvent *e); | 278 virtual void paintEvent(QPaintEvent *e); |
277 virtual void drawSelections(QPainter &); | 279 virtual void drawSelections(QPainter &); |
278 virtual bool shouldLabelSelections() const { return true; } | 280 virtual bool shouldLabelSelections() const { return true; } |
281 virtual bool render(QPainter &paint, int x0, size_t f0, size_t f1); | |
279 | 282 |
280 typedef std::vector<Layer *> LayerList; | 283 typedef std::vector<Layer *> LayerList; |
281 | 284 |
282 int getModelsSampleRate() const; | 285 int getModelsSampleRate() const; |
283 bool areLayersScrollable() const; | 286 bool areLayersScrollable() const; |