hivemind
1.0.0
Loading...
Searching...
No Matches
simulator.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
gui/map_viewer.h
"
4
5
#include <QGridLayout>
6
#include <QWidget>
7
8
namespace
Gui
9
{
10
/// \brief The simulator widget used to simulate scenarios.
11
///
12
/// Contains the graphical functionality to simulate scenarios.
13
class
Simulator
:
public
QWidget
14
{
15
public
:
16
/// \brief Constructs the simulator widget.
17
/// \param parent The parent of the simulator widget.
18
Simulator
(QWidget* parent =
nullptr
);
19
20
/// \brief Destructs the simulator widget.
21
~Simulator
();
22
23
QSize
24
sizeHint
()
const override
25
{
26
return
{ parentWidget()->width(), parentWidget()->height() };
27
}
28
29
private
:
30
/// \brief The layout of the simulator widget.
31
QGridLayout*
m_Layout
;
32
};
33
}
// namespace Gui
Gui::Simulator
The simulator widget used to simulate scenarios.
Definition:
simulator.h:14
Gui::Simulator::sizeHint
QSize sizeHint() const override
Definition:
simulator.h:24
Gui::Simulator::m_Layout
QGridLayout * m_Layout
The layout of the simulator widget.
Definition:
simulator.h:31
Gui::Simulator::~Simulator
~Simulator()
Destructs the simulator widget.
Definition:
simulator.cpp:19
map_viewer.h
Gui
Definition:
action.h:6
include
gui
simulator.h
Generated by
1.9.6