aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/projectfilewizardextension.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-01-12 16:45:21 +0100
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-01-12 16:45:21 +0100
commitd5271a086d7be7fbf7b07a2ca450b805b229aa15 (patch)
tree2ceb1b48a2651455477b03c7ddbf01e50e0151e5 /src/plugins/projectexplorer/projectfilewizardextension.h
parent5ab250fe5705210a422eeaf8c7ef2dd4a8ab4abb (diff)
VCS[hg, git]: Add support for repository creation.
Add repository creation operation to IVersionControl, implement for hg and git, add convenience slot with prompts to VCSBasePlugin. Add respective menu options and make menus are visible in case no VCS is active. Change project wizards extension page to list VCS that are capable of repository creation in a QComboBox in case the directory is not managed by another VCS (in which case it lists that one for operation 'add'). On that occasion, polish the Project selection to use a QComboBox as well and add some smartness to find the most suitable project to add via path matching.
Diffstat (limited to 'src/plugins/projectexplorer/projectfilewizardextension.h')
-rw-r--r--src/plugins/projectexplorer/projectfilewizardextension.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/plugins/projectexplorer/projectfilewizardextension.h b/src/plugins/projectexplorer/projectfilewizardextension.h
index 487d8cf090..c5eee0c7b0 100644
--- a/src/plugins/projectexplorer/projectfilewizardextension.h
+++ b/src/plugins/projectexplorer/projectfilewizardextension.h
@@ -38,10 +38,10 @@ namespace Internal {
struct ProjectWizardContext;
-/*
- Adds final page allowing the user to add files to project && version control
- to BaseFileWizard.
- */
+/* Final file wizard processing steps:
+ * 1) Add to a project file (*.pri/ *.pro)
+ * 2) Initialize a version control repository (unless the path is already
+ * managed) and do 'add' if the VCS supports it. */
class ProjectFileWizardExtension : public Core::IFileWizardExtension
{
Q_OBJECT
@@ -56,6 +56,11 @@ public slots:
virtual void firstExtensionPageShown(const QList<Core::GeneratedFile> &);
private:
+ void initProjectChoices(bool enabled);
+ void initializeVersionControlChoices();
+ bool processProject(const QList<Core::GeneratedFile> &files, QString *errorMessage);
+ bool processVersionControl(const QList<Core::GeneratedFile> &files, QString *errorMessage);
+
ProjectWizardContext *m_context;
};