qmca
0.0.20
Main Page
Classes
Files
File List
File Members
qmca
epicsintegerinput.cpp
Go to the documentation of this file.
1
#include "
epicsintegerinput.h
"
2
#include "
epicsinteger.h
"
3
4
#include <stdio.h>
5
6
EpicsIntegerInput::EpicsIntegerInput
(
EpicsInteger
*var, QWidget *parent)
7
: QSpinBox(parent),
8
m_EpicsInteger(var)
9
{
10
connect(
this
, SIGNAL(editingFinished()),
this
, SLOT(
changeEpicsInteger
()));
11
connect(
m_EpicsInteger
, SIGNAL(valueChanged(
int
)),
this
, SLOT(setValue(
int
)));
12
13
printf(
"EpicsIntegerInput::EpicsIntegerInput (%s -> %d)\n"
,
14
qPrintable(
m_EpicsInteger
->
pvName
()),
m_EpicsInteger
->
value
());
15
16
setValue(
m_EpicsInteger
->
value
());
17
setToolTip(
m_EpicsInteger
->
toolTip
());
18
}
19
20
EpicsIntegerInput::~EpicsIntegerInput
()
21
{
22
}
23
24
void
EpicsIntegerInput::changeEpicsInteger
()
25
{
26
m_EpicsInteger
-> caput(value());
27
}
EpicsIntegerInput::m_EpicsInteger
EpicsInteger * m_EpicsInteger
Definition:
epicsintegerinput.h:20
EpicsInteger::value
int value()
Definition:
epicsinteger.cpp:80
epicsinteger.h
EpicsObject::pvName
QString pvName()
Definition:
epicsobject.cpp:30
EpicsIntegerInput::EpicsIntegerInput
EpicsIntegerInput(EpicsInteger *var, QWidget *parent=0)
Definition:
epicsintegerinput.cpp:6
EpicsObject::toolTip
QString toolTip()
Definition:
epicsobject.cpp:35
EpicsInteger
Definition:
epicsinteger.h:7
EpicsIntegerInput::changeEpicsInteger
void changeEpicsInteger()
Definition:
epicsintegerinput.cpp:24
epicsintegerinput.h
EpicsIntegerInput::~EpicsIntegerInput
virtual ~EpicsIntegerInput()
Definition:
epicsintegerinput.cpp:20
Generated by
1.8.6