hivemind
1.0.0
Loading...
Searching...
No Matches
sidebar.cpp
Go to the documentation of this file.
1
#include "
gui/sidebar.h
"
2
3
#include "
compile_scenario/scenario.h
"
4
#include "
gui/keyframe_list.h
"
5
#include "
gui/map_dialog.h
"
6
#include "
gui/tab_widget.h
"
7
#include "
keyframe_management/keyframe_manager.h
"
8
9
#include <QDialog>
10
#include <QLabel>
11
#include <QPushButton>
12
13
#include <iostream>
14
15
namespace
Gui
16
{
17
Sidebar::Sidebar
(QWidget* parent)
18
: QWidget(parent), m_Layout(new QVBoxLayout(this)),
19
m_ScenarioControls{ new
ScenarioControls
(this) },
20
m_AgentControls{ new
AgentControls
(this) },
21
m_KeyframeControls{ new
KeyframeControls
(this) }
22
{
23
setObjectName(
"Sidebar"
);
24
25
m_Layout
->addStretch(2);
26
27
QLabel* logoLabel =
new
QLabel(
this
);
28
QPixmap logoPixmap(
":/icons/logo_transparent_512.png"
);
29
logoLabel->setPixmap(logoPixmap.scaled(QSize(100, 100)));
30
logoLabel->setAlignment(Qt::AlignTop | Qt::AlignHCenter);
31
m_Layout
->addWidget(logoLabel);
32
33
m_Layout
->addStretch(1);
34
m_Layout
->addWidget(
m_ScenarioControls
);
35
m_Layout
->addStretch(1);
36
m_Layout
->addWidget(
m_AgentControls
);
37
m_Layout
->addStretch(1);
38
m_Layout
->addWidget(
m_KeyframeControls
);
39
m_Layout
->addStretch(2);
40
}
41
}
// namespace Gui
Gui::AgentControls
Definition:
agent_controls.h:15
Gui::KeyframeControls
Definition:
keyframe_controls.h:12
Gui::ScenarioControls
Definition:
scenario_controls.h:11
Gui::Sidebar::m_ScenarioControls
ScenarioControls * m_ScenarioControls
Definition:
sidebar.h:65
Gui::Sidebar::m_AgentControls
AgentControls * m_AgentControls
Definition:
sidebar.h:66
Gui::Sidebar::m_Layout
QVBoxLayout * m_Layout
The layout of the sidebar.
Definition:
sidebar.h:63
Gui::Sidebar::Sidebar
Sidebar(QWidget *parent=nullptr)
Construct the sidebar.
Definition:
sidebar.cpp:17
Gui::Sidebar::m_KeyframeControls
KeyframeControls * m_KeyframeControls
Definition:
sidebar.h:67
keyframe_list.h
keyframe_manager.h
map_dialog.h
Gui
Definition:
action.h:6
scenario.h
sidebar.h
tab_widget.h
src
gui
sidebar.cpp
Generated by
1.9.6