Changeset 12941
- Timestamp:
- 02/24/12 23:05:19 (13 years ago)
- Location:
- fact
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/Evidence/GUI.cc
r12940 r12941 132 132 setText(Text.section(' ', 1)); 133 133 } 134 else if (!ShowAsTime) setText(Text); 134 else if (!ShowAsTime) { 135 bool OK; 136 double Num = Text.toDouble(&OK); 137 138 if (OK) setText(QString::number(Num, 'g', 4)); 139 else setText(Text); 140 } 135 141 else setText(QDateTime::fromTime_t(Text.toInt()).toString()); 136 142 -
fact/tools/Edd_LP/Edd.cc
r12940 r12941 335 335 // Status display 336 336 EddLineDisplay *Line = new EddLineDisplay("FSC_CONTROL/MESSAGE"); 337 Line->setMaximumWidth(300); 338 Layout->addWidget(Line, 0, 0, 1, 4); 339 340 Line = new EddLineDisplay("FSCctrl/Time"); 341 Layout->addWidget(Line, 0, 5, 1, 2); 342 343 // Temperatures 337 Line->setMaximumWidth(800); 338 Layout->addWidget(Line, 0, 0, 1, 10); 339 340 // Temperatures 344 341 EddPlot *Plot = new EddPlot(); 345 for (int i=1; i<59; i++) { 346 Line = new EddLineDisplay("FSC_CONTROL/TEMPERATURE", i); 342 Plot->setMinimumWidth(400); 343 344 for (int i=0; i<58; i++) { 345 Line = new EddLineDisplay("FSC_CONTROL/TEMPERATURE", i+1); 347 346 Line->setMaximumWidth(50); 348 Layout->addWidget(Line, i/8+1, i%8); 349 Plot->AddService("FSC_CONTROL/TEMPERATURE", i); 350 } 351 Layout->addWidget(Plot, 0, 10, 22, 15); 347 Layout->addWidget(Line, i/10+1, i%10); 348 Plot->AddService("FSC_CONTROL/TEMPERATURE", i+1); 349 } 350 Layout->addWidget(Plot, 0, 10, 20, 10); 351 352 // Humidities 353 for (int i=0; i<4; i++) { 354 Line = new EddLineDisplay("FSC_CONTROL/HUMIDITY", i+1); 355 Line->setMaximumWidth(50); 356 Layout->addWidget(Line, i/10+7, i%10); 357 } 352 358 353 359 // Voltages and currents 354 for (int i=0; i< 40; i++) {355 Line = new EddLineDisplay("FSC_CONTROL/VOLTAGE", i );356 Line->setMaximumWidth( 50);357 Layout->addWidget(Line, i/ 8+10, i%8);358 359 Line = new EddLineDisplay("FSC_CONTROL/CURRENT", i );360 Line->setMaximumWidth( 50);361 Layout->addWidget(Line, i/ 8+16, i%8);360 for (int i=0; i<30; i++) { 361 Line = new EddLineDisplay("FSC_CONTROL/VOLTAGE", i+1); 362 Line->setMaximumWidth(60); 363 Layout->addWidget(Line, i/10+8, i%10); 364 365 Line = new EddLineDisplay("FSC_CONTROL/CURRENT", i+1); 366 Line->setMaximumWidth(60); 367 Layout->addWidget(Line, i/10+11, i%10); 362 368 } 363 369 … … 654 660 New->setMaximumWidth(80); 655 661 New->setToolTip("Show event display window"); 662 New->Window()->resize(550,550); 663 656 664 Layout->addWidget(New, 7, 0); 657 665 … … 857 865 TabWidget->addTab(new TP_Bias, "Bias"); 858 866 printf("...bias\n"); 859 //TabWidget->addTab(new TP_Feedback, "Feedback");860 //printf("...feedback\n");867 TabWidget->addTab(new TP_Feedback, "Feedback"); 868 printf("...feedback\n"); 861 869 TabWidget->addTab(new TP_Environment, "FSC/SQM"); 862 870 printf("...FSC\n");
Note:
See TracChangeset
for help on using the changeset viewer.