summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/targetsettingswidget.h
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2010-01-18 12:48:27 +0100
committerTim Jenssen <tim.jenssen@nokia.com>2010-01-18 13:40:48 +0100
commit383ed798dd7f781ea7ca0089961a2ee3325553c4 (patch)
tree5016c90446fb402a1834c8eecd5e98ec51d9bf43 /src/plugins/projectexplorer/targetsettingswidget.h
parent0f8126f62dbbe35f297c956b964940d73688237c (diff)
downloadqt-creator-383ed798dd7f781ea7ca0089961a2ee3325553c4.tar.gz
Add widget for selecting settings for a specific target.
Diffstat (limited to 'src/plugins/projectexplorer/targetsettingswidget.h')
-rw-r--r--src/plugins/projectexplorer/targetsettingswidget.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/targetsettingswidget.h b/src/plugins/projectexplorer/targetsettingswidget.h
new file mode 100644
index 0000000000..ca4d8b26ea
--- /dev/null
+++ b/src/plugins/projectexplorer/targetsettingswidget.h
@@ -0,0 +1,49 @@
+#ifndef TARGETSETTINGSWIDGET_H
+#define TARGETSETTINGSWIDGET_H
+
+#include "targetselector.h"
+
+#include <QWidget>
+
+namespace ProjectExplorer {
+namespace Internal {
+
+namespace Ui {
+ class TargetSettingsWidget;
+}
+
+class TargetSettingsWidget : public QWidget {
+ Q_OBJECT
+public:
+ explicit TargetSettingsWidget(QWidget *parent = 0);
+ ~TargetSettingsWidget();
+
+ void setCentralWidget(QWidget *widget);
+
+ QString targetNameAt(int index) const;
+ int targetCount() const;
+ int currentIndex() const;
+ int currentSubIndex() const;
+
+public slots:
+ void addTarget(const QString &name);
+ void removeTarget(int index);
+
+signals:
+ void addButtonClicked();
+ void currentIndexChanged(int targetIndex, int subIndex);
+
+protected:
+ void changeEvent(QEvent *e);
+
+private:
+ void updateTargetSelector();
+ Ui::TargetSettingsWidget *ui;
+
+ TargetSelector *m_targetSelector;
+};
+
+} // namespace Internal
+} // namespace ProjectExplorer
+
+#endif // TARGETSETTINGSWIDGET_H