File indexing completed on 2024-04-28 05:42:48
0001 /* 0002 SPDX-FileCopyrightText: 2001-2004 Otto Bruggeman <otto.bruggeman@home.nl> 0003 SPDX-FileCopyrightText: 2001-2003 John Firebaugh <jfirebaugh@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef KOMPAREURLDIALOG_H 0009 #define KOMPAREURLDIALOG_H 0010 0011 #include <KPageDialog> 0012 0013 #include <memory> 0014 0015 namespace KompareDiff2 { 0016 class DiffSettings; 0017 } 0018 0019 class FilesPage; 0020 class FilesSettings; 0021 class DiffPage; 0022 class ViewPage; 0023 class ViewSettings; 0024 0025 /** 0026 * Definition of class KompareURLDialog. 0027 * @author Otto Bruggeman 0028 * @author John Firebaugh 0029 */ 0030 class KompareURLDialog : public KPageDialog 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 explicit KompareURLDialog(QWidget* parent = nullptr); 0036 ~KompareURLDialog() override; 0037 0038 QUrl getFirstURL() const; 0039 QUrl getSecondURL() const; 0040 QString encoding() const; 0041 0042 void setFirstGroupBoxTitle(const QString& title); 0043 void setSecondGroupBoxTitle(const QString& title); 0044 0045 void setGroup(const QString& groupName); 0046 0047 void setFirstURLRequesterMode(unsigned int mode); 0048 void setSecondURLRequesterMode(unsigned int mode); 0049 0050 public Q_SLOTS: 0051 void accept() override; 0052 void reject() override; 0053 0054 private Q_SLOTS: 0055 void slotEnableOk(); 0056 protected: 0057 void showEvent(QShowEvent* event) override; 0058 private: 0059 FilesPage* m_filesPage; 0060 FilesSettings* m_filesSettings; 0061 DiffPage* m_diffPage; 0062 std::unique_ptr<KompareDiff2::DiffSettings> const m_diffSettings; 0063 ViewPage* m_viewPage; 0064 ViewSettings* m_viewSettings; 0065 }; 0066 0067 #endif