-
Notifications
You must be signed in to change notification settings - Fork 1
/
TabWidget.cpp
53 lines (44 loc) · 1.31 KB
/
TabWidget.cpp
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
#include "TabWidget.h"
#include <QFile>
#include <QtGui>
#include <QMenuBar>
#include <QTreeView>
#include <QFileDialog>
#include <QVBoxLayout>
TabWidget::TabWidget(QWidget *parent) :
QWidget(parent)
{
tabWidget = new QTabWidget;
// tabWidget->addTab(new HighLevelTab(), tr("HighLevel"));
tabWidget->addTab(new FormationTab(), tr("Formation"));
// tabWidget->addTab(new SetParametersTab(), tr("SetParameters"));
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->setSizeConstraint(QLayout::SetNoConstraint);
mainLayout->addWidget(tabWidget);
setLayout(mainLayout);
setWindowTitle(tr("Strategy -----> Keep Calm and Edit Parameters :D"));
}
TabWidget::~TabWidget()
{
}
SetParametersTab::SetParametersTab(QWidget *parent)
{
theSetParameters = new SetParameters;
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addWidget(theSetParameters);
setLayout(mainLayout);
}
FormationTab::FormationTab(QWidget *parent)
{
theFormation = new MainWindow;
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addWidget(theFormation);
setLayout(mainLayout);
}
HighLevelTab::HighLevelTab(QWidget *parent)
{
theHighLevelParam = new HighLevelParam;
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addWidget(theHighLevelParam);
setLayout(mainLayout);
}