Changeset View
Changeset View
Standalone View
Standalone View
commands/tools/selection/text/kpToolTextInsertCommand.h
Show All 31 Lines | |||||
32 | 32 | | |||
33 | #include "commands/kpNamedCommand.h" | 33 | #include "commands/kpNamedCommand.h" | ||
34 | 34 | | |||
35 | 35 | | |||
36 | class kpToolTextInsertCommand : public kpNamedCommand | 36 | class kpToolTextInsertCommand : public kpNamedCommand | ||
37 | { | 37 | { | ||
38 | public: | 38 | public: | ||
39 | kpToolTextInsertCommand (const QString &name, | 39 | kpToolTextInsertCommand (const QString &name, | ||
40 | int row, int col, QString newText, | 40 | int row, int col, const QString& newText, | ||
41 | kpCommandEnvironment *environ); | 41 | kpCommandEnvironment *environ); | ||
42 | 42 | | |||
43 | void addText (const QString &moreText); | 43 | void addText (const QString &moreText); | ||
44 | 44 | | |||
45 | kpCommandSize::SizeType size () const override; | 45 | kpCommandSize::SizeType size () const override; | ||
46 | 46 | | |||
47 | void execute () override; | 47 | void execute () override; | ||
48 | void unexecute () override; | 48 | void unexecute () override; | ||
49 | 49 | | |||
50 | protected: | 50 | protected: | ||
51 | int m_row, m_col; | 51 | int m_row, m_col; | ||
52 | QString m_newText; | 52 | QString m_newText; | ||
53 | }; | 53 | }; | ||
54 | 54 | | |||
55 | 55 | | |||
56 | #endif // KP_TOOL_TEXT_INSERT_COMMAND_H | 56 | #endif // KP_TOOL_TEXT_INSERT_COMMAND_H |