PythonQtWrapper_QUndoStack.h
42 lines
| 1.7 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QUNDOSTACK_H | ||
#define PYTHONQTWRAPPER_QUNDOSTACK_H | ||||
#include <qundostack.h> | ||||
#include <QObject> | ||||
#include <QVariant> | ||||
#include <qaction.h> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qundostack.h> | ||||
class PythonQtWrapper_QUndoStack : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QUndoStack* new_QUndoStack(QObject* parent = 0); | ||||
void delete_QUndoStack(QUndoStack* obj) { delete obj; } | ||||
void beginMacro(QUndoStack* theWrappedObject, const QString& text); | ||||
bool canRedo(QUndoStack* theWrappedObject) const; | ||||
bool canUndo(QUndoStack* theWrappedObject) const; | ||||
int cleanIndex(QUndoStack* theWrappedObject) const; | ||||
void clear(QUndoStack* theWrappedObject); | ||||
const QUndoCommand* command(QUndoStack* theWrappedObject, int index) const; | ||||
int count(QUndoStack* theWrappedObject) const; | ||||
QAction* createRedoAction(QUndoStack* theWrappedObject, QObject* parent, const QString& prefix = QString()) const; | ||||
QAction* createUndoAction(QUndoStack* theWrappedObject, QObject* parent, const QString& prefix = QString()) const; | ||||
void endMacro(QUndoStack* theWrappedObject); | ||||
int index(QUndoStack* theWrappedObject) const; | ||||
bool isActive(QUndoStack* theWrappedObject) const; | ||||
bool isClean(QUndoStack* theWrappedObject) const; | ||||
void push(QUndoStack* theWrappedObject, QUndoCommand* cmd); | ||||
QString redoText(QUndoStack* theWrappedObject) const; | ||||
void setUndoLimit(QUndoStack* theWrappedObject, int limit); | ||||
QString text(QUndoStack* theWrappedObject, int idx) const; | ||||
int undoLimit(QUndoStack* theWrappedObject) const; | ||||
QString undoText(QUndoStack* theWrappedObject) const; | ||||
}; | ||||
#endif // PYTHONQTWRAPPER_QUNDOSTACK_H | ||||