qmca  0.0.20
Public Slots | Public Member Functions | Private Attributes | List of all members
EpicsIntegerCheckBox Class Reference

#include <epicsintegercheckbox.h>

Inheritance diagram for EpicsIntegerCheckBox:
Inheritance graph

Public Slots

void changeEpicsInteger ()
 
void setValue (int val)
 

Public Member Functions

 EpicsIntegerCheckBox (EpicsInteger *var, QWidget *parent=0)
 
virtual ~EpicsIntegerCheckBox ()
 
int value ()
 

Private Attributes

EpicsIntegerm_EpicsInteger
 

Detailed Description

Definition at line 9 of file epicsintegercheckbox.h.

Constructor & Destructor Documentation

EpicsIntegerCheckBox::EpicsIntegerCheckBox ( EpicsInteger var,
QWidget *  parent = 0 
)

Definition at line 4 of file epicsintegercheckbox.cpp.

References changeEpicsInteger(), m_EpicsInteger, setValue(), EpicsObject::toolTip(), and EpicsInteger::value().

5  : QCheckBox(parent),
6  m_EpicsInteger(var)
7 {
8  connect(this, SIGNAL(toggled(bool)), this, SLOT(changeEpicsInteger()));
9  connect(m_EpicsInteger, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
10 
12  setToolTip(m_EpicsInteger->toolTip());
13 }
EpicsInteger * m_EpicsInteger
QString toolTip()
Definition: epicsobject.cpp:35
EpicsIntegerCheckBox::~EpicsIntegerCheckBox ( )
virtual

Definition at line 15 of file epicsintegercheckbox.cpp.

16 {
17 }

Member Function Documentation

void EpicsIntegerCheckBox::changeEpicsInteger ( )
slot

Definition at line 24 of file epicsintegercheckbox.cpp.

References m_EpicsInteger, and value().

Referenced by EpicsIntegerCheckBox().

25 {
26  m_EpicsInteger -> caput(value());
27 }
EpicsInteger * m_EpicsInteger
void EpicsIntegerCheckBox::setValue ( int  val)
slot

Definition at line 29 of file epicsintegercheckbox.cpp.

Referenced by EpicsIntegerCheckBox().

30 {
31  setChecked(val);
32 }
int EpicsIntegerCheckBox::value ( )

Definition at line 19 of file epicsintegercheckbox.cpp.

Referenced by changeEpicsInteger().

20 {
21  return isChecked();
22 }

Member Data Documentation

EpicsInteger* EpicsIntegerCheckBox::m_EpicsInteger
private

Definition at line 24 of file epicsintegercheckbox.h.

Referenced by changeEpicsInteger(), and EpicsIntegerCheckBox().


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