cmakeprojectmanager: Move SettingsPage and GeneratorInfo in extra files

Move CMakeSettingsPage and GeneratorInfo into extra files
to prepare for refactoring

Change-Id: Idee2e9f807a961c0eee9c15198ee0966ecc16e83
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Benjamin Zeller
2014-03-11 16:08:08 +01:00
committed by hjk
parent 52bf71fbdf
commit 3b786e7faf
8 changed files with 501 additions and 329 deletions

View File

@@ -31,14 +31,11 @@
#define CMAKEPROJECTMANAGER_H
#include <projectexplorer/iprojectmanager.h>
#include <coreplugin/dialogs/ioptionspage.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projectnodes.h>
#include <coreplugin/icontext.h>
#include <texteditor/codeassist/keywordscompletionassist.h>
#include <utils/environment.h>
#include <utils/pathchooser.h>
#include <QAction>
#include <QCheckBox>
@@ -48,9 +45,7 @@
#include <QStringList>
#include <QVector>
#include "cmakevalidator.h"
QT_FORWARD_DECLARE_CLASS(QLabel)
#include "cmakesettingspage.h"
namespace Utils { class QtcProcess; }
@@ -99,38 +94,6 @@ private:
ProjectExplorer::Project *m_contextProject;
};
class CMakeSettingsPage : public Core::IOptionsPage
{
Q_OBJECT
public:
CMakeSettingsPage();
~CMakeSettingsPage();
QWidget *widget();
void apply();
void finish();
QString cmakeExecutable() const;
void setCMakeExecutable(const QString &executable);
bool isCMakeExecutableValid() const;
bool hasCodeBlocksMsvcGenerator() const;
bool hasCodeBlocksNinjaGenerator() const;
bool preferNinja() const;
TextEditor::Keywords keywords();
private:
void saveSettings() const;
QString findCmakeExecutable() const;
QPointer<QWidget> m_widget;
Utils::PathChooser *m_pathchooser;
QCheckBox *m_preferNinja;
CMakeValidator m_cmakeValidatorForUser;
CMakeValidator m_cmakeValidatorForSystem;
};
} // namespace Internal
} // namespace CMakeProjectManager