blob: fee4e77fb20cfd97c401b44091bf77de2b1a9572 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#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;
bool isAddButtonEnabled() const;
bool isRemoveButtonEnabled() const;
public slots:
void addTarget(const QString &name);
void insertTarget(int index, const QString &name);
void removeTarget(int index);
void setCurrentIndex(int index);
void setCurrentSubIndex(int index);
void setAddButtonEnabled(bool enabled);
void setRemoveButtonEnabled(bool enabled);
signals:
void addButtonClicked();
void removeButtonClicked();
void currentChanged(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
|