QCodeEdit  2.2
Public Member Functions
QSnippetInsertionCommand Class Reference
Inheritance diagram for QSnippetInsertionCommand:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 QSnippetInsertionCommand (QEditor *e)
void addPlaceHolder (const QEditor::PlaceHolder &ph)
virtual void addCommand (QDocumentCommand *c)
 Add a command to the group.
virtual void removeCommand (QDocumentCommand *c)
 Remove a command from the block.
virtual void redo ()
 Redo the command.
virtual void undo ()
 Undo the command.
- Public Member Functions inherited from QDocumentCommandBlock
 QDocumentCommandBlock (QDocument *d)
 ctor
virtual ~QDocumentCommandBlock ()
 dtor
void setWeakLock (bool l)
 Set whether the block is weakly locked.
bool isWeakLocked () const
- Public Member Functions inherited from QDocumentCommand
 QDocumentCommand (Command c, QDocument *d, QDocumentCommand *p=0)
 ctor
virtual ~QDocumentCommand ()
 dtor
virtual int id () const
virtual bool mergeWith (const QUndoCommand *command)
 Attempts to merge with another command.
bool isSilent () const
void setSilent (bool y)
 Set whether the command is silent.
bool keepAnchor () const
void setKeepAnchor (bool y)
 Set whether the command preserve selection of the target cursor.
void setTargetCursor (QDocumentCursorHandle *h)
 Set the target cursor.
void setRedoOffset (int off)
 ?
void setUndoOffset (int off)
 ?

Member Function Documentation

void QSnippetInsertionCommand::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

Reimplemented from QDocumentCommandBlock.

References QDocumentCommand::setTargetCursor().

void QSnippetInsertionCommand::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

Reimplemented from QDocumentCommandBlock.

References QDocumentCommand::setTargetCursor().


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