hivemind 1.0.0
Loading...
Searching...
No Matches
Gui::MainContent Class Reference

The main content of the main window. More...

#include <main_content.h>

Inheritance diagram for Gui::MainContent:
Inheritance graph
Collaboration diagram for Gui::MainContent:
Collaboration graph

Public Member Functions

 MainContent (QWidget *parent=nullptr)
 Constructs the main content widget.
 

Private Attributes

QGridLayout * m_Layout
 The layout of the main content.
 
Sidebarm_Sidebar
 The sidebar of the main content.
 
TabWidgetm_TabWidget
 The tab widget of the main content.
 

Detailed Description

The main content of the main window.

The main content of the main window essentially contains everything except the menu bar. It exists as a separate class to make the main window class more concise.

Definition at line 16 of file main_content.h.

Constructor & Destructor Documentation

◆ MainContent()

Gui::MainContent::MainContent ( QWidget *  parent = nullptr)

Constructs the main content widget.

Parameters
parentThe parent widget of the main content.

Definition at line 10 of file main_content.cpp.

References m_Layout, m_Sidebar, and m_TabWidget.

Member Data Documentation

◆ m_Layout

QGridLayout* Gui::MainContent::m_Layout
private

The layout of the main content.

The main content uses a grid layout to easily be able to cover the available space in the window.

Definition at line 29 of file main_content.h.

Referenced by MainContent().

◆ m_Sidebar

Sidebar* Gui::MainContent::m_Sidebar
private

The sidebar of the main content.

The sidebar of the main content exists to provide the user access to tools related to the active tab in the tab widget.

Definition at line 35 of file main_content.h.

Referenced by MainContent().

◆ m_TabWidget

TabWidget* Gui::MainContent::m_TabWidget
private

The tab widget of the main content.

This widget is responsible for containing the core functionality of Hivemind; planning, simulating and launching. They are separated in their own tabs as a user should only need to access one of these at any point in time.

Definition at line 43 of file main_content.h.

Referenced by MainContent().


The documentation for this class was generated from the following files: