hivemind 1.0.0
Loading...
Searching...
No Matches
main_content.h
Go to the documentation of this file.
1#pragma once
2
4#include "gui/sidebar.h"
5#include "gui/tab_widget.h"
6#include <QGridLayout>
7#include <QWidget>
8
9namespace 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.
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.
44 };
45} // namespace Gui
The main content of the main window.
Definition: main_content.h:17
Sidebar * m_Sidebar
The sidebar of the main content.
Definition: main_content.h:35
TabWidget * m_TabWidget
The tab widget of the main content.
Definition: main_content.h:43
QGridLayout * m_Layout
The layout of the main content.
Definition: main_content.h:29
The sidebar of the main window.
Definition: sidebar.h:23
The tab widget of the main window.
Definition: tab_widget.h:19
Definition: action.h:6