Version: 9.16.0
YACS::HMI::CaseSwitch Class Reference

#include <CaseSwitch.hxx>

Inheritance diagram for YACS::HMI::CaseSwitch:
Collaboration diagram for YACS::HMI::CaseSwitch:

Public Slots

void on_cb_default_stateChanged (int state)
 

Public Member Functions

 CaseSwitch (QWidget *parent=0)
 
 ~CaseSwitch ()
 
bool isDefaultChecked ()
 
void setDefaultChecked (bool isDefault)
 

Protected Attributes

bool _isDefault
 

Detailed Description

Definition at line 29 of file CaseSwitch.hxx.

Constructor & Destructor Documentation

◆ CaseSwitch()

CaseSwitch::CaseSwitch ( QWidget parent = 0)

Definition at line 28 of file CaseSwitch.cxx.

29{
30 DEBTRACE("CaseSwitch::CaseSwitch");
31 setParent(parent);
32 setupUi(this);
33 _isDefault = false;
34}
#define DEBTRACE(msg)
Definition: YacsTrace.hxx:31

References _isDefault, and DEBTRACE.

◆ ~CaseSwitch()

CaseSwitch::~CaseSwitch ( )

Definition at line 36 of file CaseSwitch.cxx.

37{
38 DEBTRACE("CaseSwitch::~CaseSwitch");
39}

References DEBTRACE.

Member Function Documentation

◆ isDefaultChecked()

bool CaseSwitch::isDefaultChecked ( )

Definition at line 50 of file CaseSwitch.cxx.

51{
52 return _isDefault;
53}

References _isDefault.

◆ on_cb_default_stateChanged

void CaseSwitch::on_cb_default_stateChanged ( int  state)
slot

Definition at line 41 of file CaseSwitch.cxx.

42{
43 DEBTRACE("CaseSwitch::on_cb_default_stateChanged " << state)
44 if (state == Qt::Unchecked)
45 setDefaultChecked(false);
46 else
48}
void setDefaultChecked(bool isDefault)
Definition: CaseSwitch.cxx:55

References DEBTRACE, setDefaultChecked(), and yacsorb.CORBAEngineTest::state.

◆ setDefaultChecked()

void CaseSwitch::setDefaultChecked ( bool  isDefault)

Definition at line 55 of file CaseSwitch.cxx.

56{
57 DEBTRACE("CaseSwitch::setDefaultChecked " << isDefault)
58 _isDefault = isDefault;
59 sb_case->setVisible(!_isDefault);
60 cb_default->setChecked(isDefault);
61}

References _isDefault, and DEBTRACE.

Referenced by on_cb_default_stateChanged(), and YACS::HMI::CaseSwitchEditor::setData().

Member Data Documentation

◆ _isDefault

bool YACS::HMI::CaseSwitch::_isDefault
protected

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