|
|
#ifndef PYTHONQTWRAPPER_QUNDOGROUP_H
|
|
|
#define PYTHONQTWRAPPER_QUNDOGROUP_H
|
|
|
|
|
|
#include <qundogroup.h>
|
|
|
#include <QObject>
|
|
|
|
|
|
#include <PythonQt.h>
|
|
|
|
|
|
#include <QVariant>
|
|
|
#include <qaction.h>
|
|
|
#include <qbytearray.h>
|
|
|
#include <qcoreevent.h>
|
|
|
#include <qlist.h>
|
|
|
#include <qobject.h>
|
|
|
#include <qundogroup.h>
|
|
|
#include <qundostack.h>
|
|
|
|
|
|
class PythonQtShell_QUndoGroup : public QUndoGroup
|
|
|
{
|
|
|
public:
|
|
|
PythonQtShell_QUndoGroup(QObject* parent = 0):QUndoGroup(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_QUndoGroup : public QObject
|
|
|
{ Q_OBJECT
|
|
|
public:
|
|
|
public slots:
|
|
|
QUndoGroup* new_QUndoGroup(QObject* parent = 0);
|
|
|
void delete_QUndoGroup(QUndoGroup* obj) { delete obj; }
|
|
|
bool canUndo(QUndoGroup* theWrappedObject) const;
|
|
|
QAction* createRedoAction(QUndoGroup* theWrappedObject, QObject* parent, const QString& prefix = QString()) const;
|
|
|
void removeStack(QUndoGroup* theWrappedObject, QUndoStack* stack);
|
|
|
QUndoStack* activeStack(QUndoGroup* theWrappedObject) const;
|
|
|
bool canRedo(QUndoGroup* theWrappedObject) const;
|
|
|
QString redoText(QUndoGroup* theWrappedObject) const;
|
|
|
QList<QUndoStack* > stacks(QUndoGroup* theWrappedObject) const;
|
|
|
void addStack(QUndoGroup* theWrappedObject, QUndoStack* stack);
|
|
|
QString undoText(QUndoGroup* theWrappedObject) const;
|
|
|
bool isClean(QUndoGroup* theWrappedObject) const;
|
|
|
QAction* createUndoAction(QUndoGroup* theWrappedObject, QObject* parent, const QString& prefix = QString()) const;
|
|
|
};
|
|
|
|
|
|
#endif // PYTHONQTWRAPPER_QUNDOGROUP_H
|
|
|
|