##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QUndoStack.h
42 lines | 1.7 KiB | text/x-c | CLexer
#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