#ifndef PYTHONQTWRAPPER_QUNDOSTACK_H #define PYTHONQTWRAPPER_QUNDOSTACK_H #include #include #include #include #include #include #include #include #include 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