1 /**************************************************************************
3 ** This file is part of Qt Creator
5 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
7 ** Contact: Nokia Corporation (qt-info@nokia.com)
11 ** This file contains pre-release code and may not be distributed.
12 ** You may use this file in accordance with the terms and conditions
13 ** contained in the Technology Preview License Agreement accompanying
16 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
25 ** In addition, as a special exception, Nokia gives you certain additional
26 ** rights. These rights are described in the Nokia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
29 ** If you have questions regarding the use of this file, please contact
30 ** Nokia at qt-info@nokia.com.
32 **************************************************************************/
34 #ifndef RUNSETTINGSPROPERTIESPAGE_H
35 #define RUNSETTINGSPROPERTIESPAGE_H
37 #include "iprojectproperties.h"
39 #include <QtGui/QWidget>
40 #include <QtGui/QIcon>
48 namespace ProjectExplorer {
50 class DeployConfiguration;
51 class DeployConfigurationWidget;
52 class DeployConfigurationModel;
53 class RunConfigurationModel;
57 const char * const RUNSETTINGS_PANEL_ID("ProjectExplorer.RunSettingsPanel");
60 class RunSettingsPropertiesPage;
63 class RunSettingsWidget;
64 class BuildStepListWidget;
66 class RunSettingsPanelFactory : public ITargetPanelFactory
70 QString displayName() const;
71 bool supports(Target *target);
72 IPropertiesPanel *createPanel(Target *target);
75 class RunSettingsPanel : public IPropertiesPanel
78 RunSettingsPanel(Target *target);
81 QString displayName() const;
82 QWidget *widget() const;
86 RunSettingsWidget *m_widget;
90 class RunSettingsWidget : public QWidget
94 RunSettingsWidget(Target *target);
98 void currentRunConfigurationChanged(int index);
99 void aboutToShowAddMenu();
100 void addRunConfiguration();
101 void removeRunConfiguration();
102 void activeRunConfigurationChanged();
103 void renameRunConfiguration();
104 void currentDeployConfigurationChanged(int index);
105 void aboutToShowDeployMenu();
106 void addDeployConfiguration();
107 void removeDeployConfiguration();
108 void activeDeployConfigurationChanged();
109 void renameDeployConfiguration();
112 QString uniqueDCName(const QString &name);
113 QString uniqueRCName(const QString &name);
114 void updateDeployConfiguration(DeployConfiguration *);
117 RunConfigurationModel *m_runConfigurationsModel;
118 DeployConfigurationModel *m_deployConfigurationModel;
119 Ui::RunSettingsPropertiesPage *m_ui;
120 QWidget *m_runConfigurationWidget;
121 QVBoxLayout *m_runLayout;
122 DeployConfigurationWidget *m_deployConfigurationWidget;
123 QVBoxLayout *m_deployLayout;
124 BuildStepListWidget *m_deploySteps;
126 QMenu *m_addDeployMenu;
130 } // namespace Internal
131 } // namespace ProjectExplorer
133 #endif // RUNSETTINGSPROPERTIESPAGE_H