Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/scriptsparsing/parsingresultdialog.h
Show All 14 Lines | 1 | /* | |||
---|---|---|---|---|---|
15 | along with this library; see the file COPYING.LIB. If not, write to | 15 | along with this library; see the file COPYING.LIB. If not, write to | ||
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | Boston, MA 02110-1301, USA. | 17 | Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | #ifndef PARSINGRESULTDIALOG_H | 19 | #ifndef PARSINGRESULTDIALOG_H | ||
20 | #define PARSINGRESULTDIALOG_H | 20 | #define PARSINGRESULTDIALOG_H | ||
21 | #include "ksieveui_private_export.h" | 21 | #include "ksieveui_private_export.h" | ||
22 | #include <QDialog> | 22 | #include <QDialog> | ||
23 | #include <KSyntaxHighlighting/Repository> | ||||
23 | 24 | | |||
24 | namespace KPIMTextEdit { | 25 | namespace KPIMTextEdit { | ||
25 | class PlainTextEditorWidget; | 26 | class PlainTextEditorWidget; | ||
26 | } | 27 | } | ||
27 | namespace KSieveUi { | 28 | namespace KSieveUi { | ||
28 | class KSIEVEUI_TESTS_EXPORT ParsingResultDialog : public QDialog | 29 | class KSIEVEUI_TESTS_EXPORT ParsingResultDialog : public QDialog | ||
29 | { | 30 | { | ||
30 | Q_OBJECT | 31 | Q_OBJECT | ||
31 | public: | 32 | public: | ||
32 | explicit ParsingResultDialog(QWidget *parent = nullptr); | 33 | explicit ParsingResultDialog(QWidget *parent = nullptr); | ||
33 | ~ParsingResultDialog(); | 34 | ~ParsingResultDialog(); | ||
34 | 35 | | |||
35 | void setResultParsing(const QString &result); | 36 | void setResultParsing(const QString &result); | ||
36 | 37 | | |||
37 | private Q_SLOTS: | 38 | private Q_SLOTS: | ||
38 | void slotSaveAs(); | 39 | void slotSaveAs(); | ||
39 | 40 | | |||
40 | private: | 41 | private: | ||
41 | void readConfig(); | 42 | void readConfig(); | ||
42 | void writeConfig(); | 43 | void writeConfig(); | ||
43 | KPIMTextEdit::PlainTextEditorWidget *mTextEdit = nullptr; | 44 | KPIMTextEdit::PlainTextEditorWidget *mTextEdit = nullptr; | ||
45 | KSyntaxHighlighting::Repository mSyntaxRepo; | ||||
mlaurent: mSyntaxRepo | |||||
44 | }; | 46 | }; | ||
45 | } | 47 | } | ||
46 | 48 | | |||
47 | #endif // PARSINGRESULTDIALOG_H | 49 | #endif // PARSINGRESULTDIALOG_H |
mSyntaxRepo