Changeset View
Changeset View
Standalone View
Standalone View
plugins/externalscript/externalscriptitem.h
Show All 28 Lines | |||||
29 | * NOTE: use @c text() and @c setText() to define the label/name of the external script. | 29 | * NOTE: use @c text() and @c setText() to define the label/name of the external script. | ||
30 | */ | 30 | */ | ||
31 | class ExternalScriptItem : public QStandardItem | 31 | class ExternalScriptItem : public QStandardItem | ||
32 | { | 32 | { | ||
33 | public: | 33 | public: | ||
34 | ExternalScriptItem(); | 34 | ExternalScriptItem(); | ||
35 | 35 | | |||
36 | /** | 36 | /** | ||
37 | * The key is supposed to be unique inside the model | ||||
38 | * @return The key of this script item | ||||
39 | */ | ||||
40 | QString key() const; | ||||
41 | /** | ||||
42 | * Sets the label | ||||
43 | */ | ||||
44 | void setKey( const QString& key ); | ||||
45 | | ||||
46 | /** | ||||
37 | * @return The command to execute. | 47 | * @return The command to execute. | ||
38 | */ | 48 | */ | ||
39 | QString command() const; | 49 | QString command() const; | ||
40 | /** | 50 | /** | ||
41 | * Sets the command to execute. | 51 | * Sets the command to execute. | ||
42 | */ | 52 | */ | ||
43 | void setCommand( const QString& command ); | 53 | void setCommand( const QString& command ); | ||
44 | 54 | | |||
▲ Show 20 Lines • Show All 146 Lines • ▼ Show 20 Line(s) | |||||
191 | ///TODO: custom icon | 201 | ///TODO: custom icon | ||
192 | ///TODO: mimetype / language filter | 202 | ///TODO: mimetype / language filter | ||
193 | ///TODO: kate commandline integration | 203 | ///TODO: kate commandline integration | ||
194 | ///TODO: filter for local/remote files | 204 | ///TODO: filter for local/remote files | ||
195 | 205 | | |||
196 | /** | 206 | /** | ||
197 | * Saves this item after changes. | 207 | * Saves this item after changes. | ||
198 | */ | 208 | */ | ||
199 | void save() const; | 209 | void update() const; | ||
200 | private: | 210 | private: | ||
211 | QString m_key; | ||||
201 | QString m_command; | 212 | QString m_command; | ||
202 | QString m_workingDirectory; | 213 | QString m_workingDirectory; | ||
203 | SaveMode m_saveMode = SaveNone; | 214 | SaveMode m_saveMode = SaveNone; | ||
204 | OutputMode m_outputMode = OutputNone; | 215 | OutputMode m_outputMode = OutputNone; | ||
205 | ErrorMode m_errorMode = ErrorNone; | 216 | ErrorMode m_errorMode = ErrorNone; | ||
206 | InputMode m_inputMode = InputNone; | 217 | InputMode m_inputMode = InputNone; | ||
207 | QAction* m_action = nullptr; | 218 | QAction* m_action = nullptr; | ||
208 | bool m_showOutput = true; | 219 | bool m_showOutput = true; | ||
Show All 9 Lines |