QUndoStack Class Reference

QUndoStack Class Reference

#include <qundostack.h>

Class Description

Definition at line 91 of file qundostack.h.

+ Inheritance diagram for QUndoStack:

Public Slots

void setClean ()
 
void setIndex (int idx)
 
void undo ()
 
void redo ()
 
void setActive (bool active=true)
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void indexChanged (int idx)
 
void cleanChanged (bool clean)
 
void canUndoChanged (bool canUndo)
 
void canRedoChanged (bool canRedo)
 
void undoTextChanged (const QString &undoText)
 
void redoTextChanged (const QString &redoText)
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 QUndoStack (QObject *parent=0)
 
 ~QUndoStack ()
 
void clear ()
 
void push (QUndoCommand *cmd)
 
bool canUndo () const
 
bool canRedo () const
 
QString undoText () const
 
QString redoText () const
 
int count () const
 
int index () const
 
QString text (int idx) const
 
QActioncreateUndoAction (QObject *parent, const QString &prefix=QString()) const
 
QActioncreateRedoAction (QObject *parent, const QString &prefix=QString()) const
 
bool isActive () const
 
bool isClean () const
 
int cleanIndex () const
 
void beginMacro (const QString &text)
 
void endMacro ()
 
void setUndoLimit (int limit)
 
int undoLimit () const
 
const QUndoCommandcommand (int index) const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Properties

bool active
 
int undoLimit
 
- Properties inherited from QObject
QString objectName
 

Friends

class QUndoGroup
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 

Constructor & Destructor Documentation

QUndoStack ( QObject parent = 0)
explicit
~QUndoStack ( )

Member Function Documentation

void clear ( )
void push ( QUndoCommand cmd)
bool canUndo ( ) const
bool canRedo ( ) const
QString undoText ( ) const
QString redoText ( ) const
int count ( ) const
int index ( ) const
QString text ( int  idx) const
QAction* createUndoAction ( QObject parent,
const QString prefix = QString() 
) const
QAction* createRedoAction ( QObject parent,
const QString prefix = QString() 
) const
bool isActive ( ) const
bool isClean ( ) const
int cleanIndex ( ) const
void beginMacro ( const QString text)
void endMacro ( )
void setUndoLimit ( int  limit)
int undoLimit ( ) const
const QUndoCommand* command ( int  index) const
void setClean ( )
slot
void setIndex ( int  idx)
slot
void undo ( )
slot
void redo ( )
slot
void setActive ( bool  active = true)
slot
void indexChanged ( int  idx)
signal
void cleanChanged ( bool  clean)
signal
void canUndoChanged ( bool  canUndo)
signal
void canRedoChanged ( bool  canRedo)
signal
void undoTextChanged ( const QString undoText)
signal
void redoTextChanged ( const QString redoText)
signal

Friends And Related Function Documentation

friend class QUndoGroup
friend

Definition at line 150 of file qundostack.h.

Property Documentation

bool active
readwrite

Definition at line 95 of file qundostack.h.

int undoLimit
readwrite

Definition at line 96 of file qundostack.h.


The documentation for this class was generated from the following file: