hivemind 1.0.0
Loading...
Searching...
No Matches
sidebar.cpp
Go to the documentation of this file.
1#include "gui/sidebar.h"
2
4#include "gui/keyframe_list.h"
5#include "gui/map_dialog.h"
6#include "gui/tab_widget.h"
8
9#include <QDialog>
10#include <QLabel>
11#include <QPushButton>
12
13#include <iostream>
14
15namespace 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
ScenarioControls * m_ScenarioControls
Definition: sidebar.h:65
AgentControls * m_AgentControls
Definition: sidebar.h:66
QVBoxLayout * m_Layout
The layout of the sidebar.
Definition: sidebar.h:63
Sidebar(QWidget *parent=nullptr)
Construct the sidebar.
Definition: sidebar.cpp:17
KeyframeControls * m_KeyframeControls
Definition: sidebar.h:67
Definition: action.h:6