Holds the command used in the {un,re}do operations.
More...
#include <KviInputEditor.h>
Holds the command used in the {un,re}do operations.
Defines the type of the command.
Enumerator |
---|
InsertText |
Text insertion. Has text, position previous to the insert and length of the insert
|
RemoveText |
Text removal, Has text, position previous to the removal and length of the removed data
|
KviInputEditor::EditCommand::EditCommand |
( |
Type |
eType, |
|
|
const QString & |
szText, |
|
|
int |
iStartPosition |
|
) |
| |
|
inline |
Contructs the command object.
- Parameters
-
eType | The type of the command |
szText | The text of the command |
iStartPosition | The start position of the command |
- Returns
- EditCommand
void KviInputEditor::EditCommand::setStartPosition |
( |
int |
iStartPosition | ) |
|
|
inline |
Sets the start position.
- Parameters
-
iStartPosition | The position |
- Returns
- void
void KviInputEditor::EditCommand::setText |
( |
const QString & |
szText | ) |
|
|
inline |
Sets the text of the command.
- Parameters
-
void KviInputEditor::EditCommand::setType |
( |
const Type & |
eType | ) |
|
|
inline |
Sets the type of the command.
- Parameters
-
eType | The type of the command |
- Returns
- void
int KviInputEditor::EditCommand::startPosition |
( |
| ) |
const |
|
inline |
const QString& KviInputEditor::EditCommand::text |
( |
| ) |
const |
|
inline |
const Type& KviInputEditor::EditCommand::type |
( |
| ) |
const |
|
inline |
KviInputEditor::EditCommand::m_eType |
|
private |
KviInputEditor::EditCommand::m_iStartPosition |
|
private |
KviInputEditor::EditCommand::m_szText |
|
private |
The documentation for this class was generated from the following file: