using namespace Tms;
PupeSimulateWin::PupeSimulateWin(QWidget* parent,Control& c) : ocontrol(c) {
QGridLayout* grid;
QButton* fileSelectButton;
QVGroupBox* channelGroup;
QVGroupBox* testDataGroup;
QVGroupBox* internalTimingsGroup;
QVGroupBox* simulationGroup;
QGroupBox* tmsGroup;
QWidget* w;
QGridLayout* v;
BString s;
int row = 0;
setFixedWidth(600);
grid = new QGridLayout(this, 5, 3);
grid->setMargin(20);
grid->setSpacing(20);
channelGroup = new QVGroupBox("Pupe Channel", this, "channelGroup");
w = new QWidget(channelGroup, "");
v = new QGridLayout(w);
v->setSpacing(10);
row = 0;
v->addWidget(new QLabel("All Channels", w), row, 0);
v->addWidget(oallChannels = new QCheckBox("", w), row, 1);
row++;
v->addWidget(new QLabel("Channel Number", w), row, 0);
v->addWidget(ochannel = new QSpinBox(1, 60, 1, w, ""), row, 1);
ochannel->setWrapping(true);
internalTimingsGroup = new QVGroupBox("Internal Timing Control", channelGroup, "internalTimings");
w = new QWidget(internalTimingsGroup,"internalTimingsW");
v = new QGridLayout(w);
v->setSpacing(10);
row = 0;
v->addMultiCellWidget(oadcSysclkSync = new QCheckBox("ADC Clock synchronised to SYSCLK",w,""),row,row,0,1);
v->addMultiCellWidget(odisableBlr = new QCheckBox("Disable Blr",w,""),row,row,2,3);
row++;
row++;
v->addWidget(oFref = new QCheckBox("Fref",w,""),row,0);
v->addWidget(oHChange = new QCheckBox("H Change",w,""),row,1);
v->addWidget(oInjection = new QCheckBox("Injection",w,""),row,2);
v->addWidget(oCalStop = new QCheckBox("Cal Stop",w,""),row,3);
row++;
v->addWidget(oCalStart = new QCheckBox("Cal Start",w,""),row,0);
v->addWidget(oCycleStop = new QCheckBox("Cycle Stop",w,""),row,1);
v->addWidget(oCycleStart = new QCheckBox("Cycle Start",w,""),row,2);
v->addWidget(oClock = new QCheckBox("Clock",w,""),row,3);
row++;
oiApply = new QPushButton("Apply", internalTimingsGroup,"");
oiApply->setMaximumWidth(200);