Changeset View
Changeset View
Standalone View
Standalone View
shell/openprojectdialog.cpp
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 44 | { | |||
---|---|---|---|---|---|
64 | } | 64 | } | ||
65 | return ret; | 65 | return ret; | ||
66 | } | 66 | } | ||
67 | } | 67 | } | ||
68 | 68 | | |||
69 | namespace KDevelop | 69 | namespace KDevelop | ||
70 | { | 70 | { | ||
71 | 71 | | |||
72 | OpenProjectDialog::OpenProjectDialog( bool fetch, const QUrl& startUrl, QWidget* parent ) | 72 | OpenProjectDialog::OpenProjectDialog(bool fetch, const QUrl& startUrl, | ||
73 | const QUrl& repoUrl, IPlugin* vcsOrProviderPlugin, | ||||
74 | QWidget* parent) | ||||
mwolff: wrap, & placement | |||||
73 | : KAssistantDialog( parent ) | 75 | : KAssistantDialog( parent ) | ||
74 | , m_urlIsDirectory(false) | 76 | , m_urlIsDirectory(false) | ||
75 | , sourcePage(nullptr) | 77 | , sourcePage(nullptr) | ||
76 | , openPage(nullptr) | 78 | , openPage(nullptr) | ||
77 | , projectInfoPage(nullptr) | 79 | , projectInfoPage(nullptr) | ||
78 | { | 80 | { | ||
79 | resize(QSize(700, 500)); | 81 | resize(QSize(700, 500)); | ||
80 | 82 | | |||
Show All 26 Lines | |||||
107 | if (useKdeFileDialog) | 109 | if (useKdeFileDialog) | ||
108 | filters.prepend(i18n("%1|All Project Files (%1)", allEntry.join(QStringLiteral(" ")))); | 110 | filters.prepend(i18n("%1|All Project Files (%1)", allEntry.join(QStringLiteral(" ")))); | ||
109 | 111 | | |||
110 | QUrl start = startUrl.isValid() ? startUrl : Core::self()->projectController()->projectsBaseDirectory(); | 112 | QUrl start = startUrl.isValid() ? startUrl : Core::self()->projectController()->projectsBaseDirectory(); | ||
111 | start = start.adjusted(QUrl::NormalizePathSegments); | 113 | start = start.adjusted(QUrl::NormalizePathSegments); | ||
112 | KPageWidgetItem* currentPage = nullptr; | 114 | KPageWidgetItem* currentPage = nullptr; | ||
113 | 115 | | |||
114 | if( fetch ) { | 116 | if( fetch ) { | ||
115 | sourcePageWidget = new ProjectSourcePage( start, this ); | 117 | sourcePageWidget = new ProjectSourcePage(start, repoUrl, vcsOrProviderPlugin, this); | ||
116 | connect( sourcePageWidget, &ProjectSourcePage::isCorrect, this, &OpenProjectDialog::validateSourcePage ); | 118 | connect( sourcePageWidget, &ProjectSourcePage::isCorrect, this, &OpenProjectDialog::validateSourcePage ); | ||
117 | sourcePage = addPage( sourcePageWidget, i18n("Select Source") ); | 119 | sourcePage = addPage( sourcePageWidget, i18n("Select Source") ); | ||
118 | currentPage = sourcePage; | 120 | currentPage = sourcePage; | ||
119 | } | 121 | } | ||
120 | 122 | | |||
121 | if (useKdeFileDialog) { | 123 | if (useKdeFileDialog) { | ||
122 | openPageWidget = new OpenProjectPage( start, filters, this ); | 124 | openPageWidget = new OpenProjectPage( start, filters, this ); | ||
123 | connect( openPageWidget, &OpenProjectPage::urlSelected, this, &OpenProjectDialog::validateOpenUrl ); | 125 | connect( openPageWidget, &OpenProjectPage::urlSelected, this, &OpenProjectDialog::validateOpenUrl ); | ||
▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines |
wrap, & placement