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

#include <epicsintegerinput.h>

Inheritance diagram for EpicsIntegerInput:
Inheritance graph

Public Slots

void changeEpicsInteger ()
 

Public Member Functions

 EpicsIntegerInput (EpicsInteger *var, QWidget *parent=0)
 
virtual ~EpicsIntegerInput ()
 

Private Attributes

EpicsIntegerm_EpicsInteger
 

Detailed Description

Definition at line 8 of file epicsintegerinput.h.

Constructor & Destructor Documentation

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

Definition at line 6 of file epicsintegerinput.cpp.

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

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 }
EpicsInteger * m_EpicsInteger
QString pvName()
Definition: epicsobject.cpp:30
QString toolTip()
Definition: epicsobject.cpp:35
EpicsIntegerInput::~EpicsIntegerInput ( )
virtual

Definition at line 20 of file epicsintegerinput.cpp.

21 {
22 }

Member Function Documentation

void EpicsIntegerInput::changeEpicsInteger ( )
slot

Definition at line 24 of file epicsintegerinput.cpp.

References m_EpicsInteger.

Referenced by EpicsIntegerInput().

25 {
26  m_EpicsInteger -> caput(value());
27 }
EpicsInteger * m_EpicsInteger

Member Data Documentation

EpicsInteger* EpicsIntegerInput::m_EpicsInteger
private

Definition at line 20 of file epicsintegerinput.h.

Referenced by changeEpicsInteger(), and EpicsIntegerInput().


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