File indexing completed on 2024-04-28 04:37:20
0001 /* 0002 SPDX-FileCopyrightText: 2008 Andreas Pakulat <apaku@gmx.de> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDEVPLATFORM_OPENPROJECTPAGE_H 0008 #define KDEVPLATFORM_OPENPROJECTPAGE_H 0009 0010 #include <QWidget> 0011 0012 class QUrl; 0013 class KFileWidget; 0014 0015 namespace KDevelop 0016 { 0017 0018 class OpenProjectPage : public QWidget 0019 { 0020 Q_OBJECT 0021 0022 public: 0023 explicit OpenProjectPage( const QUrl& startUrl, const QStringList& filters, 0024 QWidget* parent = nullptr ); 0025 void setUrl(const QUrl& url); 0026 0027 Q_SIGNALS: 0028 void urlSelected(const QUrl&); 0029 void accepted(); 0030 0031 protected: 0032 void showEvent(QShowEvent*) override; 0033 0034 private Q_SLOTS: 0035 void highlightFile(const QUrl&); 0036 void opsEntered(const QUrl& item); 0037 void comboTextChanged(const QString&); 0038 void dirChanged(const QUrl& url); 0039 0040 private: 0041 QUrl absoluteUrl(const QString& file) const; 0042 0043 private: 0044 KFileWidget* fileWidget; 0045 }; 0046 0047 } 0048 0049 #endif