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

#include <CfgWidget.h>

Public Member Functions

 CfgWidget (MainCfgGui *mainCfgGui, cfg_manager::CFGManagerInterface *_cfg, QWidget *parent=0)
 
 ~CfgWidget ()
 
void addParam (const cfg_manager::cfgParamInfo &newParam)
 
void changeParam (const cfg_manager::cfgParamId _id)
 
void removeParam (const cfg_manager::cfgParamId _id)
 
virtual void valueChanged (QtProperty *property, const QVariant &value)
 Called every time a property has changed its value. More...
 
- 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 topLevelItemChanged (QtProperty *current)
 Called every time another branch of a QtTreePropertyBrowser has been selected. 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
 

Protected Slots

void timerEvent (QTimerEvent *event)
 
virtual void accept ()
 
virtual void reject ()
 

Private Member Functions

paramWrappergetWrapperById (cfg_manager::cfgParamId _id)
 

Private Attributes

MainCfgGuimainCfgGui
 
QMutex listMutex
 
QMutex addMutex
 
QMutex changeMutex
 
QMutex removeMutex
 
std::vector< cfg_manager::cfgParamIdremoveList
 
std::vector< cfg_manager::cfgParamIdchangeList
 
std::vector< cfg_manager::cfgParamInfoaddList
 
std::vector< paramWrapperparamList
 
bool ignore_change
 

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 55 of file CfgWidget.h.

Constructor & Destructor Documentation

◆ CfgWidget()

mars::cfg_manager_gui::CfgWidget::CfgWidget ( MainCfgGui mainCfgGui,
cfg_manager::CFGManagerInterface _cfg,
QWidget *  parent = 0 
)

Definition at line 36 of file CfgWidget.cpp.

◆ ~CfgWidget()

mars::cfg_manager_gui::CfgWidget::~CfgWidget ( void  )

Definition at line 51 of file CfgWidget.cpp.

Member Function Documentation

◆ accept

void mars::cfg_manager_gui::CfgWidget::accept ( )
protectedvirtualslot

Definition at line 243 of file CfgWidget.cpp.

◆ addParam()

void mars::cfg_manager_gui::CfgWidget::addParam ( const cfg_manager::cfgParamInfo newParam)

Definition at line 55 of file CfgWidget.cpp.

◆ changeParam()

void mars::cfg_manager_gui::CfgWidget::changeParam ( const cfg_manager::cfgParamId  _id)

Definition at line 61 of file CfgWidget.cpp.

◆ getWrapperById()

paramWrapper * mars::cfg_manager_gui::CfgWidget::getWrapperById ( cfg_manager::cfgParamId  _id)
private

Definition at line 184 of file CfgWidget.cpp.

◆ reject

void mars::cfg_manager_gui::CfgWidget::reject ( )
protectedvirtualslot

Definition at line 244 of file CfgWidget.cpp.

◆ removeParam()

void mars::cfg_manager_gui::CfgWidget::removeParam ( const cfg_manager::cfgParamId  _id)

Definition at line 67 of file CfgWidget.cpp.

◆ timerEvent

void mars::cfg_manager_gui::CfgWidget::timerEvent ( QTimerEvent *  event)
protectedslot

Definition at line 73 of file CfgWidget.cpp.

◆ valueChanged()

void mars::cfg_manager_gui::CfgWidget::valueChanged ( QtProperty *  property,
const QVariant &  value 
)
virtual

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 194 of file CfgWidget.cpp.

Member Data Documentation

◆ addList

std::vector<cfg_manager::cfgParamInfo> mars::cfg_manager_gui::CfgWidget::addList
private

Definition at line 80 of file CfgWidget.h.

◆ addMutex

QMutex mars::cfg_manager_gui::CfgWidget::addMutex
private

Definition at line 74 of file CfgWidget.h.

◆ changeList

std::vector<cfg_manager::cfgParamId> mars::cfg_manager_gui::CfgWidget::changeList
private

Definition at line 79 of file CfgWidget.h.

◆ changeMutex

QMutex mars::cfg_manager_gui::CfgWidget::changeMutex
private

Definition at line 75 of file CfgWidget.h.

◆ ignore_change

bool mars::cfg_manager_gui::CfgWidget::ignore_change
private

Definition at line 83 of file CfgWidget.h.

◆ listMutex

QMutex mars::cfg_manager_gui::CfgWidget::listMutex
private

Definition at line 73 of file CfgWidget.h.

◆ mainCfgGui

MainCfgGui* mars::cfg_manager_gui::CfgWidget::mainCfgGui
private

Definition at line 72 of file CfgWidget.h.

◆ paramList

std::vector<paramWrapper> mars::cfg_manager_gui::CfgWidget::paramList
private

Definition at line 81 of file CfgWidget.h.

◆ pDialog

main_gui::PropertyDialog* mars::cfg_manager_gui::CfgWidget::pDialog

Definition at line 69 of file CfgWidget.h.

◆ removeList

std::vector<cfg_manager::cfgParamId> mars::cfg_manager_gui::CfgWidget::removeList
private

Definition at line 78 of file CfgWidget.h.

◆ removeMutex

QMutex mars::cfg_manager_gui::CfgWidget::removeMutex
private

Definition at line 76 of file CfgWidget.h.


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