Privacy
An open-source, flexible 3D physical simulation framework
mars::gui::MenuWindow Class Reference

MenuWindow creates the menus and menu items in the Window menu of the simulation. More...

#include <MenuWindow.h>

Public Member Functions

 MenuWindow (interfaces::ControlCenter *c, main_gui::GuiInterface *gui)
 The constructor add the actions to the Window menu. More...
 
 ~MenuWindow ()
 The destructor destroys the dynamically loaded dialogs. More...
 
virtual void menuAction (int action, bool checked=false)
 Called whenever a menu item is selected. More...
 
virtual void cfgUpdateProperty (cfg_manager::cfgPropertyStruct _property)
 
- Public Member Functions inherited from mars::main_gui::MenuInterface
virtual ~MenuInterface ()
 
- Public Member Functions inherited from mars::cfg_manager::CFGClient
 CFGClient ()
 
virtual ~CFGClient ()
 
virtual void cfgParamCreated (cfgParamId _id)
 
virtual void cfgParamRemoved (cfgParamId _id)
 

Private Slots

void closeWidget (void *widget)
 

Private Member Functions

void menu_addWindow ()
 
void menu_dock (bool checked)
 
void menu_blender ()
 
void menu_controller_config ()
 

Private Attributes

interfaces::ControlCentercontrol
 
main_gui::GuiInterfacemainGui
 
BlenderExportGUIblender
 
ControllerConfigGUIcc
 
cfg_manager::cfgPropertyStruct cfgVisRep
 
cfg_manager::cfgPropertyStruct cfgShowCoords
 
cfg_manager::cfgPropertyStruct cfgShowGrid
 
cfg_manager::cfgPropertyStruct cfgShowContacts
 
cfg_manager::cfgPropertyStruct cfgShowSelection
 
bool updateProp
 

Detailed Description

MenuWindow creates the menus and menu items in the Window menu of the simulation.

Definition at line 53 of file MenuWindow.h.

Constructor & Destructor Documentation

◆ MenuWindow()

mars::gui::MenuWindow::MenuWindow ( interfaces::ControlCenter c,
main_gui::GuiInterface gui 
)

The constructor add the actions to the Window menu.

Definition at line 71 of file MenuWindow.cpp.

◆ ~MenuWindow()

mars::gui::MenuWindow::~MenuWindow ( )

The destructor destroys the dynamically loaded dialogs.

Definition at line 185 of file MenuWindow.cpp.

Member Function Documentation

◆ cfgUpdateProperty()

void mars::gui::MenuWindow::cfgUpdateProperty ( cfg_manager::cfgPropertyStruct  _property)
virtual

Reimplemented from mars::cfg_manager::CFGClient.

Definition at line 337 of file MenuWindow.cpp.

◆ closeWidget

void mars::gui::MenuWindow::closeWidget ( void *  widget)
privateslot

Definition at line 322 of file MenuWindow.cpp.

◆ menu_addWindow()

void mars::gui::MenuWindow::menu_addWindow ( )
private

Definition at line 302 of file MenuWindow.cpp.

◆ menu_blender()

void mars::gui::MenuWindow::menu_blender ( )
private

Definition at line 287 of file MenuWindow.cpp.

◆ menu_controller_config()

void mars::gui::MenuWindow::menu_controller_config ( )
private

Definition at line 272 of file MenuWindow.cpp.

◆ menu_dock()

void mars::gui::MenuWindow::menu_dock ( bool  checked)
private

Definition at line 318 of file MenuWindow.cpp.

◆ menuAction()

void mars::gui::MenuWindow::menuAction ( int  action,
bool  checked = false 
)
virtual

Called whenever a menu item is selected.

Parameters
actionThe action that is passed to the GuiInterface via addGenericMenuAction function.
checkedIndicates if the menu/menu item is checked or not.

Implements mars::main_gui::MenuInterface.

Definition at line 189 of file MenuWindow.cpp.

Member Data Documentation

◆ blender

BlenderExportGUI* mars::gui::MenuWindow::blender
private

Definition at line 84 of file MenuWindow.h.

◆ cc

ControllerConfigGUI* mars::gui::MenuWindow::cc
private

Definition at line 85 of file MenuWindow.h.

◆ cfgShowContacts

cfg_manager::cfgPropertyStruct mars::gui::MenuWindow::cfgShowContacts
private

Definition at line 87 of file MenuWindow.h.

◆ cfgShowCoords

cfg_manager::cfgPropertyStruct mars::gui::MenuWindow::cfgShowCoords
private

Definition at line 86 of file MenuWindow.h.

◆ cfgShowGrid

cfg_manager::cfgPropertyStruct mars::gui::MenuWindow::cfgShowGrid
private

Definition at line 86 of file MenuWindow.h.

◆ cfgShowSelection

cfg_manager::cfgPropertyStruct mars::gui::MenuWindow::cfgShowSelection
private

Definition at line 87 of file MenuWindow.h.

◆ cfgVisRep

cfg_manager::cfgPropertyStruct mars::gui::MenuWindow::cfgVisRep
private

Definition at line 86 of file MenuWindow.h.

◆ control

interfaces::ControlCenter* mars::gui::MenuWindow::control
private

Definition at line 81 of file MenuWindow.h.

◆ mainGui

main_gui::GuiInterface* mars::gui::MenuWindow::mainGui
private

Definition at line 82 of file MenuWindow.h.

◆ updateProp

bool mars::gui::MenuWindow::updateProp
private

Definition at line 88 of file MenuWindow.h.


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