Mercurial > hg > svgui
comparison view/View.h @ 226:2ccd02015530
* Add basics of an Export Image File function
author | Chris Cannam |
---|---|
date | Mon, 12 Mar 2007 15:36:31 +0000 |
parents | 9465b5375235 |
children | 387f2f6fc333 |
comparison
equal
deleted
inserted
replaced
225:6f46179086c0 | 226:2ccd02015530 |
---|---|
11 published by the Free Software Foundation; either version 2 of the | 11 published by the Free Software Foundation; either version 2 of the |
12 License, or (at your option) any later version. See the file | 12 License, or (at your option) any later version. See the file |
13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
14 */ | 14 */ |
15 | 15 |
16 #ifndef _CANVAS_H_ | 16 #ifndef _VIEW_H_ |
17 #define _CANVAS_H_ | 17 #define _VIEW_H_ |
18 | 18 |
19 #include <QFrame> | 19 #include <QFrame> |
20 #include <QProgressBar> | 20 #include <QProgressBar> |
21 | 21 |
22 #include "base/ZoomConstraint.h" | 22 #include "base/ZoomConstraint.h" |
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 | |
219 virtual bool render(QPainter &paint, QRect rect); | |
220 virtual QImage *toNewImage(); | |
221 | |
218 virtual int getTextLabelHeight(const Layer *layer, QPainter &) const; | 222 virtual int getTextLabelHeight(const Layer *layer, QPainter &) const; |
219 | 223 |
220 virtual bool getValueExtents(QString unit, float &min, float &max, | 224 virtual bool getValueExtents(QString unit, float &min, float &max, |
221 bool &log) const; | 225 bool &log) const; |
222 | 226 |