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

#include <DialogControllers.h>

Public Member Functions

 DialogControllers (interfaces::ControlCenter *c, main_gui::GuiInterface *gui)
 
 ~DialogControllers ()
 
void show (void)
 
void hide (void)
 
bool isHidden (void)
 
void close (void)
 
- Public Member Functions inherited from mars::main_gui::BaseWidget
 BaseWidget (QWidget *parent, cfg_manager::CFGManagerInterface *_cfg, std::string _widgetName)
 
 ~BaseWidget ()
 
virtual void cfgUpdateProperty (cfg_manager::cfgPropertyStruct _property)
 
void setHiddenCloseState (bool v)
 
bool getHiddenCloseState ()
 
void show ()
 
void hide ()
 
bool isHidden ()
 
void saveState ()
 
const std::string & getName ()
 
- Public Member Functions inherited from mars::cfg_manager::CFGClient
 CFGClient ()
 
virtual ~CFGClient ()
 
virtual void cfgParamCreated (cfgParamId _id)
 
virtual void cfgParamRemoved (cfgParamId _id)
 
- Public Member Functions inherited from mars::main_gui::PropertyCallback
virtual ~PropertyCallback ()
 Destructor. More...
 
virtual void accept ()
 Associated with the OK button of the Property Dialog. More...
 
virtual void reject ()
 Associated with the Cancel button of the Property Dialog. More...
 

Public Attributes

main_gui::PropertyDialogpDialog
 

Private Slots

void on_new_controller ()
 
void on_remove_controller ()
 
void on_add_controller ()
 
void on_nodes_selection ()
 
void on_sensors_selection ()
 
void on_motors_selection ()
 
void closeDialog ()
 

Private Member Functions

virtual void topLevelItemChanged (QtProperty *current)
 Called every time another branch of a QtTreePropertyBrowser has been selected. More...
 
virtual void valueChanged (QtProperty *property, const QVariant &value)
 Called every time a property has changed its value. More...
 

Private Attributes

QtProperty * oldFocus
 
bool filled
 
QPushButton * addButton
 
QPushButton * removeButton
 
std::vector< ControllerHandler * > allDialogs
 
std::vector< ControllerHandler * > newDialogs
 
std::vector< QtProperty * > allControllers_p
 
std::vector< QtProperty * > newControllers_p
 
std::vector< interfaces::core_objects_exchangeallControllers
 
interfaces::ControlCentercontrol
 
main_gui::GuiInterfacemainGui
 

Additional Inherited Members

- Signals inherited from mars::main_gui::BaseWidget
void hideSignal (void)
 
void closeSignal (void)
 
- Protected Member Functions inherited from mars::main_gui::BaseWidget
void changeEvent (QEvent *ev)
 
void cfgWindow (void)
 
void applyGeometry ()
 
void hideEvent (QHideEvent *event)
 
void closeEvent (QCloseEvent *event)
 
- Protected Attributes inherited from mars::main_gui::BaseWidget
cfg_manager::CFGManagerInterfacecfg
 
bool setWindowProp
 
bool hiddenState
 

Detailed Description

Definition at line 49 of file DialogControllers.h.

Constructor & Destructor Documentation

◆ DialogControllers()

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

Definition at line 30 of file DialogControllers.cpp.

◆ ~DialogControllers()

mars::gui::DialogControllers::~DialogControllers ( )

Definition at line 70 of file DialogControllers.cpp.

Member Function Documentation

◆ close()

void mars::gui::DialogControllers::close ( void  )
inline

Definition at line 63 of file DialogControllers.h.

◆ closeDialog

void mars::gui::DialogControllers::closeDialog ( )
privateslot

Definition at line 73 of file DialogControllers.cpp.

◆ hide()

void mars::gui::DialogControllers::hide ( void  )
inline

Definition at line 61 of file DialogControllers.h.

◆ isHidden()

bool mars::gui::DialogControllers::isHidden ( void  )
inline

Definition at line 62 of file DialogControllers.h.

◆ on_add_controller

void mars::gui::DialogControllers::on_add_controller ( )
privateslot

Definition at line 191 of file DialogControllers.cpp.

◆ on_motors_selection

void mars::gui::DialogControllers::on_motors_selection ( )
privateslot

Definition at line 235 of file DialogControllers.cpp.

◆ on_new_controller

void mars::gui::DialogControllers::on_new_controller ( )
privateslot

Definition at line 141 of file DialogControllers.cpp.

◆ on_nodes_selection

void mars::gui::DialogControllers::on_nodes_selection ( )
privateslot

Definition at line 213 of file DialogControllers.cpp.

◆ on_remove_controller

void mars::gui::DialogControllers::on_remove_controller ( )
privateslot

Definition at line 157 of file DialogControllers.cpp.

◆ on_sensors_selection

void mars::gui::DialogControllers::on_sensors_selection ( )
privateslot

Definition at line 224 of file DialogControllers.cpp.

◆ show()

void mars::gui::DialogControllers::show ( void  )
inline

Definition at line 60 of file DialogControllers.h.

◆ topLevelItemChanged()

void mars::gui::DialogControllers::topLevelItemChanged ( QtProperty *  current)
privatevirtual

Called every time another branch of a QtTreePropertyBrowser has been selected.

Parameters
currentThe current top level item that is selected.

Reimplemented from mars::main_gui::PropertyCallback.

Definition at line 112 of file DialogControllers.cpp.

◆ valueChanged()

void mars::gui::DialogControllers::valueChanged ( QtProperty *  property,
const QVariant &  value 
)
privatevirtual

Called every time a property has changed its value.

Parameters
propertyThe property with a new value.
valueThe new value.

Reimplemented from mars::main_gui::PropertyCallback.

Definition at line 95 of file DialogControllers.cpp.

Member Data Documentation

◆ addButton

QPushButton* mars::gui::DialogControllers::addButton
private

Definition at line 71 of file DialogControllers.h.

◆ allControllers

std::vector<interfaces::core_objects_exchange> mars::gui::DialogControllers::allControllers
private

Definition at line 77 of file DialogControllers.h.

◆ allControllers_p

std::vector<QtProperty*> mars::gui::DialogControllers::allControllers_p
private

Definition at line 75 of file DialogControllers.h.

◆ allDialogs

std::vector<ControllerHandler*> mars::gui::DialogControllers::allDialogs
private

Definition at line 73 of file DialogControllers.h.

◆ control

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

Definition at line 78 of file DialogControllers.h.

◆ filled

bool mars::gui::DialogControllers::filled
private

Definition at line 70 of file DialogControllers.h.

◆ mainGui

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

Definition at line 79 of file DialogControllers.h.

◆ newControllers_p

std::vector<QtProperty*> mars::gui::DialogControllers::newControllers_p
private

Definition at line 76 of file DialogControllers.h.

◆ newDialogs

std::vector<ControllerHandler*> mars::gui::DialogControllers::newDialogs
private

Definition at line 74 of file DialogControllers.h.

◆ oldFocus

QtProperty* mars::gui::DialogControllers::oldFocus
private

Definition at line 69 of file DialogControllers.h.

◆ pDialog

main_gui::PropertyDialog* mars::gui::DialogControllers::pDialog

Definition at line 58 of file DialogControllers.h.

◆ removeButton

QPushButton* mars::gui::DialogControllers::removeButton
private

Definition at line 72 of file DialogControllers.h.


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