PythonQtWrapper_QImageIOPlugin.h
48 lines
| 1.5 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QIMAGEIOPLUGIN_H | ||
#define PYTHONQTWRAPPER_QIMAGEIOPLUGIN_H | ||||
#include <qimageiohandler.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qimageiohandler.h> | ||||
#include <qiodevice.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qstringlist.h> | ||||
florianlink
|
r24 | class PythonQtShell_QImageIOPlugin : public QImageIOPlugin | ||
{ | ||||
public: | ||||
PythonQtShell_QImageIOPlugin(QObject* parent = 0):QImageIOPlugin(parent),_wrapper(NULL) {}; | ||||
virtual QImageIOPlugin::Capabilities capabilities(QIODevice* device, const QByteArray& format) const; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual QImageIOHandler* create(QIODevice* device, const QByteArray& format = QByteArray()) const; | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual QStringList keys() const; | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QImageIOPlugin : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(Capability ) | ||||
florianlink
|
r73 | Q_FLAGS(Capabilities ) | ||
florianlink
|
r13 | enum Capability{ | ||
CanRead = QImageIOPlugin::CanRead, CanWrite = QImageIOPlugin::CanWrite, CanReadIncremental = QImageIOPlugin::CanReadIncremental}; | ||||
florianlink
|
r73 | Q_DECLARE_FLAGS(Capabilities, Capability) | ||
florianlink
|
r13 | public slots: | ||
florianlink
|
r24 | QImageIOPlugin* new_QImageIOPlugin(QObject* parent = 0); | ||
florianlink
|
r13 | void delete_QImageIOPlugin(QImageIOPlugin* obj) { delete obj; } | ||
}; | ||||
#endif // PYTHONQTWRAPPER_QIMAGEIOPLUGIN_H | ||||