aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/environmentaspectwidget.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2013-01-29 16:46:04 +0100
committerTobias Hunger <tobias.hunger@digia.com>2013-04-11 15:14:49 +0200
commit2236c560b24fa1c48dc8d07f2a6701b5ac959b3a (patch)
tree77aecf117cd0aa7439175a9e2cff722cb90c2ed0 /src/plugins/projectexplorer/environmentaspectwidget.h
parent8482c665efd77fda086b73036a05a1823af2b40b (diff)
Add a widget to configure an environmentaspect with
Change-Id: I8e51271b9fd1d793662221bce28b227a0feb03da Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer/environmentaspectwidget.h')
-rw-r--r--src/plugins/projectexplorer/environmentaspectwidget.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/environmentaspectwidget.h b/src/plugins/projectexplorer/environmentaspectwidget.h
new file mode 100644
index 00000000000..2093eac8a78
--- /dev/null
+++ b/src/plugins/projectexplorer/environmentaspectwidget.h
@@ -0,0 +1,83 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of Qt Creator.
+**
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+****************************************************************************/
+
+#ifndef ENVIRONMENTASPECTWIDGET_H
+#define ENVIRONMENTASPECTWIDGET_H
+
+#include "projectexplorer_export.h"
+
+#include "environmentaspect.h"
+#include "runconfiguration.h"
+
+#include <utils/environment.h>
+
+#include <QList>
+#include <QVariantMap>
+
+QT_BEGIN_NAMESPACE
+class QComboBox;
+QT_END_NAMESPACE
+
+namespace Utils { class DetailsWidget; }
+
+namespace ProjectExplorer {
+
+class EnvironmentWidget;
+
+class PROJECTEXPLORER_EXPORT EnvironmentAspectWidget : public RunConfigWidget
+{
+ Q_OBJECT
+
+public:
+ EnvironmentAspectWidget(EnvironmentAspect *aspect, QWidget *additionalWidget = 0);
+
+ QString displayName() const;
+ virtual EnvironmentAspect *aspect() const;
+
+ QWidget *additionalWidget() const;
+
+private slots:
+ void baseEnvironmentSelected(int idx);
+ void changeBaseEnvironment();
+ void userChangesEdited();
+ void changeUserChanges(QList<Utils::EnvironmentItem> changes);
+
+private:
+ EnvironmentAspect *m_aspect;
+ bool m_ignoreChange;
+
+ QWidget *m_additionalWidget;
+ QComboBox *m_baseEnvironmentComboBox;
+ Utils::DetailsWidget *m_detailsContainer;
+ ProjectExplorer::EnvironmentWidget *m_environmentWidget;
+};
+
+} // namespace ProjectExplorer
+
+#endif // ENVIRONMENTASPECTWIDGET_H