Changeset 11114
- Timestamp:
- 06/22/11 19:55:06 (13 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/MainWindow.cc
r11113 r11114 148 148 } 149 149 150 void MainWindow:: slot_fFadStartRun_clicked()150 void MainWindow::on_fFadStartRun_clicked() 151 151 { 152 152 Dim::SendCommand("FAD_CONTROL/START_RUN"); 153 153 } 154 154 155 void MainWindow:: slot_fFadStopRun_clicked()155 void MainWindow::on_fFadStopRun_clicked() 156 156 { 157 157 Dim::SendCommand("FAD_CONTROL/STOP_RUN"); 158 158 } 159 159 160 void MainWindow::slot_fFadSingleTrigger_clicked() 160 void MainWindow::on_fFadDrsOn_clicked() 161 { 162 Dim::SendCommand("FAD_CONTROL/ENABLE_DRS", uint8_t(true)); 163 } 164 165 void MainWindow::on_fFadDrsOff_clicked() 166 { 167 Dim::SendCommand("FAD_CONTROL/ENABLE_DRS", uint8_t(false)); 168 } 169 170 void MainWindow::on_fFadDwriteOn_clicked() 171 { 172 Dim::SendCommand("FAD_CONTROL/ENABLE_DWRITE", uint8_t(true)); 173 } 174 175 void MainWindow::on_fFadDwriteOff_clicked() 176 { 177 Dim::SendCommand("FAD_CONTROL/ENABLE_DWRITE", uint8_t(false)); 178 } 179 180 void MainWindow::on_fFadSingleTrigger_clicked() 161 181 { 162 182 Dim::SendCommand("FAD_CONTROL/SEND_SINGLE_TRIGGER"); 163 183 } 164 184 165 void MainWindow:: slot_fFadTriggerLineOn_clicked()166 { 167 Dim::SendCommand("FAD_CONTROL/ENABLE_TRIGGER ", uint8_t(true));168 } 169 170 void MainWindow:: slot_fFadTriggerLineOff_clicked()171 { 172 Dim::SendCommand("FAD_CONTROL/ENABLE_TRIGGER ", uint8_t(false));173 } 174 175 void MainWindow:: slot_fFadContTriggerOn_clicked()185 void MainWindow::on_fFadTriggerLineOn_clicked() 186 { 187 Dim::SendCommand("FAD_CONTROL/ENABLE_TRIGGER_LINE", uint8_t(true)); 188 } 189 190 void MainWindow::on_fFadTriggerLineOff_clicked() 191 { 192 Dim::SendCommand("FAD_CONTROL/ENABLE_TRIGGER_LINE", uint8_t(false)); 193 } 194 195 void MainWindow::on_fFadContTriggerOn_clicked() 176 196 { 177 197 Dim::SendCommand("FAD_CONTROL/CONTINOUS_TRIGGER_ON"); 178 198 } 179 199 180 void MainWindow:: slot_fFadContTriggerOff_clicked()200 void MainWindow::on_fFadContTriggerOff_clicked() 181 201 { 182 202 Dim::SendCommand("FAD_CONTROL/CONTINOUS_TRIGGER_OFF"); 183 203 } 184 204 185 void MainWindow:: slot_fFadStart_clicked()205 void MainWindow::on_fFadStart_clicked() 186 206 { 187 207 Dim::SendCommand("FAD_CONTROL/START"); 188 208 } 189 209 190 void MainWindow:: slot_fFadStop_clicked()210 void MainWindow::on_fFadStop_clicked() 191 211 { 192 212 Dim::SendCommand("FAD_CONTROL/STOP"); 193 213 } 194 214 195 void MainWindow:: slot_fFadAbort_clicked()215 void MainWindow::on_fFadAbort_clicked() 196 216 { 197 217 Dim::SendCommand("FAD_CONTROL/ABORT"); … … 200 220 void MainWindow::slot_fFadLED_clicked() 201 221 { 222 cout << "clicked" << endl; 202 223 for (int32_t i=0; i<40; i++) 203 224 if (sender()==fFadLED[i]) -
trunk/FACT++/gui/MainWindow.h
r11112 r11114 47 47 48 48 // Tab: FAD 49 void slot_fFadStartRun_clicked(); 50 void slot_fFadStopRun_clicked(); 51 void slot_fFadSingleTrigger_clicked(); 52 void slot_fFadTriggerLineOn_clicked(); 53 void slot_fFadTriggerLineOff_clicked(); 54 void slot_fFadContTriggerOn_clicked(); 55 void slot_fFadContTriggerOff_clicked(); 56 void slot_fFadStart_clicked(); 57 void slot_fFadStop_clicked(); 58 void slot_fFadAbort_clicked(); 59 void slot_fFadConnect_clicked(); 60 void slot_fFadDisconnect_clicked(); 49 void on_fFadStartRun_clicked(); 50 void on_fFadStopRun_clicked(); 51 void on_fFadDrsOn_clicked(); 52 void on_fFadDrsOff_clicked(); 53 void on_fFadDwriteOn_clicked(); 54 void on_fFadDwriteOff_clicked(); 55 void on_fFadSingleTrigger_clicked(); 56 void on_fFadTriggerLineOn_clicked(); 57 void on_fFadTriggerLineOff_clicked(); 58 void on_fFadContTriggerOn_clicked(); 59 void on_fFadContTriggerOff_clicked(); 60 void on_fFadStart_clicked(); 61 void on_fFadStop_clicked(); 62 void on_fFadAbort_clicked(); 61 63 62 64 // Tab: FTM -
trunk/FACT++/gui/design.ui
r11113 r11114 3497 3497 </widget> 3498 3498 </item> 3499 <item row="0" column="3"> 3500 <widget class="QLabel" name="label_136"> 3501 <property name="text"> 3502 <string>Run</string> 3503 </property> 3504 </widget> 3505 </item> 3499 3506 </layout> 3500 3507 </widget> … … 5026 5033 <enum>QAbstractSpinBox::NoButtons</enum> 5027 5034 </property> 5028 <property name="currentSection">5029 <enum>QDateTimeEdit::HourSection</enum>5030 </property>5031 <property name="displayFormat">5032 <string>hh:mm:ss</string>5033 </property>5034 <property name="calendarPopup">5035 <bool>false</bool>5036 </property>5037 <property name="timeSpec">5038 <enum>Qt::OffsetFromUTC</enum>5039 </property>5040 5035 <property name="time"> 5041 5036 <time> … … 5044 5039 <second>0</second> 5045 5040 </time> 5041 </property> 5042 <property name="currentSection"> 5043 <enum>QDateTimeEdit::HourSection</enum> 5044 </property> 5045 <property name="displayFormat"> 5046 <string>hh:mm:ss</string> 5047 </property> 5048 <property name="calendarPopup"> 5049 <bool>false</bool> 5050 </property> 5051 <property name="timeSpec"> 5052 <enum>Qt::OffsetFromUTC</enum> 5046 5053 </property> 5047 5054 </widget> … … 5168 5175 <enum>QAbstractSpinBox::NoButtons</enum> 5169 5176 </property> 5170 <property name="currentSection">5171 <enum>QDateTimeEdit::HourSection</enum>5172 </property>5173 <property name="displayFormat">5174 <string>hh:mm:ss</string>5175 </property>5176 <property name="calendarPopup">5177 <bool>false</bool>5178 </property>5179 <property name="timeSpec">5180 <enum>Qt::OffsetFromUTC</enum>5181 </property>5182 5177 <property name="time"> 5183 5178 <time> … … 5186 5181 <second>0</second> 5187 5182 </time> 5183 </property> 5184 <property name="currentSection"> 5185 <enum>QDateTimeEdit::HourSection</enum> 5186 </property> 5187 <property name="displayFormat"> 5188 <string>hh:mm:ss</string> 5189 </property> 5190 <property name="calendarPopup"> 5191 <bool>false</bool> 5192 </property> 5193 <property name="timeSpec"> 5194 <enum>Qt::OffsetFromUTC</enum> 5188 5195 </property> 5189 5196 </widget> … … 6502 6509 <size> 6503 6510 <width>223</width> 6504 <height>3 20</height>6511 <height>349</height> 6505 6512 </size> 6506 6513 </property> … … 6675 6682 </widget> 6676 6683 </item> 6677 <item row=" 8" column="4">6684 <item row="9" column="4"> 6678 6685 <widget class="QLabel" name="fStatusChatLabel"> 6679 6686 <property name="text"> … … 6682 6689 </widget> 6683 6690 </item> 6684 <item row=" 7" column="1">6691 <item row="8" column="1"> 6685 6692 <widget class="QCheckBox" name="fStatusLoggerEnable"> 6686 6693 <property name="enabled"> … … 6707 6714 </widget> 6708 6715 </item> 6709 <item row=" 7" column="3">6716 <item row="8" column="3"> 6710 6717 <widget class="QPushButton" name="fStatusLoggerLed"> 6711 6718 <property name="enabled"> … … 6745 6752 </widget> 6746 6753 </item> 6747 <item row=" 7" column="4">6754 <item row="8" column="4"> 6748 6755 <widget class="QLabel" name="fStatusLoggerLabel"> 6749 6756 <property name="text"> … … 6797 6804 </widget> 6798 6805 </item> 6799 <item row=" 7" column="2">6806 <item row="8" column="2"> 6800 6807 <widget class="QLabel" name="fStatusLogger"> 6801 6808 <property name="sizePolicy"> … … 6816 6823 </widget> 6817 6824 </item> 6818 <item row=" 8" column="2">6825 <item row="9" column="2"> 6819 6826 <widget class="QLabel" name="fStatusChat"> 6820 6827 <property name="sizePolicy"> … … 6867 6874 </spacer> 6868 6875 </item> 6876 <item row="5" column="2"> 6877 <widget class="QLabel" name="label_59"> 6878 <property name="sizePolicy"> 6879 <sizepolicy hsizetype="Minimum" vsizetype="Preferred"> 6880 <horstretch>0</horstretch> 6881 <verstretch>0</verstretch> 6882 </sizepolicy> 6883 </property> 6884 <property name="text"> 6885 <string>FTU</string> 6886 </property> 6887 <property name="alignment"> 6888 <set>Qt::AlignCenter</set> 6889 </property> 6890 </widget> 6891 </item> 6892 <item row="5" column="4"> 6893 <widget class="QLabel" name="fStatusFTULabel"> 6894 <property name="text"> 6895 <string>Offline</string> 6896 </property> 6897 </widget> 6898 </item> 6899 <item row="7" column="2"> 6900 <widget class="QLabel" name="label_60"> 6901 <property name="text"> 6902 <string>Scheduler</string> 6903 </property> 6904 </widget> 6905 </item> 6906 <item row="7" column="4"> 6907 <widget class="QLabel" name="fStatusSchedulerLabel"> 6908 <property name="text"> 6909 <string>Offline</string> 6910 </property> 6911 </widget> 6912 </item> 6913 <item row="7" column="3"> 6914 <widget class="QPushButton" name="fStatusSchedulerLed"> 6915 <property name="maximumSize"> 6916 <size> 6917 <width>18</width> 6918 <height>16777215</height> 6919 </size> 6920 </property> 6921 <property name="text"> 6922 <string/> 6923 </property> 6924 <property name="icon"> 6925 <iconset resource="design.qrc"> 6926 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 6927 </property> 6928 <property name="flat"> 6929 <bool>true</bool> 6930 </property> 6931 </widget> 6932 </item> 6933 <item row="9" column="3"> 6934 <widget class="QPushButton" name="fStatusChatLed"> 6935 <property name="enabled"> 6936 <bool>true</bool> 6937 </property> 6938 <property name="sizePolicy"> 6939 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 6940 <horstretch>0</horstretch> 6941 <verstretch>0</verstretch> 6942 </sizepolicy> 6943 </property> 6944 <property name="maximumSize"> 6945 <size> 6946 <width>18</width> 6947 <height>16777215</height> 6948 </size> 6949 </property> 6950 <property name="text"> 6951 <string/> 6952 </property> 6953 <property name="icon"> 6954 <iconset resource="design.qrc"> 6955 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 6956 </property> 6957 <property name="iconSize"> 6958 <size> 6959 <width>16</width> 6960 <height>16</height> 6961 </size> 6962 </property> 6963 <property name="checkable"> 6964 <bool>false</bool> 6965 </property> 6966 <property name="flat"> 6967 <bool>true</bool> 6968 </property> 6969 </widget> 6970 </item> 6971 <item row="1" column="3"> 6972 <widget class="QPushButton" name="fStatusDNSLed"> 6973 <property name="enabled"> 6974 <bool>true</bool> 6975 </property> 6976 <property name="sizePolicy"> 6977 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 6978 <horstretch>0</horstretch> 6979 <verstretch>0</verstretch> 6980 </sizepolicy> 6981 </property> 6982 <property name="maximumSize"> 6983 <size> 6984 <width>18</width> 6985 <height>16777215</height> 6986 </size> 6987 </property> 6988 <property name="text"> 6989 <string/> 6990 </property> 6991 <property name="icon"> 6992 <iconset resource="design.qrc"> 6993 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 6994 </property> 6995 <property name="iconSize"> 6996 <size> 6997 <width>16</width> 6998 <height>16</height> 6999 </size> 7000 </property> 7001 <property name="checkable"> 7002 <bool>false</bool> 7003 </property> 7004 <property name="flat"> 7005 <bool>true</bool> 7006 </property> 7007 </widget> 7008 </item> 7009 <item row="6" column="2"> 7010 <widget class="QLabel" name="label_135"> 7011 <property name="text"> 7012 <string>Slow Control</string> 7013 </property> 7014 </widget> 7015 </item> 7016 <item row="6" column="4"> 7017 <widget class="QLabel" name="fStatusFSCLabel"> 7018 <property name="text"> 7019 <string>Offline</string> 7020 </property> 7021 </widget> 7022 </item> 6869 7023 <item row="5" column="3"> 6870 7024 <widget class="QPushButton" name="fStatusFTULed"> … … 6887 7041 </widget> 6888 7042 </item> 6889 <item row="5" column="2">6890 <widget class="QLabel" name="label_59">6891 <property name="sizePolicy">6892 <sizepolicy hsizetype="Minimum" vsizetype="Preferred">6893 <horstretch>0</horstretch>6894 <verstretch>0</verstretch>6895 </sizepolicy>6896 </property>6897 <property name="text">6898 <string>FTU</string>6899 </property>6900 <property name="alignment">6901 <set>Qt::AlignCenter</set>6902 </property>6903 </widget>6904 </item>6905 <item row="5" column="4">6906 <widget class="QLabel" name="fStatusFTULabel">6907 <property name="text">6908 <string>Offline</string>6909 </property>6910 </widget>6911 </item>6912 <item row="6" column="2">6913 <widget class="QLabel" name="label_60">6914 <property name="text">6915 <string>Scheduler</string>6916 </property>6917 </widget>6918 </item>6919 <item row="6" column="4">6920 <widget class="QLabel" name="fStatusSchedulerLabel">6921 <property name="text">6922 <string>Offline</string>6923 </property>6924 </widget>6925 </item>6926 7043 <item row="6" column="3"> 6927 <widget class="QPushButton" name="fStatus SchedulerLed">7044 <widget class="QPushButton" name="fStatusFSCLed"> 6928 7045 <property name="maximumSize"> 6929 7046 <size> … … 6938 7055 <iconset resource="design.qrc"> 6939 7056 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 6940 </property>6941 <property name="flat">6942 <bool>true</bool>6943 </property>6944 </widget>6945 </item>6946 <item row="8" column="3">6947 <widget class="QPushButton" name="fStatusChatLed">6948 <property name="enabled">6949 <bool>true</bool>6950 </property>6951 <property name="sizePolicy">6952 <sizepolicy hsizetype="Fixed" vsizetype="Minimum">6953 <horstretch>0</horstretch>6954 <verstretch>0</verstretch>6955 </sizepolicy>6956 </property>6957 <property name="maximumSize">6958 <size>6959 <width>18</width>6960 <height>16777215</height>6961 </size>6962 </property>6963 <property name="text">6964 <string/>6965 </property>6966 <property name="icon">6967 <iconset resource="design.qrc">6968 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset>6969 </property>6970 <property name="iconSize">6971 <size>6972 <width>16</width>6973 <height>16</height>6974 </size>6975 </property>6976 <property name="checkable">6977 <bool>false</bool>6978 </property>6979 <property name="flat">6980 <bool>true</bool>6981 </property>6982 </widget>6983 </item>6984 <item row="1" column="3">6985 <widget class="QPushButton" name="fStatusDNSLed">6986 <property name="enabled">6987 <bool>true</bool>6988 </property>6989 <property name="sizePolicy">6990 <sizepolicy hsizetype="Fixed" vsizetype="Minimum">6991 <horstretch>0</horstretch>6992 <verstretch>0</verstretch>6993 </sizepolicy>6994 </property>6995 <property name="maximumSize">6996 <size>6997 <width>18</width>6998 <height>16777215</height>6999 </size>7000 </property>7001 <property name="text">7002 <string/>7003 </property>7004 <property name="icon">7005 <iconset resource="design.qrc">7006 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset>7007 </property>7008 <property name="iconSize">7009 <size>7010 <width>16</width>7011 <height>16</height>7012 </size>7013 </property>7014 <property name="checkable">7015 <bool>false</bool>7016 7057 </property> 7017 7058 <property name="flat">
Note:
See TracChangeset
for help on using the changeset viewer.