qmca  0.0.20
testcontrolpanel.cpp
Go to the documentation of this file.
1 #include "testcontrolpanel.h"
2 
3 #include <QGridLayout>
4 #include <QLabel>
5 #include <QPushButton>
6 #include "epicsstringdisplay.h"
7 #include "epicsstring.h"
8 
10  : QFrame(parent),
11  m_GridLayout(NULL)
12 {
13  m_GridLayout = new QGridLayout(this);
14 
15  m_GridLayout -> addWidget(new QLabel(tr("EMW Control")), 0,0,1,3);
16  m_GridLayout -> addWidget(new EpicsStringDisplay(new EpicsString("ID11:Location", this)), 1,0,1,3);
17  m_GridLayout -> addWidget(new EpicsStringDisplay(new EpicsString("ID11:Device", this)), 2,0,1,3);
18  m_GridLayout -> addWidget(new QLabel(tr("Software Version:")), 3,0,1,2);
19  m_GridLayout -> addWidget(new EpicsStringDisplay(new EpicsString("ID11:Version", this)), 3,2,1,1);
20  m_GridLayout -> addWidget(new QLabel(tr("Current:")), 4,0,1,1);
21  m_GridLayout -> addWidget(new EpicsStringDisplay(new EpicsString("ID11:Gap.VAL", this)), 4,1,1,1);
22  m_GridLayout -> addWidget(new EpicsStringDisplay(new EpicsString("ID11:Energy.VAL", this)),4,2,1,1);
23  m_GridLayout -> addWidget(new QLabel(tr("Desired:")), 5,0,1,1);
24  m_GridLayout -> addWidget(new EpicsStringDisplay(new EpicsString("ID11:GapSet.VAL", this)), 5,1,1,1);
25  m_GridLayout -> addWidget(new EpicsStringDisplay(new EpicsString("ID11:EnergySet.VAL", this)),5,2,1,1);
26  m_GridLayout -> addWidget(new QLabel(tr("")), 6,0,1,1);
27  m_GridLayout -> addWidget(new QLabel(tr("Gap (mm)")), 6,1,1,1);
28  m_GridLayout -> addWidget(new QLabel(tr("Energy (keV)")), 6,2,1,1);
29 
30  m_GridLayout -> addWidget(new QPushButton("Start"), 7,0,1,1);
31  m_GridLayout -> addWidget(new QPushButton("Stop"), 7,2,1,1);
32 
33  m_GridLayout -> addWidget(new QLabel(tr("Access Mode:")), 8,0,1,2);
34  m_GridLayout -> addWidget(new EpicsStringDisplay(new EpicsString("ID11:AccessSecurity.VAL", this)),8,2,1,1);
35  m_GridLayout -> addWidget(new QLabel(tr("Bl. Comm. Limit (mm):")), 9,0,1,2);
36  m_GridLayout -> addWidget(new EpicsStringDisplay(new EpicsString("ID11:DeviceLimit.VAL", this)),9,2,1,1);
37 
38  m_GridLayout -> addWidget(new QLabel(tr("Status Messages:")), 10,0,1,1);
39  m_GridLayout -> addWidget(new EpicsStringDisplay(new EpicsString("ID11:Message1.VAL", this)), 11,0,1,3);
40  m_GridLayout -> addWidget(new EpicsStringDisplay(new EpicsString("ID11:Message2.VAL", this)), 12,0,1,3);
41 }
42 
44 {
45 }
TestControlPanel(QWidget *parent)
virtual ~TestControlPanel()
QGridLayout * m_GridLayout