Changeset 12106
- Timestamp:
- 09/15/11 22:52:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r12100 r12106 439 439 kLedRed, 440 440 kLedGreen, 441 kLedGreenWarn, 442 kLedGreenCheck, 441 443 kLedYellow, 442 444 kLedOrange, … … 461 463 break; 462 464 465 case kLedGreenWarn: 466 button->setIcon(QIcon(":/Resources/icons/green warn.png")); 467 break; 468 469 case kLedGreenCheck: 470 button->setIcon(QIcon(":/Resources/icons/green check.png")); 471 break; 472 463 473 case kLedYellow: 464 474 button->setIcon(QIcon(":/Resources/icons/yellow circle 1.png")); … … 1074 1084 fFadRunNoNext->setValue(runs[1]); 1075 1085 fFadRunNoCur->setEnabled(runs[0]>=0); 1086 fMcpStopRun->setEnabled(runs[0]>=0); 1087 1076 1088 } 1077 1089 … … 2620 2632 { 2621 2633 // FIXME: Prefix tooltip with time 2634 if (server=="MCP") 2635 { 2636 // FIXME: Enable FTU page!!! 2637 fStatusMCPLabel->setText(s.name.c_str()); 2638 fStatusMCPLabel->setToolTip(s.comment.c_str()); 2639 2640 if (s.index<2) // No Dim connection 2641 SetLedColor(fStatusMCPLed, kLedGray, time); 2642 if (s.index==2) // Disconnected 2643 SetLedColor(fStatusMCPLed, kLedRed, time); 2644 if (s.index==3) // Connecting 2645 SetLedColor(fStatusFTMLed, kLedOrange, time); 2646 if (s.index==4) // Connected 2647 SetLedColor(fStatusFTMLed, kLedYellow, time); 2648 if (s.index==5) // Idle 2649 SetLedColor(fStatusFTMLed, kLedGreen, time); 2650 2651 const bool configuring = s.index>=7 && s.index<=10; 2652 2653 if (configuring) // Idle 2654 SetLedColor(fStatusFTMLed, kLedGreen, time); 2655 2656 fMcpStartRun->setEnabled(s.index==5); 2657 fMcpReset->setEnabled(configuring); 2658 } 2659 2622 2660 if (server=="FTM_CONTROL") 2623 2661 { … … 2627 2665 2628 2666 bool enable = false; 2667 const bool configuring = 2668 s.index==FTM::StateMachine::kConfiguring1 || 2669 s.index==FTM::StateMachine::kConfiguring2 || 2670 s.index==FTM::StateMachine::kConfigured; 2671 2629 2672 2630 2673 if (s.index<FTM::StateMachine::kDisconnected) // No Dim connection … … 2634 2677 if (s.index==FTM::StateMachine::kConnected || 2635 2678 s.index==FTM::StateMachine::kIdle || 2636 s.index==FTM::StateMachine::kConfiguring1 || 2637 s.index==FTM::StateMachine::kConfiguring2 || 2638 s.index==FTM::StateMachine::kConfigured || 2679 configuring || 2639 2680 s.index==FTM::StateMachine::kTakingData) // Dim connection / FTM connected 2640 2681 SetLedColor(fStatusFTMLed, kLedGreen, time); 2682 2683 fFtmStartRun->setEnabled(!configuring); 2684 fFtmStopRun->setEnabled(!configuring); 2641 2685 2642 2686 if (s.index==FTM::StateMachine::kConnected || … … 2699 2743 2700 2744 fFadWidget->setEnabled(enable); 2745 2746 const bool configuring = s.index>=FAD::kConfiguring1; 2747 fFadStart->setEnabled(!configuring); 2748 fFadStop->setEnabled(!configuring); 2749 fFadAbort->setEnabled(!configuring); 2701 2750 } 2702 2751 … … 2732 2781 if (s.index==BIAS::kConnecting || s.index==BIAS::kInitializing) // Connecting / Initializing 2733 2782 SetLedColor(fStatusBiasLed, kLedOrange, time); 2734 if (s.index==BIAS::kConnected) // Connected 2735 SetLedColor(fStatusBiasLed, kLedYellow, time); 2783 if (s.index==BIAS::kVoltageOff) // At reference 2784 SetLedColor(fStatusBiasLed, kLedGreen, time); 2785 if (s.index==BIAS::kNotReferenced) // At reference 2786 SetLedColor(fStatusBiasLed, kLedGreenWarn, time); 2736 2787 if (s.index==BIAS::kRamping) // Ramping 2737 2788 SetLedColor(fStatusBiasLed, kLedInProgress, time); 2789 if (s.index==BIAS::kVoltageOn) // At reference 2790 SetLedColor(fStatusBiasLed, kLedGreenCheck, time); 2738 2791 if (s.index==BIAS::kOverCurrent) // Over current 2739 2792 SetLedColor(fStatusBiasLed, kLedWarnBorder, time); 2740 if (s.index==BIAS::kAtReference) // At reference2741 SetLedColor(fStatusBiasLed, kLedGreen, time);2742 2793 if (s.index==BIAS::kExpertMode) // ExpertMode 2743 2794 SetLedColor(fStatusBiasLed, kLedWarnTriangleBorder, time);
Note:
See TracChangeset
for help on using the changeset viewer.