##// END OF EJS Templates
added PyLauncher example...
added PyLauncher example added hadError() to scripting console added addSysPath() git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@50 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r14:59f352c6d9fb
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