##// END OF EJS Templates
QSettings used in the lfrsgse to store the IP address of the echo bridge
QSettings used in the lfrsgse to store the IP address of the echo bridge

File last commit:

r22:797a76985124 default
r28:66e3fbb189eb default
Show More
wfpage.cpp
55 lines | 1.6 KiB | text/x-c | CppLexer
#include "wfpage.h"
WFPage::WFPage(QWidget *parent) :
QWidget(parent)
{
wfPlot_v = new WFPlot();
wfPlot_e1 = new WFPlot();
wfPlot_e2 = new WFPlot();
wfPlot_b1 = new WFPlot();
wfPlot_b2 = new WFPlot();
wfPlot_b3 = new WFPlot();
//
//wfPlot_v->customPlot->setTitle("v");
wfPlot_v->customPlot->setGraphName(0, "v");
//wfPlot_e1->customPlot->setTitle("e1");
wfPlot_e1->customPlot->setGraphName(0, "e1");
wfPlot_e2->customPlot->setTitle("e2");
wfPlot_b1->customPlot->setTitle("b1");
wfPlot_b2->customPlot->setTitle("b2");
wfPlot_b3->customPlot->setTitle("b3");
//
mainLayout = new QGridLayout;
mainLayout->addWidget(wfPlot_v, 0, 0, 1, 1);
mainLayout->addWidget(wfPlot_e1, 0, 1, 1, 1);
mainLayout->addWidget(wfPlot_e2, 0, 2, 1, 1);
mainLayout->addWidget(wfPlot_b1, 1, 0, 1, 1);
mainLayout->addWidget(wfPlot_b2, 1, 1, 1, 1);
mainLayout->addWidget(wfPlot_b3, 1, 2, 1, 1);
//
this->setLayout(mainLayout);
}
void WFPage::displayOnPlot(short *data, unsigned char num)
{
switch(num){
case 0:
wfPlot_v->displayOnPlot(data, DEFAULT_SIZE);
break;
case 1:
wfPlot_e1->displayOnPlot(data, DEFAULT_SIZE);
break;
case 2:
wfPlot_e2->displayOnPlot(data, DEFAULT_SIZE);
break;
case 3:
wfPlot_b1->displayOnPlot(data, DEFAULT_SIZE);
break;
case 4:
wfPlot_b2->displayOnPlot(data, DEFAULT_SIZE);
break;
case 5:
wfPlot_b3->displayOnPlot(data, DEFAULT_SIZE);
break;
}
}