File indexing completed on 2024-05-05 05:54:19
0001 // SPDX-FileCopyrightText: 2002-2003 Jesper K. Pedersen <blackie@kde.org> 0002 // SPDX-FileCopyrightText: 2023 Carl Schwan <carl@carlschwan.eu> 0003 // SPDX-License-Identifier: LGPL-2.0-only 0004 0005 #ifndef kregexpeditorguidialog_h 0006 #define kregexpeditorguidialog_h 0007 0008 #include "kregexpeditorprivate.h" 0009 #include <KXmlGuiWindow> 0010 0011 #include "kregexpeditorcommon_export.h" 0012 0013 class KREGEXPEDITORCOMMON_EXPORT KRegExpEditorWindow : public KXmlGuiWindow 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit KRegExpEditorWindow(QWidget *parent); 0018 ~KRegExpEditorWindow() override; 0019 0020 QString regExp() const; 0021 0022 static const QString version; 0023 0024 Q_SIGNALS: 0025 void changes(bool); 0026 0027 public Q_SLOTS: 0028 void setMatchText(const QString &); 0029 0030 private: 0031 void setupActions(); 0032 void showHelp(); 0033 0034 KRegExpEditorPrivate *_editor = nullptr; 0035 QList<QPair<RegExpConverter *, QAction *>> m_converters; 0036 }; 0037 0038 #endif