areaDetector  3-5-0
EPICS areaDetector framework
caValueMonitor.h
Go to the documentation of this file.
1 #ifndef CAVALUEMONITOR_H
2 #define CAVALUEMONITOR_H
3 
4 #include <QThread>
5 #include <QTimer>
6 #include <QColor>
7 #include <cadef.h>
8 
9 class caValueMonitor : public QObject
10 {
11  Q_OBJECT
12 
13 public:
14  caValueMonitor (const QString &prefix, QWidget* parent);
15  ~caValueMonitor ();
16  void start();
17  void eventCallback(struct event_handler_args args);
18 
19 public slots:
20  void setGx(int);
21  void setGy(int);
22  void setGcol(QColor);
23  void setGrid(bool);
24  void setGs(int);
25  void doWrite();
26 
27 signals:
28  void gxChanged(int);
29  void gyChanged(int);
30  void gcolChanged(QColor);
31  void gridChanged(bool);
32  void gsChanged(int);
33 
34 private:
35  chid gxChid, gyChid, gcolChid, gridChid, gsChid;
36  long gxLast, gyLast, gcolLast, gridLast, gsLast;
37  long gxCurrent, gyCurrent, gcolCurrent, gridCurrent, gsCurrent;
38  void *sendBuf;
39  QString prefix;
40  QTimer *timer;
41 };
42 
43 #endif
~caValueMonitor()
Definition: caValueMonitor.cpp:31
Definition: caValueMonitor.h:9
void start()
Definition: caValueMonitor.cpp:35
void doWrite()
Definition: caValueMonitor.cpp:50
void setGs(int)
Definition: caValueMonitor.cpp:112
void setGx(int)
Definition: caValueMonitor.cpp:88
void setGy(int)
Definition: caValueMonitor.cpp:94
void gsChanged(int)
Definition: moc_caValueMonitor.cpp:149
void gcolChanged(QColor)
Definition: moc_caValueMonitor.cpp:135
void gridChanged(bool)
Definition: moc_caValueMonitor.cpp:142
void gxChanged(int)
Definition: moc_caValueMonitor.cpp:121
caValueMonitor(const QString &prefix, QWidget *parent)
Definition: caValueMonitor.cpp:10
void eventCallback(struct event_handler_args args)
Definition: caValueMonitor.cpp:69
void setGcol(QColor)
Definition: caValueMonitor.cpp:100
args
Definition: makeAdl.py:16
void gyChanged(int)
Definition: moc_caValueMonitor.cpp:128
void setGrid(bool)
Definition: caValueMonitor.cpp:106