Changeset 11170
- Timestamp:
- 06/24/11 13:38:55 (13 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/MainWindow.cc
r11168 r11170 195 195 void MainWindow::on_fFadContTriggerOn_clicked() 196 196 { 197 Dim::SendCommand("FAD_CONTROL/ CONTINOUS_TRIGGER_ON");197 Dim::SendCommand("FAD_CONTROL/ENABLE_CONTINOUS_TRIGGER", uint8_t(true)); 198 198 } 199 199 200 200 void MainWindow::on_fFadContTriggerOff_clicked() 201 201 { 202 Dim::SendCommand("FAD_CONTROL/CONTINOUS_TRIGGER_OFF"); 202 Dim::SendCommand("FAD_CONTROL/ENABLE_CONTINOUS_TRIGGER", uint8_t(false)); 203 } 204 205 void MainWindow::on_fFadBusyOn_clicked() 206 { 207 Dim::SendCommand("FAD_CONTROL/ENABLE_BUSY", uint8_t(true)); 208 } 209 210 void MainWindow::on_fFadBusyOff_clicked() 211 { 212 Dim::SendCommand("FAD_CONTROL/ENABLE_BUSY", uint8_t(false)); 203 213 } 204 214 -
trunk/FACT++/gui/design.ui
r11169 r11170 2875 2875 <rect> 2876 2876 <x>560</x> 2877 <y> 10</y>2877 <y>0</y> 2878 2878 <width>307</width> 2879 2879 <height>161</height> … … 3080 3080 <property name="geometry"> 3081 3081 <rect> 3082 <x> 600</x>3083 <y>2 30</y>3082 <x>590</x> 3083 <y>210</y> 3084 3084 <width>281</width> 3085 <height>28 4</height>3085 <height>287</height> 3086 3086 </rect> 3087 3087 </property> … … 3424 3424 </widget> 3425 3425 </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> 3426 3575 <item row="7" column="1"> 3427 3576 <widget class="QPushButton" name="fFadContTriggerOn"> … … 3431 3580 </widget> 3432 3581 </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"> 3435 3591 <property name="text"> 3436 3592 <string>off</string> … … 3438 3594 </widget> 3439 3595 </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>3447 3596 <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> 3465 3638 </property> 3466 3639 </widget> … … 3474 3647 <y>20</y> 3475 3648 <width>281</width> 3476 <height>2 01</height>3649 <height>234</height> 3477 3650 </rect> 3478 3651 </property> … … 4598 4771 <property name="geometry"> 4599 4772 <rect> 4600 <x> 570</x>4601 <y> 200</y>4773 <x>610</x> 4774 <y>180</y> 4602 4775 <width>94</width> 4603 4776 <height>24</height> … … 4612 4785 <rect> 4613 4786 <x>570</x> 4614 <y>1 70</y>4787 <y>160</y> 4615 4788 <width>94</width> 4616 4789 <height>24</height> … … 4625 4798 <rect> 4626 4799 <x>670</x> 4627 <y>1 70</y>4800 <y>160</y> 4628 4801 <width>94</width> 4629 4802 <height>24</height> … … 4638 4811 <rect> 4639 4812 <x>770</x> 4640 <y>1 70</y>4813 <y>160</y> 4641 4814 <width>94</width> 4642 4815 <height>24</height> … … 4834 5007 <property name="geometry"> 4835 5008 <rect> 4836 <x> 670</x>4837 <y> 200</y>5009 <x>720</x> 5010 <y>180</y> 4838 5011 <width>94</width> 4839 5012 <height>24</height>
Note:
See TracChangeset
for help on using the changeset viewer.