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

ctor

Parameters:
dhost document

Member Function Documentation

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

Reimplemented in QSnippetInsertionCommand.

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().

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

Reimplemented in QSnippetInsertionCommand.


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