##// 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_QMovie.h
77 lines | 3.0 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QMOVIE_H
#define PYTHONQTWRAPPER_QMOVIE_H
#include <qmovie.h>
#include <QObject>
#include <PythonQt.h>
#include <QColor>
#include <QImage>
#include <QPixmap>
#include <QRect>
#include <QSize>
#include <QVariant>
#include <qbytearray.h>
#include <qcolor.h>
#include <qcoreevent.h>
#include <qimage.h>
#include <qiodevice.h>
#include <qlist.h>
#include <qmovie.h>
#include <qobject.h>
#include <qpixmap.h>
#include <qrect.h>
#include <qsize.h>
class PythonQtShell_QMovie : public QMovie
{
public:
PythonQtShell_QMovie(QIODevice* device, const QByteArray& format = QByteArray(), QObject* parent = 0):QMovie(device, format, parent),_wrapper(NULL) {};
PythonQtShell_QMovie(QObject* parent = 0):QMovie(parent),_wrapper(NULL) {};
PythonQtShell_QMovie(const QString& fileName, const QByteArray& format = QByteArray(), QObject* parent = 0):QMovie(fileName, format, parent),_wrapper(NULL) {};
virtual void childEvent(QChildEvent* arg__1);
virtual void customEvent(QEvent* arg__1);
virtual bool event(QEvent* arg__1);
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
virtual void timerEvent(QTimerEvent* arg__1);
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_QMovie : public QObject
{ Q_OBJECT
public:
public slots:
QMovie* new_QMovie(QIODevice* device, const QByteArray& format = QByteArray(), QObject* parent = 0);
QMovie* new_QMovie(QObject* parent = 0);
QMovie* new_QMovie(const QString& fileName, const QByteArray& format = QByteArray(), QObject* parent = 0);
void delete_QMovie(QMovie* obj) { delete obj; }
void setDevice(QMovie* theWrappedObject, QIODevice* device);
QMovie::MovieState state(QMovie* theWrappedObject) const;
int speed(QMovie* theWrappedObject) const;
int loopCount(QMovie* theWrappedObject) const;
void setFileName(QMovie* theWrappedObject, const QString& fileName);
QList<QByteArray > static_QMovie_supportedFormats();
QMovie::CacheMode cacheMode(QMovie* theWrappedObject) const;
int currentFrameNumber(QMovie* theWrappedObject) const;
void setScaledSize(QMovie* theWrappedObject, const QSize& size);
void setBackgroundColor(QMovie* theWrappedObject, const QColor& color);
void setFormat(QMovie* theWrappedObject, const QByteArray& format);
int nextFrameDelay(QMovie* theWrappedObject) const;
QImage currentImage(QMovie* theWrappedObject) const;
QString fileName(QMovie* theWrappedObject) const;
bool isValid(QMovie* theWrappedObject) const;
void setCacheMode(QMovie* theWrappedObject, QMovie::CacheMode mode);
QSize scaledSize(QMovie* theWrappedObject);
int frameCount(QMovie* theWrappedObject) const;
QColor backgroundColor(QMovie* theWrappedObject) const;
QRect frameRect(QMovie* theWrappedObject) const;
QPixmap currentPixmap(QMovie* theWrappedObject) const;
QByteArray format(QMovie* theWrappedObject) const;
QIODevice* device(QMovie* theWrappedObject) const;
bool jumpToFrame(QMovie* theWrappedObject, int frameNumber);
};
#endif // PYTHONQTWRAPPER_QMOVIE_H