Changeset 12115 for trunk/FACT++
- Timestamp:
- 09/16/11 19:19:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r12110 r12115 806 806 807 807 SetLedColor(fStatusDNSLed, version==0 ? kLedRed : kLedGreen, Time()); 808 809 fShutdown->setEnabled(version!=0); 810 fShutdownAll->setEnabled(version!=0); 808 811 } 809 812 … … 2370 2373 void SetFscValue(QDoubleSpinBox *box, const DimData &d, int idx, bool enable) 2371 2374 { 2372 box->setEnabled(enable);2375 //box->setEnabled(enable); 2373 2376 if (!enable) 2374 2377 { … … 2388 2391 { 2389 2392 const bool enable = d.size()>0 && CheckSize(d, 60*sizeof(float)); 2393 if (!enable) 2394 return; 2390 2395 2391 2396 QDoubleSpinBox *boxes[] = { … … 2441 2446 { 2442 2447 const bool enable = d.size()>0 && CheckSize(d, 31*sizeof(float)); 2448 if (!enable) 2449 return; 2443 2450 2444 2451 QDoubleSpinBox *boxes[] = { … … 2461 2468 { 2462 2469 const bool enable = d.size()>0 && CheckSize(d, 31*sizeof(float)); 2470 if (!enable) 2471 return; 2463 2472 2464 2473 QDoubleSpinBox *boxes[] = { … … 2648 2657 SetLedColor(fStatusMCPLed, kLedRed, time); 2649 2658 if (s.index==3) // Connecting 2650 SetLedColor(fStatus FTMLed, kLedOrange, time);2659 SetLedColor(fStatusMCPLed, kLedOrange, time); 2651 2660 if (s.index==4) // Connected 2652 SetLedColor(fStatus FTMLed, kLedYellow, time);2661 SetLedColor(fStatusMCPLed, kLedYellow, time); 2653 2662 if (s.index==5) // Idle 2654 SetLedColor(fStatus FTMLed, kLedGreen, time);2663 SetLedColor(fStatusMCPLed, kLedGreen, time); 2655 2664 2656 2665 const bool configuring = s.index>=7 && s.index<=10; 2657 2666 2658 2667 if (configuring) // Idle 2659 SetLedColor(fStatus FTMLed, kLedGreen, time);2668 SetLedColor(fStatusMCPLed, kLedGreen, time); 2660 2669 2661 2670 fMcpStartRun->setEnabled(s.index==5); … … 2686 2695 SetLedColor(fStatusFTMLed, kLedGreen, time); 2687 2696 2688 fFtmStartRun->setEnabled(!configuring );2689 fFtmStopRun->setEnabled(!configuring );2697 fFtmStartRun->setEnabled(!configuring && enable); 2698 fFtmStopRun->setEnabled(!configuring && enable); 2690 2699 2691 2700 if (s.index==FTM::StateMachine::kConnected || … … 2750 2759 2751 2760 const bool configuring = s.index>=FAD::kConfiguring1; 2752 fFadStart->setEnabled(!configuring );2753 fFadStop->setEnabled(!configuring );2754 fFadAbort->setEnabled(!configuring );2761 fFadStart->setEnabled(!configuring && enable); 2762 fFadStop->setEnabled(!configuring && enable); 2763 fFadAbort->setEnabled(!configuring && enable); 2755 2764 } 2756 2765 … … 2841 2850 2842 2851 fLoggerWidget->setEnabled(enable); 2852 fLoggerStart->setEnabled(enable); 2853 fLoggerStop->setEnabled(enable); 2843 2854 } 2844 2855 … … 3759 3770 fLoggerWidget->setEnabled(false); 3760 3771 fBiasWidget->setEnabled(false); 3772 fAuxWidget->setEnabled(false); 3761 3773 3762 3774 fChatSend->setEnabled(false);
Note:
See TracChangeset
for help on using the changeset viewer.