Changeset 11607 for trunk/FACT++/gui
- Timestamp:
- 07/26/11 12:42:13 (14 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11591 r11607 396 396 DimStampedInfo fDimFadPrescaler; 397 397 DimStampedInfo fDimFadRefClock; 398 DimStampedInfo fDimFadRoi; 398 399 DimStampedInfo fDimFadStatus; 399 400 DimStampedInfo fDimFadStatistics1; … … 1069 1070 SetLedColor(fFadLedRefClock, abs(diff)>3?kLedRed:kLedGreen, d.time); 1070 1071 1071 handleFadToolTip(d.time, fFadLedRefClock, ptr+2); 1072 handleFadToolTip(d.time, fFadLedRefClock, ptr); 1073 } 1074 1075 void handleFadRoi(const DimData &d) 1076 { 1077 if (d.size()==0) 1078 { 1079 fFadRoi->setEnabled(false); 1080 fFadRoiCh9->setEnabled(false); 1081 SetLedColor(fFadLedRoi, kLedGray, d.time); 1082 return; 1083 } 1084 1085 if (!CheckSize(d, 2*sizeof(uint16_t))) 1086 return; 1087 1088 const uint16_t *ptr = d.ptr<uint16_t>(); 1089 1090 fFadRoi->setEnabled(true); 1091 fFadRoiCh9->setEnabled(true); 1092 1093 fFadRoi->setValue(ptr[0]); 1094 fFadRoiCh9->setValue(ptr[1]); 1095 1096 SetLedColor(fFadLedRoi, kLedGray, d.time); 1072 1097 } 1073 1098 … … 2294 2319 if (getInfo()==&fDimFadRefClock) 2295 2320 return PostInfoHandler(&FactGui::handleFadRefClock); 2321 2322 if (getInfo()==&fDimFadRoi) 2323 return PostInfoHandler(&FactGui::handleFadRoi); 2296 2324 2297 2325 if (getInfo()==&fDimFadPrescaler) … … 2739 2767 fDimFtmCounter ("FTM_CONTROL/COUNTER", (void*)NULL, 0, this), 2740 2768 //- 2741 fDimFadWriteStats ("FAD_CONTROL/STATS", (void*)NULL, 0, this), 2742 fDimFadRuns ("FAD_CONTROL/RUNS", (void*)NULL, 0, this), 2743 fDimFadEvents ("FAD_CONTROL/EVENTS", (void*)NULL, 0, this), 2744 fDimFadEventData ("FAD_CONTROL/EVENT_DATA", (void*)NULL, 0, this), 2745 fDimFadConnections ("FAD_CONTROL/CONNECTIONS", (void*)NULL, 0, this), 2746 fDimFadFwVersion ("FAD_CONTROL/FIRMWARE_VERSION", (void*)NULL, 0, this), 2747 fDimFadRunNumber ("FAD_CONTROL/RUN_NUMBER", (void*)NULL, 0, this), 2748 fDimFadDNA ("FAD_CONTROL/DNA", (void*)NULL, 0, this), 2749 fDimFadTemperature ("FAD_CONTROL/TEMPERATURE", (void*)NULL, 0, this), 2750 fDimFadPrescaler ("FAD_CONTROL/PRESCALER", (void*)NULL, 0, this), 2751 fDimFadRefClock ("FAD_CONTROL/REFERENCE_CLOCK", (void*)NULL, 0, this), 2752 fDimFadStatus ("FAD_CONTROL/STATUS", (void*)NULL, 0, this), 2753 fDimFadStatistics1 ("FAD_CONTROL/STATISTICS1", (void*)NULL, 0, this), 2754 fDimFadStatistics2 ("FAD_CONTROL/STATISTICS2", (void*)NULL, 0, this), 2769 fDimFadWriteStats ("FAD_CONTROL/STATS", (void*)NULL, 0, this), 2770 fDimFadRuns ("FAD_CONTROL/RUNS", (void*)NULL, 0, this), 2771 fDimFadEvents ("FAD_CONTROL/EVENTS", (void*)NULL, 0, this), 2772 fDimFadEventData ("FAD_CONTROL/EVENT_DATA", (void*)NULL, 0, this), 2773 fDimFadConnections ("FAD_CONTROL/CONNECTIONS", (void*)NULL, 0, this), 2774 fDimFadFwVersion ("FAD_CONTROL/FIRMWARE_VERSION", (void*)NULL, 0, this), 2775 fDimFadRunNumber ("FAD_CONTROL/RUN_NUMBER", (void*)NULL, 0, this), 2776 fDimFadDNA ("FAD_CONTROL/DNA", (void*)NULL, 0, this), 2777 fDimFadTemperature ("FAD_CONTROL/TEMPERATURE", (void*)NULL, 0, this), 2778 fDimFadPrescaler ("FAD_CONTROL/PRESCALER", (void*)NULL, 0, this), 2779 fDimFadRefClock ("FAD_CONTROL/REFERENCE_CLOCK", (void*)NULL, 0, this), 2780 fDimFadRoi ("FAD_CONTROL/REGION_OF_INTEREST", (void*)NULL, 0, this), 2781 fDimFadStatus ("FAD_CONTROL/STATUS", (void*)NULL, 0, this), 2782 fDimFadStatistics1 ("FAD_CONTROL/STATISTICS1", (void*)NULL, 0, this), 2783 fDimFadStatistics2 ("FAD_CONTROL/STATISTICS2", (void*)NULL, 0, this), 2755 2784 //- 2756 2785 fEventData(0) -
trunk/FACT++/gui/design.ui
r11606 r11607 3175 3175 </item> 3176 3176 <item row="3" column="1"> 3177 <widget class="QPushButton" name="f StatusDNSLed_3">3177 <widget class="QPushButton" name="fFadLedRoi"> 3178 3178 <property name="enabled"> 3179 3179 <bool>true</bool> … … 3293 3293 </widget> 3294 3294 </item> 3295 <item row="3" column="2">3296 <widget class="QSpinBox" name="spinBox_2">3297 <property name="enabled">3298 <bool>false</bool>3299 </property>3300 <property name="alignment">3301 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>3302 </property>3303 <property name="readOnly">3304 <bool>true</bool>3305 </property>3306 <property name="buttonSymbols">3307 <enum>QAbstractSpinBox::NoButtons</enum>3308 </property>3309 </widget>3310 </item>3311 3295 <item row="0" column="2"> 3312 3296 <widget class="QDoubleSpinBox" name="fFadFwVersion"> … … 3335 3319 </widget> 3336 3320 </item> 3337 <item row="3" column="3">3338 <widget class="QSpinBox" name="fFadRoiCmd">3339 <property name="alignment">3340 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>3341 </property>3342 <property name="maximum">3343 <number>1024</number>3344 </property>3345 </widget>3346 </item>3347 3321 <item row="1" column="0"> 3348 3322 <widget class="QLabel" name="label_145"> … … 3416 3390 </widget> 3417 3391 </item> 3418 <item row=" 4" column="1">3392 <item row="5" column="1"> 3419 3393 <spacer name="verticalSpacer_26"> 3420 3394 <property name="orientation"> … … 3432 3406 </spacer> 3433 3407 </item> 3434 <item row=" 5" column="2">3408 <item row="6" column="2"> 3435 3409 <widget class="QLabel" name="label_128"> 3436 3410 <property name="text"> … … 3442 3416 </widget> 3443 3417 </item> 3444 <item row=" 5" column="3">3418 <item row="6" column="3"> 3445 3419 <widget class="QLabel" name="label_129"> 3446 3420 <property name="text"> … … 3452 3426 </widget> 3453 3427 </item> 3454 <item row=" 6" column="2">3428 <item row="7" column="2"> 3455 3429 <widget class="QDoubleSpinBox" name="fFadTempMin"> 3456 3430 <property name="alignment"> … … 3468 3442 </widget> 3469 3443 </item> 3470 <item row=" 6" column="3">3444 <item row="7" column="3"> 3471 3445 <widget class="QDoubleSpinBox" name="fFadTempMax"> 3472 3446 <property name="alignment"> … … 3484 3458 </widget> 3485 3459 </item> 3486 <item row=" 7" column="2">3460 <item row="8" column="2"> 3487 3461 <widget class="QDoubleSpinBox" name="fFadRefClockMin"> 3488 3462 <property name="enabled"> … … 3518 3492 </widget> 3519 3493 </item> 3520 <item row=" 7" column="3">3494 <item row="8" column="3"> 3521 3495 <widget class="QDoubleSpinBox" name="fFadRefClockMax"> 3522 3496 <property name="sizePolicy"> … … 3546 3520 </widget> 3547 3521 </item> 3548 <item row=" 6" column="0">3522 <item row="7" column="0"> 3549 3523 <widget class="QLabel" name="label_111"> 3550 3524 <property name="text"> … … 3553 3527 </widget> 3554 3528 </item> 3555 <item row=" 6" column="1">3529 <item row="7" column="1"> 3556 3530 <widget class="QPushButton" name="fFadLedTemp"> 3557 3531 <property name="enabled"> … … 3591 3565 </widget> 3592 3566 </item> 3593 <item row=" 7" column="0">3567 <item row="8" column="0"> 3594 3568 <widget class="QLabel" name="label_101"> 3595 3569 <property name="text"> … … 3598 3572 </widget> 3599 3573 </item> 3600 <item row=" 7" column="1">3574 <item row="8" column="1"> 3601 3575 <widget class="QPushButton" name="fFadLedRefClock"> 3602 3576 <property name="enabled"> … … 3636 3610 </widget> 3637 3611 </item> 3638 <item row=" 8" column="1">3612 <item row="9" column="1"> 3639 3613 <widget class="QPushButton" name="fFadLedRefClockTooLow"> 3640 3614 <property name="enabled"> … … 3674 3648 </widget> 3675 3649 </item> 3676 <item row=" 8" column="0">3650 <item row="9" column="0"> 3677 3651 <widget class="QLabel" name="label_103"> 3678 3652 <property name="text"> … … 3681 3655 </widget> 3682 3656 </item> 3683 <item row=" 9" column="0">3657 <item row="10" column="0"> 3684 3658 <widget class="QLabel" name="label_92"> 3685 3659 <property name="text"> … … 3688 3662 </widget> 3689 3663 </item> 3690 <item row=" 9" column="1">3664 <item row="10" column="1"> 3691 3665 <widget class="QPushButton" name="fFadLedPllLock"> 3692 3666 <property name="enabled"> … … 3726 3700 </widget> 3727 3701 </item> 3702 <item row="3" column="2"> 3703 <widget class="QSpinBox" name="fFadRoi"> 3704 <property name="enabled"> 3705 <bool>false</bool> 3706 </property> 3707 <property name="alignment"> 3708 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3709 </property> 3710 <property name="readOnly"> 3711 <bool>true</bool> 3712 </property> 3713 <property name="buttonSymbols"> 3714 <enum>QAbstractSpinBox::NoButtons</enum> 3715 </property> 3716 <property name="minimum"> 3717 <number>-1</number> 3718 </property> 3719 <property name="maximum"> 3720 <number>1024</number> 3721 </property> 3722 <property name="value"> 3723 <number>-1</number> 3724 </property> 3725 </widget> 3726 </item> 3727 <item row="3" column="3"> 3728 <widget class="QSpinBox" name="fFadRoiCmd"> 3729 <property name="alignment"> 3730 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3731 </property> 3732 <property name="maximum"> 3733 <number>1024</number> 3734 </property> 3735 </widget> 3736 </item> 3737 <item row="4" column="2"> 3738 <widget class="QSpinBox" name="fFadRoiCh9"> 3739 <property name="enabled"> 3740 <bool>false</bool> 3741 </property> 3742 <property name="alignment"> 3743 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3744 </property> 3745 <property name="readOnly"> 3746 <bool>true</bool> 3747 </property> 3748 <property name="buttonSymbols"> 3749 <enum>QAbstractSpinBox::NoButtons</enum> 3750 </property> 3751 <property name="minimum"> 3752 <number>-1</number> 3753 </property> 3754 <property name="maximum"> 3755 <number>1024</number> 3756 </property> 3757 <property name="value"> 3758 <number>-1</number> 3759 </property> 3760 </widget> 3761 </item> 3762 <item row="4" column="3"> 3763 <widget class="QSpinBox" name="fFadRoiCh9Cmd"> 3764 <property name="enabled"> 3765 <bool>false</bool> 3766 </property> 3767 <property name="alignment"> 3768 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 3769 </property> 3770 <property name="maximum"> 3771 <number>1024</number> 3772 </property> 3773 </widget> 3774 </item> 3775 <item row="4" column="0"> 3776 <widget class="QLabel" name="label_161"> 3777 <property name="text"> 3778 <string>Region of interest (ch9)</string> 3779 </property> 3780 </widget> 3781 </item> 3728 3782 </layout> 3729 </item>3730 <item row="1" column="2">3731 <spacer name="horizontalSpacer_29">3732 <property name="orientation">3733 <enum>Qt::Horizontal</enum>3734 </property>3735 <property name="sizeHint" stdset="0">3736 <size>3737 <width>40</width>3738 <height>20</height>3739 </size>3740 </property>3741 </spacer>3742 3783 </item> 3743 3784 <item row="1" column="0"> … … 3760 3801 </property> 3761 3802 </widget> 3803 </item> 3804 <item row="1" column="2"> 3805 <spacer name="horizontalSpacer_29"> 3806 <property name="orientation"> 3807 <enum>Qt::Horizontal</enum> 3808 </property> 3809 <property name="sizeHint" stdset="0"> 3810 <size> 3811 <width>40</width> 3812 <height>20</height> 3813 </size> 3814 </property> 3815 </spacer> 3762 3816 </item> 3763 3817 </layout>
Note:
See TracChangeset
for help on using the changeset viewer.