##// END OF EJS Templates
added experimental compacting to avoid generation of hundreds of files that all include the same stuff...
added experimental compacting to avoid generation of hundreds of files that all include the same stuff git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@128 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r92:f97ec94c87a9
Show More
PythonQtWrapper_QSvgGenerator.h
51 lines | 1.8 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QSVGGENERATOR_H
#define PYTHONQTWRAPPER_QSVGGENERATOR_H
#include <qsvggenerator.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qiodevice.h>
#include <qpaintdevice.h>
#include <qpaintengine.h>
#include <qsize.h>
class PythonQtShell_QSvgGenerator : public QSvgGenerator
{
public:
PythonQtShell_QSvgGenerator():QSvgGenerator(),_wrapper(NULL) {};
virtual int devType() const;
virtual int metric(QPaintDevice::PaintDeviceMetric metric) const;
virtual QPaintEngine* paintEngine() const;
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_QSvgGenerator : public QSvgGenerator
{ public:
inline QPaintEngine* promoted_paintEngine() const { return QSvgGenerator::paintEngine(); }
inline int promoted_metric(QPaintDevice::PaintDeviceMetric metric) const { return QSvgGenerator::metric(metric); }
};
class PythonQtWrapper_QSvgGenerator : public QObject
{ Q_OBJECT
public:
public slots:
QSvgGenerator* new_QSvgGenerator();
void delete_QSvgGenerator(QSvgGenerator* obj) { delete obj; }
QString fileName(QSvgGenerator* theWrappedObject) const;
void setOutputDevice(QSvgGenerator* theWrappedObject, QIODevice* outputDevice);
QPaintEngine* paintEngine(QSvgGenerator* theWrappedObject) const;
int resolution(QSvgGenerator* theWrappedObject) const;
void setResolution(QSvgGenerator* theWrappedObject, int dpi);
void setSize(QSvgGenerator* theWrappedObject, const QSize& size);
QIODevice* outputDevice(QSvgGenerator* theWrappedObject) const;
QSize size(QSvgGenerator* theWrappedObject) const;
int metric(QSvgGenerator* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const;
void setFileName(QSvgGenerator* theWrappedObject, const QString& fileName);
};
#endif // PYTHONQTWRAPPER_QSVGGENERATOR_H