qmca
0.0.20
Main Page
Classes
Files
File List
File Members
qmca
epicsintegercheckbox.cpp
Go to the documentation of this file.
1
#include "
epicsintegercheckbox.h
"
2
#include "
epicsinteger.h
"
3
4
EpicsIntegerCheckBox::EpicsIntegerCheckBox
(
EpicsInteger
*var, QWidget *parent)
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
11
setValue
(
m_EpicsInteger
->
value
());
12
setToolTip(
m_EpicsInteger
->
toolTip
());
13
}
14
15
EpicsIntegerCheckBox::~EpicsIntegerCheckBox
()
16
{
17
}
18
19
int
EpicsIntegerCheckBox::value
()
20
{
21
return
isChecked();
22
}
23
24
void
EpicsIntegerCheckBox::changeEpicsInteger
()
25
{
26
m_EpicsInteger
-> caput(
value
());
27
}
28
29
void
EpicsIntegerCheckBox::setValue
(
int
val)
30
{
31
setChecked(val);
32
}
EpicsIntegerCheckBox::~EpicsIntegerCheckBox
virtual ~EpicsIntegerCheckBox()
Definition:
epicsintegercheckbox.cpp:15
EpicsInteger::value
int value()
Definition:
epicsinteger.cpp:80
epicsinteger.h
EpicsIntegerCheckBox::EpicsIntegerCheckBox
EpicsIntegerCheckBox(EpicsInteger *var, QWidget *parent=0)
Definition:
epicsintegercheckbox.cpp:4
EpicsIntegerCheckBox::changeEpicsInteger
void changeEpicsInteger()
Definition:
epicsintegercheckbox.cpp:24
EpicsIntegerCheckBox::value
int value()
Definition:
epicsintegercheckbox.cpp:19
EpicsIntegerCheckBox::m_EpicsInteger
EpicsInteger * m_EpicsInteger
Definition:
epicsintegercheckbox.h:24
epicsintegercheckbox.h
EpicsIntegerCheckBox::setValue
void setValue(int val)
Definition:
epicsintegercheckbox.cpp:29
EpicsObject::toolTip
QString toolTip()
Definition:
epicsobject.cpp:35
EpicsInteger
Definition:
epicsinteger.h:7
Generated by
1.8.6