Public Slots | Signals | Public Member Functions | Properties | Friends

QUndoStack Class Reference

Search for all occurrences

Detailed Description

Definition at line 90 of file qundostack.h.

#include <qundostack.h>

Inheritance diagram for QUndoStack:
Inheritance graph
[legend]

List of all members.

Public Slots

void  setClean ()
void  setIndex (int idx)
void  undo ()
void  redo ()
void  setActive (bool active=true)

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)

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
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

Properties

bool  active
int  undoLimit

Friends

class  QUndoGroup

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 149 of file qundostack.h.


Property Documentation

bool active [read, write]

Definition at line 94 of file qundostack.h.

int undoLimit [read, write]

Definition at line 95 of file qundostack.h.


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

QUndoStack QUndoStack QUndoStack QUndoStack QUndoStack QUndoStack QUndoStack QUndoStack QUndoStack QUndoStack
QUndoStack QUndoStack QUndoStack QUndoStack QUndoStack QUndoStack QUndoStack QUndoStack QUndoStack QUndoStack