Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/view/View.h Fri Mar 09 18:18:30 2007 +0000 +++ b/view/View.h Mon Mar 12 15:36:31 2007 +0000 @@ -13,8 +13,8 @@ COPYING included with this distribution for more information. */ -#ifndef _CANVAS_H_ -#define _CANVAS_H_ +#ifndef _VIEW_H_ +#define _VIEW_H_ #include <QFrame> #include <QProgressBar> @@ -215,6 +215,10 @@ virtual const PropertyContainer *getPropertyContainer(size_t i) const; virtual PropertyContainer *getPropertyContainer(size_t i); + // Render the entire contents on a wide canvas + virtual bool render(QPainter &paint, QRect rect); + virtual QImage *toNewImage(); + virtual int getTextLabelHeight(const Layer *layer, QPainter &) const; virtual bool getValueExtents(QString unit, float &min, float &max,