##// END OF EJS Templates
Initial commit
paul@pc-solar1.lab-lpp.local -
r2:14442728add6 default
parent child
Show More
@@ -0,0 +1,48
1 #include "gresb.h"
2
3 gresb::gresb(QWidget *parent) :
4 QWidget(parent)
5 {
6 //*** QLABEL ***//
7 gresbBridgeIPLabel = new QLabel(tr("GRESB Bridge IP: "));
8 gresbVirtualLinkLabel = new QLabel(tr("GRESB Virtual Link: "));
9 spwLinkLabel = new QLabel(tr("GRESB SPW Link: "));
10 rmapSourceLogicalAddressLabel = new QLabel(tr("RMAP Source Logical Address: "));
11 rmapSendStateLabel = new QLabel(tr("RMAP Send Socket State: waiting for connection"));
12 rmapReceiveStateLabel = new QLabel(tr("RMAP Receive Socket State: waiting for connection"));
13 gresbStatusQueryLabel = new QLabel(tr("GRESB status query socket (port 3010): waiting for connection"));
14
15 //*** SPINBOX ***//
16 gresbVirtualLinkSpinBox = new QSpinBox;
17 rmapSourceLogicalAddressSpinBox = new QSpinBox;
18 spwLinkSpinBox = new QSpinBox;;
19 gresbVirtualLinkSpinBox->setRange(0, 4);
20 gresbVirtualLinkSpinBox->setValue(1);
21 rmapSourceLogicalAddressSpinBox->setRange(0, 255);
22 rmapSourceLogicalAddressSpinBox->setValue(33);
23 spwLinkSpinBox->setRange(0, 2);
24 spwLinkSpinBox->setValue(0);
25
26 //*** LAYOUT ***//
27 connectionLayout = new QGridLayout;
28
29 //*** MISC ***//
30 gresbBridgeIPDialogBox = new QIPDialogBox;
31
32 connectionLayout->addWidget(gresbBridgeIPLabel, 0, 0, 0);
33 connectionLayout->addWidget(gresbBridgeIPDialogBox, 0, 1, 0);
34 connectionLayout->addWidget(gresbVirtualLinkLabel, 1, 0, 0);
35 connectionLayout->addWidget(gresbVirtualLinkSpinBox, 1, 1, 0);
36 connectionLayout->addWidget(spwLinkLabel, 2, 0, 0);
37 connectionLayout->addWidget(spwLinkSpinBox, 2, 1, 0);
38 connectionLayout->addWidget(rmapSourceLogicalAddressLabel, 3, 0, 0);
39 connectionLayout->addWidget(rmapSourceLogicalAddressSpinBox, 3, 1, 0);
40 connectionLayout->addWidget(rmapSendStateLabel, 4, 0, 1, 2);
41 connectionLayout->addWidget(rmapReceiveStateLabel, 5, 0, 1, 2);
42 connectionLayout->addWidget(gresbStatusQueryLabel, 6, 0, 1, 2);
43
44 connectionLayout->setRowStretch(7, 1);
45 connectionLayout->setColumnStretch(2, 1);
46
47 this->setLayout(connectionLayout);
48 }
@@ -0,0 +1,40
1 #ifndef GRESB_H
2 #define GRESB_H
3
4 #include <QWidget>
5 #include <QLabel>
6 #include <QPushButton>
7 #include <QSpinBox>
8 #include <QGridLayout>
9 #include "qipdialogbox.h"
10
11 class gresb : public QWidget
12 {
13 Q_OBJECT
14 public:
15 explicit gresb(QWidget *parent = 0);
16
17 signals:
18
19 public slots:
20
21 private:
22 QLabel *gresbBridgeIPLabel;
23 QLabel *gresbVirtualLinkLabel;
24 QLabel *spwLinkLabel;
25 QLabel *rmapSourceLogicalAddressLabel;
26 QLabel *rmapSendStateLabel;
27 QLabel *rmapReceiveStateLabel;
28 QLabel *gresbStatusQueryLabel;
29
30 QIPDialogBox* gresbBridgeIPDialogBox;
31
32 QSpinBox *gresbVirtualLinkSpinBox;
33 QSpinBox *spwLinkSpinBox;
34 QSpinBox *rmapSourceLogicalAddressSpinBox;
35
36 QGridLayout *connectionLayout;
37
38 };
39
40 #endif // GRESB_H
General Comments 0
You need to be logged in to leave comments. Login now