Changeset 10569
- Timestamp:
- 05/04/11 15:15:38 (14 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r10564 r10569 623 623 624 624 DimData(DimInfo *inf) : 625 time(inf->getTimestamp(), inf->getTimestampMillisecs()*1000),626 625 qos(inf->getQuality()), 627 626 name(inf->getName()), … … 630 629 info(inf) 631 630 { 631 // Must be called in exactly this order! 632 const int tsec = inf->getTimestamp(); 633 const int tms = inf->getTimestampMillisecs(); 634 635 time = Time(tsec, tms*1000); 632 636 } 633 637 … … 752 756 } 753 757 754 if (space/1000000 0>static_cast<size_t>(fLoggerSpaceLeft->maximum()))755 fLoggerSpaceLeft->setValue(fLoggerSpaceLeft->maximum()); // MB758 if (space/1000000>static_cast<size_t>(fLoggerSpaceLeft->maximum())) 759 fLoggerSpaceLeft->setValue(fLoggerSpaceLeft->maximum()); // GB 756 760 else 757 fLoggerSpaceLeft->setValue(space/1000000 0); // MB761 fLoggerSpaceLeft->setValue(space/1000000); // MB 758 762 } 759 763 … … 1002 1006 1003 1007 fTriggerSeqPed->setValue(sdata.fTriggerSeqPed); 1004 fTriggerSeqLP 1->setValue(sdata.fTriggerSeqLP1);1005 fTriggerSeqLP 2->setValue(sdata.fTriggerSeqLP2);1008 fTriggerSeqLPint->setValue(sdata.fTriggerSeqLPint); 1009 fTriggerSeqLPext->setValue(sdata.fTriggerSeqLPext); 1006 1010 1007 1011 fEnableTrigger->setChecked(sdata.HasTrigger()); 1008 fEnableLP 1->setChecked(sdata.HasLP1());1009 fEnableLP 2->setChecked(sdata.HasLP2());1012 fEnableLPint->setChecked(sdata.HasLPint()); 1013 fEnableLPext->setChecked(sdata.HasLPext()); 1010 1014 fEnableVeto->setChecked(sdata.HasVeto()); 1011 1015 fEnablePedestal->setChecked(sdata.HasPedestal()); … … 1355 1359 { 1356 1360 // Initialize the time-stamp (what a weird workaround...) 1357 getInfo()->getTimestamp(); 1361 if (getInfo()) 1362 getInfo()->getTimestamp(); 1358 1363 1359 1364 if (getInfo()==&fDimDNS) -
trunk/FACT++/gui/design.ui
r10552 r10569 52 52 </property> 53 53 <property name="currentIndex"> 54 <number> 1</number>54 <number>0</number> 55 55 </property> 56 56 <property name="documentMode"> … … 583 583 <number>0</number> 584 584 </property> 585 <item row="1" column="0"> 586 <widget class="QCheckBox" name="fEnableTrigger"> 587 <property name="sizePolicy"> 588 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 589 <horstretch>0</horstretch> 590 <verstretch>0</verstretch> 591 </sizepolicy> 592 </property> 593 <property name="text"> 594 <string/> 595 </property> 596 <property name="checked"> 597 <bool>false</bool> 598 </property> 599 </widget> 600 </item> 601 <item row="1" column="1"> 602 <widget class="QCheckBox" name="fEnableExt1"> 603 <property name="sizePolicy"> 604 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 605 <horstretch>0</horstretch> 606 <verstretch>0</verstretch> 607 </sizepolicy> 608 </property> 609 <property name="text"> 610 <string/> 611 </property> 612 </widget> 613 </item> 614 <item row="1" column="2"> 615 <widget class="QCheckBox" name="fEnableExt2"> 616 <property name="sizePolicy"> 617 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 618 <horstretch>0</horstretch> 619 <verstretch>0</verstretch> 620 </sizepolicy> 621 </property> 622 <property name="text"> 623 <string/> 624 </property> 625 </widget> 626 </item> 627 <item row="1" column="3"> 628 <widget class="QCheckBox" name="fEnableTimeMarker"> 629 <property name="sizePolicy"> 630 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 631 <horstretch>0</horstretch> 632 <verstretch>0</verstretch> 633 </sizepolicy> 634 </property> 635 <property name="text"> 636 <string/> 637 </property> 638 </widget> 639 </item> 640 <item row="1" column="5"> 641 <widget class="QCheckBox" name="fEnableVeto"> 642 <property name="sizePolicy"> 643 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 644 <horstretch>0</horstretch> 645 <verstretch>0</verstretch> 646 </sizepolicy> 647 </property> 648 <property name="maximumSize"> 649 <size> 650 <width>16777215</width> 651 <height>16777215</height> 652 </size> 653 </property> 654 <property name="baseSize"> 655 <size> 656 <width>0</width> 657 <height>0</height> 658 </size> 659 </property> 660 <property name="text"> 661 <string/> 662 </property> 663 </widget> 664 </item> 665 <item row="0" column="0"> 585 <item row="0" column="1"> 666 586 <widget class="QLabel" name="label_23"> 667 587 <property name="text"> … … 673 593 </widget> 674 594 </item> 675 <item row="0" column=" 1">595 <item row="0" column="2"> 676 596 <widget class="QLabel" name="label_29"> 677 597 <property name="text"> … … 683 603 </widget> 684 604 </item> 685 <item row="0" column=" 2">605 <item row="0" column="3"> 686 606 <widget class="QLabel" name="label_30"> 687 607 <property name="text"> … … 693 613 </widget> 694 614 </item> 695 <item row="0" column=" 3">615 <item row="0" column="4"> 696 616 <widget class="QLabel" name="label_28"> 697 617 <property name="text"> … … 703 623 </widget> 704 624 </item> 705 <item row="1" column=" 4">625 <item row="1" column="5"> 706 626 <spacer name="horizontalSpacer_30"> 707 627 <property name="orientation"> … … 719 639 </spacer> 720 640 </item> 721 <item row="0" column=" 5">641 <item row="0" column="6"> 722 642 <widget class="QLabel" name="label_27"> 723 643 <property name="text"> … … 728 648 </property> 729 649 </widget> 650 </item> 651 <item row="1" column="6"> 652 <layout class="QHBoxLayout" name="horizontalLayout_20"> 653 <item> 654 <widget class="QCheckBox" name="fEnableVeto"> 655 <property name="sizePolicy"> 656 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 657 <horstretch>0</horstretch> 658 <verstretch>0</verstretch> 659 </sizepolicy> 660 </property> 661 <property name="maximumSize"> 662 <size> 663 <width>21</width> 664 <height>16777215</height> 665 </size> 666 </property> 667 <property name="baseSize"> 668 <size> 669 <width>0</width> 670 <height>0</height> 671 </size> 672 </property> 673 <property name="text"> 674 <string/> 675 </property> 676 </widget> 677 </item> 678 </layout> 679 </item> 680 <item row="1" column="4"> 681 <layout class="QHBoxLayout" name="horizontalLayout_19"> 682 <item> 683 <widget class="QCheckBox" name="fEnableTimeMarker"> 684 <property name="sizePolicy"> 685 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 686 <horstretch>0</horstretch> 687 <verstretch>0</verstretch> 688 </sizepolicy> 689 </property> 690 <property name="maximumSize"> 691 <size> 692 <width>21</width> 693 <height>16777215</height> 694 </size> 695 </property> 696 <property name="text"> 697 <string/> 698 </property> 699 </widget> 700 </item> 701 </layout> 702 </item> 703 <item row="1" column="3"> 704 <layout class="QHBoxLayout" name="horizontalLayout_18"> 705 <item> 706 <widget class="QCheckBox" name="fEnableExt2"> 707 <property name="sizePolicy"> 708 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 709 <horstretch>0</horstretch> 710 <verstretch>0</verstretch> 711 </sizepolicy> 712 </property> 713 <property name="maximumSize"> 714 <size> 715 <width>21</width> 716 <height>16777215</height> 717 </size> 718 </property> 719 <property name="text"> 720 <string/> 721 </property> 722 </widget> 723 </item> 724 </layout> 725 </item> 726 <item row="1" column="2"> 727 <layout class="QHBoxLayout" name="horizontalLayout_17"> 728 <item> 729 <widget class="QCheckBox" name="fEnableExt1"> 730 <property name="sizePolicy"> 731 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 732 <horstretch>0</horstretch> 733 <verstretch>0</verstretch> 734 </sizepolicy> 735 </property> 736 <property name="maximumSize"> 737 <size> 738 <width>21</width> 739 <height>16777215</height> 740 </size> 741 </property> 742 <property name="text"> 743 <string/> 744 </property> 745 </widget> 746 </item> 747 </layout> 748 </item> 749 <item row="1" column="1"> 750 <layout class="QHBoxLayout" name="horizontalLayout_16"> 751 <item> 752 <widget class="QCheckBox" name="fEnableTrigger"> 753 <property name="sizePolicy"> 754 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 755 <horstretch>0</horstretch> 756 <verstretch>0</verstretch> 757 </sizepolicy> 758 </property> 759 <property name="maximumSize"> 760 <size> 761 <width>21</width> 762 <height>16777215</height> 763 </size> 764 </property> 765 <property name="text"> 766 <string/> 767 </property> 768 <property name="checked"> 769 <bool>false</bool> 770 </property> 771 </widget> 772 </item> 773 </layout> 730 774 </item> 731 775 </layout> … … 786 830 </item> 787 831 <item row="4" column="3"> 788 <widget class="QSpinBox" name="fTriggerSeqLP 1">832 <widget class="QSpinBox" name="fTriggerSeqLPint"> 789 833 <property name="enabled"> 790 834 <bool>false</bool> … … 805 849 </item> 806 850 <item row="4" column="5"> 807 <widget class="QSpinBox" name="fTriggerSeqLP 2">851 <widget class="QSpinBox" name="fTriggerSeqLPext"> 808 852 <property name="enabled"> 809 853 <bool>false</bool> … … 836 880 <widget class="QLabel" name="label_38"> 837 881 <property name="text"> 838 <string>LP2</string> 839 </property> 840 <property name="alignment"> 841 <set>Qt::AlignBottom|Qt::AlignHCenter</set> 842 </property> 843 </widget> 844 </item> 845 <item row="2" column="3"> 846 <widget class="QLabel" name="label_36"> 847 <property name="text"> 848 <string>LP1</string> 882 <string>LPext</string> 849 883 </property> 850 884 <property name="alignment"> … … 866 900 </sizepolicy> 867 901 </property> 868 <property name="text"> 869 <string/> 870 </property> 871 </widget> 872 </item> 873 </layout> 874 </item> 875 <item row="3" column="3"> 876 <layout class="QHBoxLayout" name="horizontalLayout_12"> 877 <property name="rightMargin"> 878 <number>0</number> 879 </property> 880 <item> 881 <widget class="QCheckBox" name="fEnableLP1"> 882 <property name="sizePolicy"> 883 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 884 <horstretch>0</horstretch> 885 <verstretch>0</verstretch> 886 </sizepolicy> 902 <property name="maximumSize"> 903 <size> 904 <width>21</width> 905 <height>16777215</height> 906 </size> 887 907 </property> 888 908 <property name="text"> … … 893 913 </layout> 894 914 </item> 895 <item row="3" column=" 5">896 <layout class="QHBoxLayout" name="horizontalLayout_1 3">915 <item row="3" column="3"> 916 <layout class="QHBoxLayout" name="horizontalLayout_12"> 897 917 <property name="rightMargin"> 898 918 <number>0</number> 899 919 </property> 900 920 <item> 901 <widget class="QCheckBox" name="fEnableLP 2">921 <widget class="QCheckBox" name="fEnableLPint"> 902 922 <property name="sizePolicy"> 903 923 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> … … 905 925 <verstretch>0</verstretch> 906 926 </sizepolicy> 927 </property> 928 <property name="maximumSize"> 929 <size> 930 <width>21</width> 931 <height>16777215</height> 932 </size> 907 933 </property> 908 934 <property name="text"> … … 912 938 </item> 913 939 </layout> 940 </item> 941 <item row="3" column="5"> 942 <layout class="QHBoxLayout" name="horizontalLayout_13"> 943 <property name="rightMargin"> 944 <number>0</number> 945 </property> 946 <item> 947 <widget class="QCheckBox" name="fEnableLPext"> 948 <property name="sizePolicy"> 949 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 950 <horstretch>0</horstretch> 951 <verstretch>0</verstretch> 952 </sizepolicy> 953 </property> 954 <property name="maximumSize"> 955 <size> 956 <width>21</width> 957 <height>16777215</height> 958 </size> 959 </property> 960 <property name="text"> 961 <string/> 962 </property> 963 </widget> 964 </item> 965 </layout> 966 </item> 967 <item row="2" column="3"> 968 <widget class="QLabel" name="label_36"> 969 <property name="text"> 970 <string>LPint</string> 971 </property> 972 <property name="alignment"> 973 <set>Qt::AlignBottom|Qt::AlignHCenter</set> 974 </property> 975 </widget> 914 976 </item> 915 977 </layout> … … 3522 3584 <property name="minimumSize"> 3523 3585 <size> 3524 <width>2 00</width>3586 <width>223</width> 3525 3587 <height>291</height> 3526 3588 </size> … … 4435 4497 </connection> 4436 4498 <connection> 4437 <sender>fEnableLP 1</sender>4499 <sender>fEnableLPint</sender> 4438 4500 <signal>toggled(bool)</signal> 4439 <receiver>fTriggerSeqLP 1</receiver>4501 <receiver>fTriggerSeqLPint</receiver> 4440 4502 <slot>setEnabled(bool)</slot> 4441 4503 <hints> … … 4451 4513 </connection> 4452 4514 <connection> 4453 <sender>fEnableLP 2</sender>4515 <sender>fEnableLPext</sender> 4454 4516 <signal>toggled(bool)</signal> 4455 <receiver>fTriggerSeqLP 2</receiver>4517 <receiver>fTriggerSeqLPext</receiver> 4456 4518 <slot>setEnabled(bool)</slot> 4457 4519 <hints>
Note:
See TracChangeset
for help on using the changeset viewer.