lokalize
InsTextCmd Class Reference
#include <cmd.h>
Inheritance diagram for InsTextCmd:
Public Member Functions | |
InsTextCmd (Catalog *catalog, const DocPosition &pos, const QString &str) | |
~InsTextCmd () | |
void | doRedo () |
void | doUndo () |
int | id () const |
bool | mergeWith (const QUndoCommand *other) |
Public Member Functions inherited from LokalizeTargetCmd | |
LokalizeTargetCmd (Catalog *catalog, const DocPosition &pos, const QString &name) | |
virtual | ~LokalizeTargetCmd () |
void | redo () |
void | undo () |
Public Member Functions inherited from LokalizeUnitCmd | |
LokalizeUnitCmd (Catalog *catalog, const DocPosition &pos, const QString &name) | |
virtual | ~LokalizeUnitCmd () |
DocPosition | pos () const |
Public Member Functions inherited from QUndoCommand | |
QUndoCommand (QUndoCommand *parent) | |
QUndoCommand (const QString &text, QUndoCommand *parent) | |
virtual | ~QUndoCommand () |
QString | actionText () const |
const QUndoCommand * | child (int index) const |
int | childCount () const |
void | setText (const QString &text) |
QString | text () const |
Additional Inherited Members | |
Protected Member Functions inherited from LokalizeUnitCmd | |
virtual void | setJumpingPos () |
Protected Attributes inherited from LokalizeTargetCmd | |
QString | _prevTargetPhase |
Protected Attributes inherited from LokalizeUnitCmd | |
Catalog * | _catalog |
bool | _firstModificationForThisEntry |
DocPosition | _pos |
QString | _prevPhase |
Detailed Description
how undo system works: undo() and redo() functions call appropriate private method of Catalog to change catalog contents, then set DocPosition (posBuffer var in Catalog), which is used to navigate editor to appr.
place Do insert text
Constructor & Destructor Documentation
InsTextCmd::InsTextCmd | ( | Catalog * | catalog, |
const DocPosition & | pos, | ||
const QString & | str | ||
) |
Member Function Documentation
|
virtual |
Implements LokalizeUnitCmd.
|
virtual |
Implements LokalizeUnitCmd.
|
inlinevirtual |
Reimplemented from QUndoCommand.
|
virtual |
Reimplemented from QUndoCommand.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.