Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
MainWindowLayout Class Reference

Main window layout class. More...

#include <main_window_layout.h>

Inheritance diagram for MainWindowLayout:
MainWindow

Public Member Functions

 MainWindowLayout (QWidget *parent=nullptr)
 Constructs a new MainWindowLayout object.

Protected Member Functions

void onLanguageChanged ()
 Index of the process tab.
void toggleGenerationButton (bool running)
 Toggles the generation button state.

Protected Attributes

QSplitter * mMainSplitter
 Pointer to the central widget.
QTabWidget * mPalette
 Pointer to the main splitter.
StyledFrame * mStructureTab
 Pointer to the palette tab widget.
QScrollArea * mStructureScrollArea
 Pointer to the structure tab frame.
StyledFrame * mBehaviourTab
 Pointer to the structure scroll area.
QScrollArea * mBehaviourScrollArea
 Pointer to the behaviour tab frame.
StyledFrame * mPipelineTab
 Pointer to the behaviour scroll area.
QScrollArea * mPipelineScrollArea
 Pointer to the pipeline tab frame.
maki::SearchWidget * mPaletteSearch
 Pointer to the pipeline scroll area.
QSplitter * mLeftPanel
 Pointer to the palette search widget.
ExecuteButton * mPipelineRun
 Pointer to the left panel splitter.
oclero::qlementine::LoadingSpinner * mGenerationSpinner
 Pointer to the generator option combo box.
QSplitter * mCentralSplitter
 Pointer to the generation spinner.
QTabWidget * mCanvasPanel
 Pointer to the central splitter.
QPushButton * mBrowserTabButton
 Pointer to the canvas panel tab widget.
QWidget * mBottomContainer
 Pointer to the browser tab button.
oclero::qlementine::NavigationBar * mBottomNavigation
 Pointer to the bottom panel stacked widget.
LogTableWidget * mLogTable
 Pointer to the bottom navigation bar.
QTextBrowser * mInfoText
 Pointer to the log table widget.
ProcessTab * mProcessTab
 Pointer to the info text browser.
maki::MissionParameterWidget * mMissionParameters
 Pointer to the process tab.
QTabWidget * mNavigationTab
 Pointer to the right panel splitter.
SystemMenu * mSystemMenu
 Pointer to the navigation tab widget.
GeneratedFilesPanel * mFileMenu
 Pointer to the system menu.
QTabWidget * mPropertiesTab
 Pointer to the file menu.
PropertiesMenu * mPropertiesMenu
 Pointer to the properties tab widget.
QMenuBar * mMenuBar
 Pointer to the properties menu.
QAction * mActionNew
 Pointer to the menu bar.
QAction * mActionNewFromTemplate
 Pointer to the new action.
QAction * mActionOpen
 Pointer to the new from template action.
QMenu * mActionOpenRecent
 Pointer to the open action.
QAction * mActionSave
 Pointer to the open recent menu.
QAction * mActionSaveAs
 Pointer to the save action.
QAction * mActionImportLibrary
 Pointer to the save as action.
QAction * mActionInstallPlugin
 Pointer to the import library action.
QAction * mActionExit
 Pointer to the install plugin action.
QUndoGroup * mUndoGroup
 Pointer to the exit action.
QAction * mActionUndo
 Pointer to the undo group.
QAction * mActionRedo
 Pointer to the undo action.
QAction * mActionCopy
 Pointer to the redo action.
QAction * mActionPaste
 Pointer to the copy action.
QAction * mActionCut
 Pointer to the paste action.
QAction * mActionDelete
 Pointer to the cut action.
QAction * mActionZoomIn
 Pointer to the delete action.
QAction * mActionZoomOut
 Pointer to the zoom in action.
QAction * mActionResetZoom
 Pointer to the zoom out action.
QAction * mActionFitToScreen
 Pointer to the reset zoom action.
QAction * mActionToggleToasts
 Pointer to the fit to screen action.
QAction * mOpenComponentsPanel
 Pointer to the minimize notification toasts action.
QAction * mOpenPropertiesPanel
 Pointer to the open components panel action.
QAction * mOpenInfoPanel
 Pointer to the open properties panel action.
QMenu * mSpecialTabsMenu
 Pointer to the open info panel action.
QMenu * mGeneratorMenu
 Pointer to the special tabs menu.
QAction * mActionAutoRoute
 Pointer to the generator menu.
QAction * mActionSimulate
 Pointer to the generate action.
QAction * mActionToggleGrid
 Pointer to the simulate action.
QAction * mActionQuickStartGuide
 Pointer to the documentation action.
QAction * mOpenAllSettings
 Pointer to the quick start guide action.
QAction * mActionShortcuts
 Pointer to the open all settings action.
QAction * mActionReportIssue
 Pointer to the shortcuts action.
QAction * mAboutAction
 Pointer to the report issue action.
int LOG_TAB_INDEX = 0
 Pointer to the about action.
int PROCESS_TAB_INDEX = 0
 Index of the log tab.

Private Member Functions

void buildMainWindow ()
 List of translatable widgets.
void buildLeftPanel ()
 Builds the left panel.
void buildCentralPanel ()
 Builds the central panel.
void buildRightPanel ()
 Builds the right panel.
void buildMenuBar ()
 Builds the menu bar.
void applyTheme ()
 Applies the current theme.
QWidget * createHeaderComboBox (QComboBox *comboBox, const QString &iconPath, const QString &tooltip)
 Creates a header combo box with an icon and tooltip.
void togglePanelVisibility (QWidget *panel, QAction *action)
 Toggles the visibility of a panel based on an action.
int setTabBarWidth (QTabBar *bar, int minWidth, int minBorder, int minPadding)
 Sets the minimum width for a tab bar.

Detailed Description

Main window layout class.

Constructor & Destructor Documentation

◆ MainWindowLayout()

MainWindowLayout::MainWindowLayout ( QWidget * parent = nullptr)

Constructs a new MainWindowLayout object.

Parameters
parentPointer to the parent widget.

Member Function Documentation

◆ buildMainWindow()

void MainWindowLayout::buildMainWindow ( )
private

List of translatable widgets.

Builds the main window layout.

◆ createHeaderComboBox()

QWidget * MainWindowLayout::createHeaderComboBox ( QComboBox * comboBox,
const QString & iconPath,
const QString & tooltip )
private

Creates a header combo box with an icon and tooltip.

Parameters
comboBoxPointer to the combo box.
iconPathPath to the icon image.
tooltipTooltip text for the combo box.
Returns
QWidget* Pointer to the created widget.

◆ onLanguageChanged()

void MainWindowLayout::onLanguageChanged ( )
protected

Index of the process tab.

Handles language changed event.

◆ setTabBarWidth()

int MainWindowLayout::setTabBarWidth ( QTabBar * bar,
int minWidth,
int minBorder,
int minPadding )
private

Sets the minimum width for a tab bar.

Parameters
barPointer to the tab bar.
minWidthMinimum width of the tab bar.
minBorderMinimum border size.
minPaddingMinimum padding size.
Returns
int The new minimum width of the tab bar.

◆ toggleGenerationButton()

void MainWindowLayout::toggleGenerationButton ( bool running)
protected

Toggles the generation button state.

Parameters
runningTrue if running, false otherwise.

◆ togglePanelVisibility()

void MainWindowLayout::togglePanelVisibility ( QWidget * panel,
QAction * action )
private

Toggles the visibility of a panel based on an action.

Parameters
panelPointer to the panel widget.
actionPointer to the action that controls the panel's visibility.

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