Show a summary widget instead of the full blown environment model.

Hides the gory details, and in most cases the user doesn't care anyway.
This commit is contained in:
dt
2009-07-20 15:46:11 +02:00
parent 7c57f260c1
commit abeb450467
10 changed files with 200 additions and 131 deletions

View File

@@ -37,7 +37,7 @@
#include <utils/pathchooser.h>
QT_BEGIN_NAMESPACE
class QRadioButton;
class QComboBox;
QT_END_NAMESPACE
namespace CMakeProjectManager {
@@ -81,7 +81,9 @@ signals:
private slots:
void setArguments(const QString &newText);
private:
enum BaseEnvironmentBase { CleanEnvironmentBase, SystemEnvironmentBase, BuildEnvironmentBase };
enum BaseEnvironmentBase { CleanEnvironmentBase = 0,
SystemEnvironmentBase = 1,
BuildEnvironmentBase = 2};
void setBaseEnvironmentBase(BaseEnvironmentBase env);
BaseEnvironmentBase baseEnvironmentBase() const;
ProjectExplorer::Environment baseEnvironment() const;
@@ -111,16 +113,15 @@ private slots:
void setWorkingDirectory();
void resetWorkingDirectory();
private slots:
void baseEnvironmentRadioButtonChanged();
void baseEnvironmentComboBoxChanged(int index);
void workingDirectoryChanged(const QString &workingDirectory);
private:
bool m_ignoreChange;
CMakeRunConfiguration *m_cmakeRunConfiguration;
Core::Utils::PathChooser *m_workingDirectoryEdit;
QComboBox *m_baseEnvironmentComboBox;
ProjectExplorer::EnvironmentWidget *m_environmentWidget;
QRadioButton *m_cleanEnvironmentRadioButton;
QRadioButton *m_systemEnvironmentRadioButton;
QRadioButton *m_buildEnvironmentRadioButton;
};
class CMakeRunConfigurationFactory : public ProjectExplorer::IRunConfigurationFactory