Version: 8.3.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 ( QWidget parent = 0)

Definition at line 28 of file CaseSwitch.cxx.

References DEBTRACE.

29 {
30  DEBTRACE("CaseSwitch::CaseSwitch");
31  setParent(parent);
32  setupUi(this);
33  _isDefault = false;
34 }
CaseSwitch::~CaseSwitch ( )

Definition at line 36 of file CaseSwitch.cxx.

References DEBTRACE.

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

Member Function Documentation

bool CaseSwitch::isDefaultChecked ( )

Definition at line 50 of file CaseSwitch.cxx.

51 {
52  return _isDefault;
53 }
void CaseSwitch::on_cb_default_stateChanged ( int  state)
slot

Definition at line 41 of file CaseSwitch.cxx.

References DEBTRACE.

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

Definition at line 55 of file CaseSwitch.cxx.

References DEBTRACE.

Referenced by YACS::HMI::CaseSwitchEditor::setData().

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

Member Data Documentation

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

Definition at line 43 of file CaseSwitch.hxx.

Referenced by YACS::HMI::CaseSwitchEditor::GetStrValue().


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