##// END OF EJS Templates
added PyLauncher example...
added PyLauncher example added hadError() to scripting console added addSysPath() git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@50 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r14:59f352c6d9fb
Show More
PythonQtWrapper_QImageReader.h
71 lines | 3.4 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QIMAGEREADER_H
#define PYTHONQTWRAPPER_QIMAGEREADER_H
#include <qimagereader.h>
#include <QObject>
#include <QColor>
#include <QImage>
#include <QRect>
#include <QSize>
#include <QStringList>
#include <QVariant>
#include <qbytearray.h>
#include <qcolor.h>
#include <qimage.h>
#include <qimagereader.h>
#include <qiodevice.h>
#include <qlist.h>
#include <qrect.h>
#include <qsize.h>
#include <qstringlist.h>
class PythonQtWrapper_QImageReader : public QObject
{ Q_OBJECT
public:
Q_ENUMS(ImageReaderError )
enum ImageReaderError{
UnknownError = QImageReader::UnknownError, FileNotFoundError = QImageReader::FileNotFoundError, DeviceError = QImageReader::DeviceError, UnsupportedFormatError = QImageReader::UnsupportedFormatError, InvalidDataError = QImageReader::InvalidDataError};
public slots:
QImageReader* new_QImageReader();
QImageReader* new_QImageReader(QIODevice* device, const QByteArray& format = QByteArray());
QImageReader* new_QImageReader(const QString& fileName, const QByteArray& format = QByteArray());
void delete_QImageReader(QImageReader* obj) { delete obj; }
QColor backgroundColor(QImageReader* theWrappedObject) const;
bool canRead(QImageReader* theWrappedObject) const;
QRect clipRect(QImageReader* theWrappedObject) const;
int currentImageNumber(QImageReader* theWrappedObject) const;
QRect currentImageRect(QImageReader* theWrappedObject) const;
QIODevice* device(QImageReader* theWrappedObject) const;
QImageReader::ImageReaderError error(QImageReader* theWrappedObject) const;
QString errorString(QImageReader* theWrappedObject) const;
QString fileName(QImageReader* theWrappedObject) const;
QByteArray format(QImageReader* theWrappedObject) const;
int imageCount(QImageReader* theWrappedObject) const;
QByteArray static_QImageReader_imageFormat(QIODevice* device);
QByteArray static_QImageReader_imageFormat(const QString& fileName);
bool jumpToImage(QImageReader* theWrappedObject, int imageNumber);
bool jumpToNextImage(QImageReader* theWrappedObject);
int loopCount(QImageReader* theWrappedObject) const;
int nextImageDelay(QImageReader* theWrappedObject) const;
int quality(QImageReader* theWrappedObject) const;
QImage read(QImageReader* theWrappedObject);
QRect scaledClipRect(QImageReader* theWrappedObject) const;
QSize scaledSize(QImageReader* theWrappedObject) const;
void setBackgroundColor(QImageReader* theWrappedObject, const QColor& color);
void setClipRect(QImageReader* theWrappedObject, const QRect& rect);
void setDevice(QImageReader* theWrappedObject, QIODevice* device);
void setFileName(QImageReader* theWrappedObject, const QString& fileName);
void setFormat(QImageReader* theWrappedObject, const QByteArray& format);
void setQuality(QImageReader* theWrappedObject, int quality);
void setScaledClipRect(QImageReader* theWrappedObject, const QRect& rect);
void setScaledSize(QImageReader* theWrappedObject, const QSize& size);
QSize size(QImageReader* theWrappedObject) const;
QList<QByteArray > static_QImageReader_supportedImageFormats();
bool supportsAnimation(QImageReader* theWrappedObject) const;
bool supportsOption(QImageReader* theWrappedObject, QImageIOHandler::ImageOption option) const;
QString text(QImageReader* theWrappedObject, const QString& key) const;
QStringList textKeys(QImageReader* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QIMAGEREADER_H