##// END OF EJS Templates
Plugin modified to allow the launch of interactiv tests from the python interpreter...
Plugin modified to allow the launch of interactiv tests from the python interpreter the signal processPacketStoreNowSig is sent by the SLOT processPacketStoreLater(unsigned int delay) the SLOT WriteSPWDelay(QList<int> dataList, unsigned int delay) allows the storage of a TC for a sending after "delay" ms

File last commit:

r11:0c9852fa341b default
r11:0c9852fa341b default
Show More
qipdialogbox.cpp
79 lines | 2.5 KiB | text/x-c | CppLexer
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 #include "qipdialogbox.h"
#include <QSpinBox>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QLabel>
#include <QString>
#include <QLocale>
QIPDialogBox::QIPDialogBox(QWidget *parent) :
QWidget(parent)
{
//labelGRESBIP = new QLabel(tr("IP not set"));
QHBoxLayout *addressLayout = new QHBoxLayout;
QVBoxLayout *mainLayout = new QVBoxLayout;
addressPart1 = new QSpinBox;
addressPart2 = new QSpinBox;
addressPart3 = new QSpinBox;
addressPart4 = new QSpinBox;
addressPart1->setRange(0, 255);
addressPart1->setValue(129);
addressPart1->setButtonSymbols(QAbstractSpinBox::NoButtons);
addressPart2->setRange(0, 255);
addressPart2->setValue(104);
addressPart2->setButtonSymbols(QAbstractSpinBox::NoButtons);
addressPart3->setRange(0, 255);
addressPart3->setValue(27);
addressPart3->setButtonSymbols(QAbstractSpinBox::NoButtons);
addressPart4->setRange(0, 255);
addressPart4->setValue(113);
addressPart4->setButtonSymbols(QAbstractSpinBox::NoButtons);
valueChanged();
connect(addressPart1, SIGNAL(valueChanged(int)), this, SLOT(valueChanged()));
connect(addressPart2, SIGNAL(valueChanged(int)), this, SLOT(valueChanged()));
connect(addressPart3, SIGNAL(valueChanged(int)), this, SLOT(valueChanged()));
connect(addressPart4, SIGNAL(valueChanged(int)), this, SLOT(valueChanged()));
addressLayout->addWidget(addressPart1);
addressLayout->addWidget(addressPart2);
addressLayout->addWidget(addressPart3);
addressLayout->addWidget(addressPart4);
mainLayout->addLayout(addressLayout);
//mainLayout->addWidget(labelGRESBIP);
setLayout(mainLayout);
}
void QIPDialogBox::valueChanged() // SLOT
{
gresbIP = addressPart1->cleanText();
gresbIP.append(".");
gresbIP.append(addressPart2->cleanText());
gresbIP.append(".");
gresbIP.append(addressPart3->cleanText());
gresbIP.append(".");
gresbIP.append(addressPart4->cleanText());
}
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 QString QIPDialogBox::getIP()
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 {
return(gresbIP);
}
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 void QIPDialogBox::setIP(unsigned char address1, unsigned char address2, unsigned char address3, unsigned char address4)
{
addressPart1->setValue(address1);
addressPart2->setValue(address2);
addressPart3->setValue(address3);
addressPart4->setValue(address4);
addressPart1->repaint();
addressPart2->repaint();
addressPart3->repaint();
addressPart4->repaint();
}