- Timestamp:
- 09/01/11 17:46:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11932 r11936 503 503 kLedYellow, 504 504 kLedOrange, 505 kLedGray 505 kLedGray, 506 kLedWarnBorder, 507 kLedWarn, 508 kLedWarnTriangleBorder, 509 kLedWarnTriangle, 506 510 }; 507 511 … … 529 533 button->setIcon(QIcon(":/Resources/icons/gray circle 1.png")); 530 534 break; 535 536 case kLedWarnBorder: 537 button->setIcon(QIcon(":/Resources/icons/warning 1.png")); 538 break; 539 540 case kLedWarn: 541 button->setIcon(QIcon(":/Resources/icons/warning 2.png")); 542 break; 543 544 case kLedWarnTriangle: 545 button->setIcon(QIcon(":/Resources/icons/warning 3.png")); 546 break; 547 548 case kLedWarnTriangleBorder: 549 button->setIcon(QIcon(":/Resources/icons/warning 4.png")); 550 break; 551 531 552 } 532 553 … … 2633 2654 fStatusBiasLabel->setToolTip(s.comment.c_str()); 2634 2655 2635 bool enable = false;2636 2637 2656 if (s.index<1) // No Dim connection 2638 2657 SetLedColor(fStatusBiasLed, kLedGray, time); 2639 2658 if (s.index==1) // Dim connection / FTM disconnected 2640 2659 SetLedColor(fStatusBiasLed, kLedRed, time); 2641 if (s.index>=2) // Dim connection / FTM disconnected 2642 { 2660 if (s.index==2 || s.index==3) // Connecting / Initializing 2661 SetLedColor(fStatusBiasLed, kLedOrange, time); 2662 if (s.index==4) // Connected 2663 SetLedColor(fStatusBiasLed, kLedYellow, time); 2664 if (s.index==5) // Ramping 2665 SetLedColor(fStatusBiasLed, kLedWarn, time); 2666 if (s.index==6) // Over current 2667 SetLedColor(fStatusBiasLed, kLedWarnBorder, time); 2668 if (s.index==7) // At reference 2643 2669 SetLedColor(fStatusBiasLed, kLedGreen, time); 2644 enable = true;2645 }2646 2647 fBiasWidget->setEnabled( enable);2670 if (s.index==8) // ExpertMode 2671 SetLedColor(fStatusBiasLed, kLedWarnTriangleBorder, time); 2672 2673 fBiasWidget->setEnabled(s.index>=3); 2648 2674 } 2649 2675 … … 3280 3306 if (fVecBiasVolt.size()>0) 3281 3307 { 3282 fBiasVoltDac->setValue(fVecBiasVolt[ihw]);3283 3308 fBiasVoltCur->setValue(fVecBiasVolt[ihw]*90./4096); 3284 3309 fBiasVoltRef->setValue(fVecBiasVolt[ihw+416]*90./4096); … … 3579 3604 fEvtBldWidget->setEnabled(false); 3580 3605 fLoggerWidget->setEnabled(false); 3606 fBiasWidget->setEnabled(false); 3581 3607 3582 3608 fChatSend->setEnabled(false);
Note:
See TracChangeset
for help on using the changeset viewer.