Commit 672f44d0 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

ProjectWizard: Add button to take you to VCS configuration

This makes setting up VCS more discoverable.
parent fea13a44
......@@ -33,6 +33,9 @@
#include "projectwizardpage.h"
#include "ui_projectwizardpage.h"
#include <coreplugin/coreimpl.h>
#include <vcsbase/vcsbaseconstants.h>
#include <QtCore/QDir>
#include <QtCore/QTextStream>
......@@ -54,6 +57,7 @@ ProjectWizardPage::ProjectWizardPage(QWidget *parent) :
m_ui->setupUi(this);
connect(m_ui->projectComboBox, SIGNAL(currentIndexChanged(int)),
this, SLOT(slotProjectChanged(int)));
connect(m_ui->vcsManageButton, SIGNAL(clicked()), this, SLOT(slotManageVcs()));
setProperty("shortTitle", tr("Summary"));
}
......@@ -157,3 +161,10 @@ void ProjectWizardPage::slotProjectChanged(int index)
setProjectToolTip(index >= 0 && index < m_projectToolTips.size() ?
m_projectToolTips.at(index) : QString());
}
void ProjectWizardPage::slotManageVcs()
{
Core::ICore *core = Core::ICore::instance();
core->showOptionsDialog(VCSBase::Constants::VCS_SETTINGS_CATEGORY,
VCSBase::Constants::VCS_COMMON_SETTINGS_ID);
}
......@@ -72,6 +72,7 @@ protected:
private slots:
void slotProjectChanged(int);
void slotManageVcs();
private:
inline void setProjectToolTip(const QString &);
......
......@@ -2,15 +2,20 @@
<ui version="4.0">
<class>ProjectExplorer::Internal::WizardPage</class>
<widget class="QWizardPage" name="ProjectExplorer::Internal::WizardPage">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>307</width>
<height>241</height>
</rect>
</property>
<property name="title">
<string>Project Management</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::ExpandingFieldsGrow</enum>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="projectLabel">
<property name="enabled">
......@@ -37,6 +42,16 @@
</property>
</widget>
</item>
<item row="1" column="1" colspan="2">
<widget class="QLabel" name="additionalInfo">
<property name="text">
<string/>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="addToVersionControlLabel">
<property name="text">
......@@ -57,13 +72,10 @@
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="additionalInfo">
<item row="2" column="2">
<widget class="QPushButton" name="vcsManageButton">
<property name="text">
<string/>
</property>
<property name="wordWrap">
<bool>true</bool>
<string>Manage</string>
</property>
</widget>
</item>
......@@ -104,26 +116,30 @@
<rect>
<x>0</x>
<y>0</y>
<width>218</width>
<height>83</height>
<width>289</width>
<height>131</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="filesLabel">
<property name="text">
<string>The following files will be added:
<widget class="QLabel" name="filesLabel">
<property name="geometry">
<rect>
<x>9</x>
<y>9</y>
<width>154</width>
<height>65</height>
</rect>
</property>
<property name="text">
<string>The following files will be added:
</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
</layout>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</widget>
</widget>
</item>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment