File indexing completed on 2024-12-29 04:54:49
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #pragma once 0007 #include "ksieveui_private_export.h" 0008 #include <KSyntaxHighlighting/Repository> 0009 #include <QDialog> 0010 0011 namespace TextCustomEditor 0012 { 0013 class PlainTextEditorWidget; 0014 } 0015 namespace KSieveUi 0016 { 0017 class KSIEVEUI_TESTS_EXPORT ParsingResultDialog : public QDialog 0018 { 0019 Q_OBJECT 0020 public: 0021 explicit ParsingResultDialog(QWidget *parent = nullptr); 0022 ~ParsingResultDialog() override; 0023 0024 void setResultParsing(const QString &result); 0025 0026 private Q_SLOTS: 0027 void slotSaveAs(); 0028 0029 private: 0030 void readConfig(); 0031 void writeConfig(); 0032 TextCustomEditor::PlainTextEditorWidget *mTextEdit = nullptr; 0033 KSyntaxHighlighting::Repository mSyntaxRepo; 0034 }; 0035 }