Changeset View
Changeset View
Standalone View
Standalone View
shell/openprojectpage.h
Show All 19 Lines | |||||
20 | namespace KDevelop | 20 | namespace KDevelop | ||
21 | { | 21 | { | ||
22 | 22 | | |||
23 | class OpenProjectPage : public QWidget | 23 | class OpenProjectPage : public QWidget | ||
24 | { | 24 | { | ||
25 | Q_OBJECT | 25 | Q_OBJECT | ||
26 | 26 | | |||
27 | public: | 27 | public: | ||
28 | explicit OpenProjectPage( const QUrl& startUrl, QWidget* parent = nullptr ); | 28 | explicit OpenProjectPage( const QUrl& startUrl, const QStringList& filters, | ||
29 | QMap<QString,QStringList> projectFilters() const; | 29 | QWidget* parent = nullptr ); | ||
30 | void setUrl(const QUrl& url); | 30 | void setUrl(const QUrl& url); | ||
31 | 31 | | |||
32 | signals: | 32 | signals: | ||
33 | void urlSelected(const QUrl&); | 33 | void urlSelected(const QUrl&); | ||
34 | void accepted(); | 34 | void accepted(); | ||
35 | 35 | | |||
36 | protected: | 36 | protected: | ||
37 | void showEvent(QShowEvent*) override; | 37 | void showEvent(QShowEvent*) override; | ||
38 | 38 | | |||
39 | private slots: | 39 | private slots: | ||
40 | void highlightFile(const QUrl&); | 40 | void highlightFile(const QUrl&); | ||
41 | void opsEntered(const QUrl& item); | 41 | void opsEntered(const QUrl& item); | ||
42 | void comboTextChanged(const QString&); | 42 | void comboTextChanged(const QString&); | ||
43 | void dirChanged(const QUrl& url); | 43 | void dirChanged(const QUrl& url); | ||
44 | 44 | | |||
45 | private: | 45 | private: | ||
46 | QUrl getAbsoluteUrl(const QString&) const; | 46 | QUrl getAbsoluteUrl(const QString&) const; | ||
47 | KFileWidget* fileWidget; | 47 | KFileWidget* fileWidget; | ||
48 | QMap<QString,QStringList> m_projectFilters; | | |||
49 | }; | 48 | }; | ||
50 | 49 | | |||
51 | } | 50 | } | ||
52 | 51 | | |||
53 | #endif | 52 | #endif |