hivemind
1.0.0
Loading...
Searching...
No Matches
main_content.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
compile_scenario/scenario.h
"
4
#include "
gui/sidebar.h
"
5
#include "
gui/tab_widget.h
"
6
#include <QGridLayout>
7
#include <QWidget>
8
9
namespace
Gui
10
{
11
/// \brief The main content of the main window
12
///
13
/// The main content of the main window essentially contains everything
14
/// except the menu bar. It exists as a separate class to make the main
15
/// window class more concise.
16
class
MainContent
:
public
QWidget
17
{
18
Q_OBJECT
19
public
:
20
/// \brief Constructs the main content widget.
21
/// \param parent The parent widget of the main content.
22
MainContent
(QWidget* parent =
nullptr
);
23
24
private
:
25
/// \brief The layout of the main content
26
///
27
/// The main content uses a grid layout to easily be able to cover the
28
/// available space in the window.
29
QGridLayout*
m_Layout
;
30
31
/// \brief The sidebar of the main content.
32
///
33
/// The sidebar of the main content exists to provide the user access to
34
/// tools related to the active tab in the tab widget.
35
Sidebar
*
m_Sidebar
;
36
37
/// \brief The tab widget of the main content.
38
///
39
/// This widget is responsible for containing the core functionality of
40
/// Hivemind; planning, simulating and launching. They are separated in
41
/// their own tabs as a user should only need to access one of these at
42
/// any point in time.
43
TabWidget
*
m_TabWidget
;
44
};
45
}
// namespace Gui
Gui::MainContent
The main content of the main window.
Definition:
main_content.h:17
Gui::MainContent::m_Sidebar
Sidebar * m_Sidebar
The sidebar of the main content.
Definition:
main_content.h:35
Gui::MainContent::m_TabWidget
TabWidget * m_TabWidget
The tab widget of the main content.
Definition:
main_content.h:43
Gui::MainContent::m_Layout
QGridLayout * m_Layout
The layout of the main content.
Definition:
main_content.h:29
Gui::Sidebar
The sidebar of the main window.
Definition:
sidebar.h:23
Gui::TabWidget
The tab widget of the main window.
Definition:
tab_widget.h:19
Gui
Definition:
action.h:6
scenario.h
sidebar.h
tab_widget.h
include
gui
main_content.h
Generated by
1.9.6