42 #ifndef SVGGENERATOR_H 43 #define SVGGENERATOR_H 45 #include <QtGui/qpaintdevice.h> 47 #include <QtCore/qnamespace.h> 48 #include <QtCore/qiodevice.h> 49 #include <QtCore/qobjectdefs.h> 50 #include <QtCore/qscopedpointer.h> 73 Q_PROPERTY(QSize size READ size WRITE setSize)
74 Q_PROPERTY(QRectF viewBox READ viewBoxF WRITE setViewBox)
75 Q_PROPERTY(QString title READ title WRITE setTitle)
76 Q_PROPERTY(QString description READ description WRITE setDescription)
77 Q_PROPERTY(QString fileName READ fileName WRITE setFileName)
78 Q_PROPERTY(QIODevice* outputDevice READ outputDevice WRITE setOutputDevice)
79 Q_PROPERTY(
int resolution READ resolution WRITE setResolution)
84 QString title()
const;
85 void setTitle(
const QString &title);
87 QString description()
const;
88 void setDescription(
const QString &description);
91 void setSize(
const QSize &size);
93 QRect viewBox()
const;
94 QRectF viewBoxF()
const;
95 void setViewBox(
const QRect &viewBox);
96 void setViewBox(
const QRectF &viewBox);
98 QString fileName()
const;
99 void setFileName(
const QString &fileName);
101 QIODevice *outputDevice()
const;
102 void setOutputDevice(QIODevice *outputDevice);
104 void setResolution(
int dpi);
105 int resolution()
const;
110 QPaintEngine *paintEngine()
const;
111 int metric(QPaintDevice::PaintDeviceMetric metric)
const;
114 QScopedPointer<SvgGeneratorPrivate>
d_ptr;
117 #endif // QSVGGENERATOR_H QScopedPointer< SvgGeneratorPrivate > d_ptr
Definition: svggenerator.h:114
Base class of score layout elements.
Definition: element.h:158
Definition: svggenerator.cpp:682
Definition: aeolus.cpp:26
The SvgGenerator class provides a paint device that is used to create SVG drawings. .
Definition: svggenerator.h:69
Q_DECLARE_PRIVATE(SvgGenerator) Q_PROPERTY(QSize size READ size WRITE setSize) Q_PROPERTY(QRectF viewBox READ viewBoxF WRITE setViewBox) Q_PROPERTY(QString title READ title WRITE setTitle) Q_PROPERTY(QString description READ description WRITE setDescription) Q_PROPERTY(QString fileName READ fileName WRITE setFileName) Q_PROPERTY(QIODevice *outputDevice READ outputDevice WRITE setOutputDevice) Q_PROPERTY(int resolution READ resolution WRITE setResolution) publi ~SvgGenerator)()
Definition: svggenerator.h:82