QDocumentCommandBlock Class Reference

A meta command used for command grouping. More...

Inheritance diagram for QDocumentCommandBlock:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 QDocumentCommandBlock (QDocument *d)
 ctor
virtual ~QDocumentCommandBlock ()
 dtor
virtual void redo ()
 Redo the command.
virtual void undo ()
 Undo the command.
void setWeakLock (bool l)
 Set whether the block is weakly locked.
bool isWeakLocked () const
virtual void addCommand (QDocumentCommand *c)
 Add a command to the group.
virtual void removeCommand (QDocumentCommand *c)
 Remove a command from the block.


Detailed Description

A meta command used for command grouping.

Constructor & Destructor Documentation

QDocumentCommandBlock::QDocumentCommandBlock ( QDocument d  ) 

ctor

Parameters:
d host document


Member Function Documentation

void QDocumentCommandBlock::addCommand ( QDocumentCommand c  )  [virtual]

Add a command to the group.

Warning:
Doing that after having pushed the command on the undo/redo stack is likely to result in corruption of the undo/redo stack

bool QDocumentCommandBlock::isWeakLocked (  )  const

Returns:
whether the block is weakly locked
Weak locking of command block is an obscure internal feature which prevents the first redo() call from actually redo'ing the grouped commands

Referenced by redo().

void QDocumentCommandBlock::removeCommand ( QDocumentCommand c  )  [virtual]

Remove a command from the block.

Warning:
Doing that after having pushed the command on the undo/redo stack is likely to result in corruption of the undo/redo stack


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

Generated on Sun Feb 15 22:50:20 2009 for QCodeEdit by  doxygen 1.5.7.1