Changeset 11170 for trunk


Ignore:
Timestamp:
06/24/11 13:38:55 (13 years ago)
Author:
tbretz
Message:
Changed CONTINOUS_TRIGGER_ON/OFF to ENABLE_CONTINOUS_TRIGGER; added ENABLE_BUSY
Location:
trunk/FACT++/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/MainWindow.cc

    r11168 r11170  
    195195void MainWindow::on_fFadContTriggerOn_clicked()
    196196{
    197     Dim::SendCommand("FAD_CONTROL/CONTINOUS_TRIGGER_ON");
     197    Dim::SendCommand("FAD_CONTROL/ENABLE_CONTINOUS_TRIGGER", uint8_t(true));
    198198}
    199199
    200200void MainWindow::on_fFadContTriggerOff_clicked()
    201201{
    202     Dim::SendCommand("FAD_CONTROL/CONTINOUS_TRIGGER_OFF");
     202    Dim::SendCommand("FAD_CONTROL/ENABLE_CONTINOUS_TRIGGER", uint8_t(false));
     203}
     204
     205void MainWindow::on_fFadBusyOn_clicked()
     206{
     207    Dim::SendCommand("FAD_CONTROL/ENABLE_BUSY", uint8_t(true));
     208}
     209
     210void MainWindow::on_fFadBusyOff_clicked()
     211{
     212    Dim::SendCommand("FAD_CONTROL/ENABLE_BUSY", uint8_t(false));
    203213}
    204214
  • trunk/FACT++/gui/design.ui

    r11169 r11170  
    28752875             <rect>
    28762876              <x>560</x>
    2877               <y>10</y>
     2877              <y>0</y>
    28782878              <width>307</width>
    28792879              <height>161</height>
     
    30803080            <property name="geometry">
    30813081             <rect>
    3082               <x>600</x>
    3083               <y>230</y>
     3082              <x>590</x>
     3083              <y>210</y>
    30843084              <width>281</width>
    3085               <height>284</height>
     3085              <height>287</height>
    30863086             </rect>
    30873087            </property>
     
    34243424              </widget>
    34253425             </item>
     3426             <item row="7" column="2">
     3427              <widget class="QPushButton" name="fFadContTriggerOff">
     3428               <property name="text">
     3429                <string>off</string>
     3430               </property>
     3431              </widget>
     3432             </item>
     3433             <item row="0" column="3">
     3434              <widget class="QLabel" name="label_136">
     3435               <property name="text">
     3436                <string>Run</string>
     3437               </property>
     3438              </widget>
     3439             </item>
     3440             <item row="9" column="3">
     3441              <widget class="QLabel" name="label_137">
     3442               <property name="text">
     3443                <string>Data Sockets</string>
     3444               </property>
     3445              </widget>
     3446             </item>
     3447             <item row="9" column="1">
     3448              <widget class="QPushButton" name="fFadSocket0">
     3449               <property name="text">
     3450                <string>Sock 0</string>
     3451               </property>
     3452              </widget>
     3453             </item>
     3454             <item row="9" column="2">
     3455              <widget class="QPushButton" name="fFadSocket17">
     3456               <property name="text">
     3457                <string>Sock 1-7</string>
     3458               </property>
     3459              </widget>
     3460             </item>
     3461             <item row="6" column="0">
     3462              <widget class="QPushButton" name="fFadLedTriggerLine">
     3463               <property name="enabled">
     3464                <bool>true</bool>
     3465               </property>
     3466               <property name="sizePolicy">
     3467                <sizepolicy hsizetype="Fixed" vsizetype="Minimum">
     3468                 <horstretch>0</horstretch>
     3469                 <verstretch>0</verstretch>
     3470                </sizepolicy>
     3471               </property>
     3472               <property name="maximumSize">
     3473                <size>
     3474                 <width>18</width>
     3475                 <height>16777215</height>
     3476                </size>
     3477               </property>
     3478               <property name="text">
     3479                <string/>
     3480               </property>
     3481               <property name="icon">
     3482                <iconset resource="design.qrc">
     3483                 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset>
     3484               </property>
     3485               <property name="iconSize">
     3486                <size>
     3487                 <width>16</width>
     3488                 <height>16</height>
     3489                </size>
     3490               </property>
     3491               <property name="checkable">
     3492                <bool>false</bool>
     3493               </property>
     3494               <property name="flat">
     3495                <bool>true</bool>
     3496               </property>
     3497              </widget>
     3498             </item>
     3499             <item row="7" column="0">
     3500              <widget class="QPushButton" name="fFadLedContinousTrigger">
     3501               <property name="enabled">
     3502                <bool>true</bool>
     3503               </property>
     3504               <property name="sizePolicy">
     3505                <sizepolicy hsizetype="Fixed" vsizetype="Minimum">
     3506                 <horstretch>0</horstretch>
     3507                 <verstretch>0</verstretch>
     3508                </sizepolicy>
     3509               </property>
     3510               <property name="maximumSize">
     3511                <size>
     3512                 <width>18</width>
     3513                 <height>16777215</height>
     3514                </size>
     3515               </property>
     3516               <property name="text">
     3517                <string/>
     3518               </property>
     3519               <property name="icon">
     3520                <iconset resource="design.qrc">
     3521                 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset>
     3522               </property>
     3523               <property name="iconSize">
     3524                <size>
     3525                 <width>16</width>
     3526                 <height>16</height>
     3527                </size>
     3528               </property>
     3529               <property name="checkable">
     3530                <bool>false</bool>
     3531               </property>
     3532               <property name="flat">
     3533                <bool>true</bool>
     3534               </property>
     3535              </widget>
     3536             </item>
     3537             <item row="9" column="0">
     3538              <widget class="QPushButton" name="fFadLedSocket">
     3539               <property name="enabled">
     3540                <bool>true</bool>
     3541               </property>
     3542               <property name="sizePolicy">
     3543                <sizepolicy hsizetype="Fixed" vsizetype="Minimum">
     3544                 <horstretch>0</horstretch>
     3545                 <verstretch>0</verstretch>
     3546                </sizepolicy>
     3547               </property>
     3548               <property name="maximumSize">
     3549                <size>
     3550                 <width>18</width>
     3551                 <height>16777215</height>
     3552                </size>
     3553               </property>
     3554               <property name="text">
     3555                <string/>
     3556               </property>
     3557               <property name="icon">
     3558                <iconset resource="design.qrc">
     3559                 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset>
     3560               </property>
     3561               <property name="iconSize">
     3562                <size>
     3563                 <width>16</width>
     3564                 <height>16</height>
     3565                </size>
     3566               </property>
     3567               <property name="checkable">
     3568                <bool>false</bool>
     3569               </property>
     3570               <property name="flat">
     3571                <bool>true</bool>
     3572               </property>
     3573              </widget>
     3574             </item>
    34263575             <item row="7" column="1">
    34273576              <widget class="QPushButton" name="fFadContTriggerOn">
     
    34313580              </widget>
    34323581             </item>
    3433              <item row="7" column="2">
    3434               <widget class="QPushButton" name="fFadContTriggerOff">
     3582             <item row="8" column="1">
     3583              <widget class="QPushButton" name="fFadBusyOn">
     3584               <property name="text">
     3585                <string>on</string>
     3586               </property>
     3587              </widget>
     3588             </item>
     3589             <item row="8" column="2">
     3590              <widget class="QPushButton" name="fFadBusyOff">
    34353591               <property name="text">
    34363592                <string>off</string>
     
    34383594              </widget>
    34393595             </item>
    3440              <item row="0" column="3">
    3441               <widget class="QLabel" name="label_136">
    3442                <property name="text">
    3443                 <string>Run</string>
    3444                </property>
    3445               </widget>
    3446              </item>
    34473596             <item row="8" column="3">
    3448               <widget class="QLabel" name="label_137">
    3449                <property name="text">
    3450                 <string>Data Sockets</string>
    3451                </property>
    3452               </widget>
    3453              </item>
    3454              <item row="8" column="1">
    3455               <widget class="QPushButton" name="fFadSocket0">
    3456                <property name="text">
    3457                 <string>Sock 0</string>
    3458                </property>
    3459               </widget>
    3460              </item>
    3461              <item row="8" column="2">
    3462               <widget class="QPushButton" name="fFadSocket17">
    3463                <property name="text">
    3464                 <string>Sock 1-7</string>
     3597              <widget class="QLabel" name="label_104">
     3598               <property name="text">
     3599                <string>Busy</string>
     3600               </property>
     3601              </widget>
     3602             </item>
     3603             <item row="8" column="0">
     3604              <widget class="QPushButton" name="fFadLedBusy">
     3605               <property name="enabled">
     3606                <bool>true</bool>
     3607               </property>
     3608               <property name="sizePolicy">
     3609                <sizepolicy hsizetype="Fixed" vsizetype="Minimum">
     3610                 <horstretch>0</horstretch>
     3611                 <verstretch>0</verstretch>
     3612                </sizepolicy>
     3613               </property>
     3614               <property name="maximumSize">
     3615                <size>
     3616                 <width>18</width>
     3617                 <height>16777215</height>
     3618                </size>
     3619               </property>
     3620               <property name="text">
     3621                <string/>
     3622               </property>
     3623               <property name="icon">
     3624                <iconset resource="design.qrc">
     3625                 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset>
     3626               </property>
     3627               <property name="iconSize">
     3628                <size>
     3629                 <width>16</width>
     3630                 <height>16</height>
     3631                </size>
     3632               </property>
     3633               <property name="checkable">
     3634                <bool>false</bool>
     3635               </property>
     3636               <property name="flat">
     3637                <bool>true</bool>
    34653638               </property>
    34663639              </widget>
     
    34743647              <y>20</y>
    34753648              <width>281</width>
    3476               <height>201</height>
     3649              <height>234</height>
    34773650             </rect>
    34783651            </property>
     
    45984771            <property name="geometry">
    45994772             <rect>
    4600               <x>570</x>
    4601               <y>200</y>
     4773              <x>610</x>
     4774              <y>180</y>
    46024775              <width>94</width>
    46034776              <height>24</height>
     
    46124785             <rect>
    46134786              <x>570</x>
    4614               <y>170</y>
     4787              <y>160</y>
    46154788              <width>94</width>
    46164789              <height>24</height>
     
    46254798             <rect>
    46264799              <x>670</x>
    4627               <y>170</y>
     4800              <y>160</y>
    46284801              <width>94</width>
    46294802              <height>24</height>
     
    46384811             <rect>
    46394812              <x>770</x>
    4640               <y>170</y>
     4813              <y>160</y>
    46414814              <width>94</width>
    46424815              <height>24</height>
     
    48345007            <property name="geometry">
    48355008             <rect>
    4836               <x>670</x>
    4837               <y>200</y>
     5009              <x>720</x>
     5010              <y>180</y>
    48385011              <width>94</width>
    48395012              <height>24</height>
Note: See TracChangeset for help on using the changeset viewer.