File indexing completed on 2024-05-12 09:48:29
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 class FilesPage; 0014 class FilesSettings; 0015 class DiffPage; 0016 class DiffSettings; 0017 class ViewPage; 0018 class ViewSettings; 0019 0020 /** 0021 * Definition of class KompareURLDialog. 0022 * @author Otto Bruggeman 0023 * @author John Firebaugh 0024 */ 0025 class KompareURLDialog : public KPageDialog 0026 { 0027 Q_OBJECT 0028 0029 public: 0030 explicit KompareURLDialog(QWidget* parent = nullptr); 0031 ~KompareURLDialog() override; 0032 0033 QUrl getFirstURL() const; 0034 QUrl getSecondURL() const; 0035 QString encoding() const; 0036 0037 void setFirstGroupBoxTitle(const QString& title); 0038 void setSecondGroupBoxTitle(const QString& title); 0039 0040 void setGroup(const QString& groupName); 0041 0042 void setFirstURLRequesterMode(unsigned int mode); 0043 void setSecondURLRequesterMode(unsigned int mode); 0044 0045 public Q_SLOTS: 0046 void accept() override; 0047 void reject() override; 0048 0049 private Q_SLOTS: 0050 void slotEnableOk(); 0051 protected: 0052 void showEvent(QShowEvent* event) override; 0053 private: 0054 FilesPage* m_filesPage; 0055 FilesSettings* m_filesSettings; 0056 DiffPage* m_diffPage; 0057 DiffSettings* m_diffSettings; 0058 ViewPage* m_viewPage; 0059 ViewSettings* m_viewSettings; 0060 }; 0061 0062 #endif