CMakeOpenProjectWizard: Add page asking for cmake executable

We used to do that on the cmake run page, but given it's own page is
certainly better.

Task-number: QTCREATORBUG-7971
Change-Id: Id38690a750e99dbccfd9f17f64423033891b0d78
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Daniel Teske
2012-10-12 16:53:57 +02:00
parent c2d20b7ddb
commit 03a68e38b6
2 changed files with 76 additions and 29 deletions

View File

@@ -145,6 +145,22 @@ private:
Utils::PathChooser *m_pc;
};
class ChooseCMakePage : public QWizardPage
{
Q_OBJECT
public:
ChooseCMakePage(CMakeOpenProjectWizard *cmakeWizard);
virtual bool isComplete() const;
public slots:
void cmakeExecutableChanged();
private:
void updateErrorText();
QLabel *m_cmakeLabel;
CMakeOpenProjectWizard *m_cmakeWizard;
Utils::PathChooser *m_cmakeExecutable;
};
class CMakeRunPage : public QWizardPage
{
Q_OBJECT
@@ -169,7 +185,6 @@ private:
QPushButton *m_runCMake;
Utils::QtcProcess *m_cmakeProcess;
Utils::FancyLineEdit *m_argumentsLineEdit;
Utils::PathChooser *m_cmakeExecutable;
QComboBox *m_generatorComboBox;
QLabel *m_descriptionLabel;
QLabel *m_exitCodeLabel;