Holds the command used in the {un,re}do operations.
More...
#include <KviInputEditor.h>
|
| EditCommand (Type eType, const QString &szText, int iStartPosition) |
| Constructs the command object.
|
|
void | setStartPosition (int iStartPosition) |
| Sets the start position.
|
|
void | setText (const QString &szText) |
| Sets the text of the command.
|
|
void | setType (const Type &eType) |
| Sets the type of the command.
|
|
int | startPosition () const |
| Returns the start position.
|
|
const QString & | text () const |
| Returns the text of the command.
|
|
const Type & | type () const |
| Returns the type of the command.
|
|
Holds the command used in the {un,re}do operations.
◆ Type
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
|
◆ EditCommand()
KviInputEditor::EditCommand::EditCommand |
( |
Type |
eType, |
|
|
const QString & |
szText, |
|
|
int |
iStartPosition |
|
) |
| |
|
inline |
Constructs 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
◆ setStartPosition()
void KviInputEditor::EditCommand::setStartPosition |
( |
int |
iStartPosition | ) |
|
|
inline |
Sets the start position.
- Parameters
-
iStartPosition | The position |
- Returns
- void
◆ setText()
void KviInputEditor::EditCommand::setText |
( |
const QString & |
szText | ) |
|
|
inline |
Sets the text of the command.
- Parameters
-
◆ setType()
void KviInputEditor::EditCommand::setType |
( |
const Type & |
eType | ) |
|
|
inline |
Sets the type of the command.
- Parameters
-
eType | The type of the command |
- Returns
- void
◆ startPosition()
int KviInputEditor::EditCommand::startPosition |
( |
| ) |
const |
|
inline |
Returns the start position.
- Returns
- int
◆ text()
const QString & KviInputEditor::EditCommand::text |
( |
| ) |
const |
|
inline |
Returns the text of the command.
- Returns
- const QString &
◆ type()
const Type & KviInputEditor::EditCommand::type |
( |
| ) |
const |
|
inline |
Returns the type of the command.
- Returns
- const Type &
◆ m_eType
KviInputEditor::EditCommand::m_eType |
|
private |
◆ m_iStartPosition
KviInputEditor::EditCommand::m_iStartPosition |
|
private |
◆ m_szText
KviInputEditor::EditCommand::m_szText |
|
private |
The documentation for this class was generated from the following file: