Changeset View
Changeset View
Standalone View
Standalone View
shell/openprojectdialog.h
Show All 27 Lines | |||||
28 | class OpenProjectPage; | 28 | class OpenProjectPage; | ||
29 | 29 | | |||
30 | class OpenProjectDialog : public KAssistantDialog | 30 | class OpenProjectDialog : public KAssistantDialog | ||
31 | { | 31 | { | ||
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | 33 | | |||
34 | public: | 34 | public: | ||
35 | OpenProjectDialog( bool fetch, const QUrl& startUrl, QWidget* parent = 0 ); | 35 | OpenProjectDialog( bool fetch, const QUrl& startUrl, QWidget* parent = 0 ); | ||
36 | | ||||
37 | /** | ||||
38 | * Return a QUrl pointing to the project's .kdev file. | ||||
39 | */ | ||||
36 | QUrl projectFileUrl(); | 40 | QUrl projectFileUrl(); | ||
41 | /** | ||||
mwolff: origin? of what? what does this url point to? the `projectUrl()` maybe? | |||||
Origin of the project file. projectFileUrl() returns a ".kdev", while originUrl() returns, for example, "CMakeLists.txt" from which this project was created. I thought origin was right word for this. arrowd: Origin of the project file. projectFileUrl() returns a ".kdev", while originUrl() returns, for… | |||||
maybe use selectedUrl? definitely add a comment to explain what this returns and what the other methods return please mwolff: maybe use `selectedUrl`? definitely add a comment to explain what this returns and what the… | |||||
42 | * Return a QUrl pointing to the file, that was selected by the user. | ||||
43 | * Unlike projectFileUrl(), this can be a .kdev file, as well | ||||
44 | * as build system file (e.g. CMakeLists.txt). | ||||
45 | */ | ||||
46 | QUrl selectedUrl() const; | ||||
37 | QString projectName(); | 47 | QString projectName(); | ||
38 | QString projectManager(); | 48 | QString projectManager(); | ||
39 | 49 | | |||
40 | private slots: | 50 | private slots: | ||
41 | void validateSourcePage( bool ); | 51 | void validateSourcePage( bool ); | ||
42 | void validateOpenUrl( const QUrl& ); | 52 | void validateOpenUrl( const QUrl& ); | ||
43 | void validateProjectName( const QString& ); | 53 | void validateProjectName( const QString& ); | ||
44 | void validateProjectManager( const QString& ); | 54 | void validateProjectManager( const QString& ); | ||
45 | void storeFileList(KIO::Job*, const KIO::UDSEntryList&); | 55 | void storeFileList(KIO::Job*, const KIO::UDSEntryList&); | ||
46 | void openPageAccepted(); | 56 | void openPageAccepted(); | ||
47 | 57 | | |||
48 | private: | 58 | private: | ||
49 | void validateProjectInfo(); | 59 | void validateProjectInfo(); | ||
50 | QUrl m_url; | 60 | QUrl m_url; | ||
61 | QUrl m_selected; | ||||
51 | QString m_projectName; | 62 | QString m_projectName; | ||
52 | QString m_projectManager; | 63 | QString m_projectManager; | ||
53 | KPageWidgetItem* sourcePage; | 64 | KPageWidgetItem* sourcePage; | ||
54 | KPageWidgetItem* openPage; | 65 | KPageWidgetItem* openPage; | ||
55 | KPageWidgetItem* projectInfoPage; | 66 | KPageWidgetItem* projectInfoPage; | ||
56 | QStringList m_fileList; | 67 | QStringList m_fileList; | ||
57 | 68 | | |||
58 | KDevelop::OpenProjectPage* openPageWidget; | 69 | KDevelop::OpenProjectPage* openPageWidget; | ||
59 | KDevelop::ProjectSourcePage* sourcePageWidget; | 70 | KDevelop::ProjectSourcePage* sourcePageWidget; | ||
60 | }; | 71 | }; | ||
61 | 72 | | |||
62 | } | 73 | } | ||
63 | 74 | | |||
64 | #endif | 75 | #endif |
origin? of what? what does this url point to? the projectUrl() maybe?