Changeset View
Changeset View
Standalone View
Standalone View
shell/projectsourcepage.h
Show All 23 Lines | 20 | { | |||
---|---|---|---|---|---|
24 | class IPlugin; | 24 | class IPlugin; | ||
25 | class IBasicVersionControl; | 25 | class IBasicVersionControl; | ||
26 | class VcsLocationWidget; | 26 | class VcsLocationWidget; | ||
27 | 27 | | |||
28 | class ProjectSourcePage : public QWidget | 28 | class ProjectSourcePage : public QWidget | ||
29 | { | 29 | { | ||
30 | Q_OBJECT | 30 | Q_OBJECT | ||
31 | public: | 31 | public: | ||
32 | explicit ProjectSourcePage(const QUrl& initial, QWidget* parent = nullptr); | 32 | explicit ProjectSourcePage(const QUrl& initial, const QUrl& repoUrl, IPlugin* preSelectPlugin, | ||
33 | QWidget* parent = nullptr); | ||||
mwolff: & placement | |||||
33 | ~ProjectSourcePage() override; | 34 | ~ProjectSourcePage() override; | ||
34 | 35 | | |||
35 | QUrl workingDir() const; | 36 | QUrl workingDir() const; | ||
36 | 37 | | |||
37 | private slots: | 38 | private slots: | ||
38 | void setSourceIndex(int index); | 39 | void setSourceIndex(int index); | ||
39 | void checkoutVcsProject(); | 40 | void checkoutVcsProject(); | ||
40 | void projectReceived(KJob* job); | 41 | void projectReceived(KJob* job); | ||
41 | void reevaluateCorrection(); | 42 | void reevaluateCorrection(); | ||
42 | void progressChanged(KJob*, unsigned long); | 43 | void progressChanged(KJob*, unsigned long); | ||
43 | void infoMessage(KJob*, const QString& text, const QString& rich); | 44 | void infoMessage(KJob*, const QString& text, const QString& rich); | ||
44 | void locationChanged(); | 45 | void locationChanged(); | ||
45 | void projectChanged(const QString& name); | 46 | void projectChanged(const QString& name); | ||
46 | 47 | | |||
47 | signals: | 48 | signals: | ||
48 | void isCorrect(bool); | 49 | void isCorrect(bool); | ||
49 | 50 | | |||
50 | private: | 51 | private: | ||
52 | void setSourceWidget(int index, const QUrl& repoUrl); | ||||
mwolff: & placement | |||||
51 | void setStatus(const QString& message); | 53 | void setStatus(const QString& message); | ||
52 | void clearStatus(); | 54 | void clearStatus(); | ||
53 | 55 | | |||
54 | KDevelop::IBasicVersionControl* vcsPerIndex(int index); | 56 | KDevelop::IBasicVersionControl* vcsPerIndex(int index); | ||
55 | KDevelop::IProjectProvider* providerPerIndex(int index); | 57 | KDevelop::IProjectProvider* providerPerIndex(int index); | ||
56 | KDevelop::VcsJob* jobPerCurrent(); | 58 | KDevelop::VcsJob* jobPerCurrent(); | ||
57 | 59 | | |||
58 | Ui::ProjectSourcePage* m_ui; | 60 | Ui::ProjectSourcePage* m_ui; | ||
59 | QList<KDevelop::IPlugin*> m_plugins; | 61 | QList<KDevelop::IPlugin*> m_plugins; | ||
60 | KDevelop::VcsLocationWidget* m_locationWidget; | 62 | KDevelop::VcsLocationWidget* m_locationWidget; | ||
61 | KDevelop::IProjectProviderWidget* m_providerWidget; | 63 | KDevelop::IProjectProviderWidget* m_providerWidget; | ||
62 | }; | 64 | }; | ||
63 | 65 | | |||
64 | } | 66 | } | ||
65 | #endif // KDEVPLATFORM_PROJECTSOURCEPAGE_H | 67 | #endif // KDEVPLATFORM_PROJECTSOURCEPAGE_H |
& placement