- Timestamp:
- 07/11/11 16:03:44 (13 years ago)
- Location:
- trunk/FACT++
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/MainWindow.cc
r11332 r11342 263 263 } 264 264 265 void MainWindow::on_fFadReset_clicked() 266 { 267 Dim::SendCommand("FAD_CONTROL/RESET"); 265 void MainWindow::on_fFadSoftReset_clicked() 266 { 267 Dim::SendCommand("FAD_CONTROL/SOFT_RESET"); 268 } 269 270 void MainWindow::on_fFadHardReset_clicked() 271 { 272 Dim::SendCommand("FAD_CONTROL/HARD_RESET"); 268 273 } 269 274 -
trunk/FACT++/gui/MainWindow.h
r11332 r11342 37 37 void on_fFadStop_clicked(); 38 38 void on_fFadAbort_clicked(); 39 void on_fFadReset_clicked(); 39 void on_fFadSoftReset_clicked(); 40 void on_fFadHardReset_clicked(); 40 41 41 42 void on_fLoggerStart_clicked(); -
trunk/FACT++/gui/design.ui
r11331 r11342 53 53 </property> 54 54 <property name="currentIndex"> 55 <number> 6</number>55 <number>3</number> 56 56 </property> 57 57 <property name="documentMode"> … … 4867 4867 <property name="geometry"> 4868 4868 <rect> 4869 <x> 40</x>4869 <x>10</x> 4870 4870 <y>20</y> 4871 4871 <width>423</width> … … 7248 7248 <property name="minimumSize"> 7249 7249 <size> 7250 <width> 223</width>7251 <height> 596</height>7250 <width>0</width> 7251 <height>620</height> 7252 7252 </size> 7253 7253 </property> … … 7951 7951 </widget> 7952 7952 </item> 7953 <item row=" 1" column="1">7953 <item row="0" column="2"> 7954 7954 <widget class="QPushButton" name="fFadAbort"> 7955 7955 <property name="text"> … … 7958 7958 </widget> 7959 7959 </item> 7960 <item row="1" column="0"> 7961 <widget class="QPushButton" name="fFadReset"> 7962 <property name="text"> 7963 <string>Reset</string> 7964 </property> 7965 </widget> 7960 <item row="1" column="0" colspan="3"> 7961 <layout class="QHBoxLayout" name="horizontalLayout_26"> 7962 <property name="topMargin"> 7963 <number>0</number> 7964 </property> 7965 <item> 7966 <widget class="QPushButton" name="fFadSoftReset"> 7967 <property name="text"> 7968 <string>Soft Reset</string> 7969 </property> 7970 </widget> 7971 </item> 7972 <item> 7973 <widget class="QPushButton" name="fFadHardReset"> 7974 <property name="text"> 7975 <string>Hard Reset</string> 7976 </property> 7977 </widget> 7978 </item> 7979 </layout> 7966 7980 </item> 7967 7981 </layout> -
trunk/FACT++/src/fadctrl.cc
r11340 r11342 1184 1184 } 1185 1185 1186 int Reset( )1187 { 1188 ResetThread( );1186 int Reset(bool soft) 1187 { 1188 ResetThread(soft); 1189 1189 return T::GetCurrentState(); 1190 1190 } … … 1532 1532 ("Immediately abort EventBuilder thread and disconnect all slots."); 1533 1533 1534 T::AddEvent("RESET", FAD::kDisconnected) 1535 (boost::bind(&StateMachineFAD::Reset, this)) 1536 ("Flush all buffers, close all files and reinitialize event builder thread."); 1534 T::AddEvent("SOFT_RESET", FAD::kConnected) 1535 (boost::bind(&StateMachineFAD::Reset, this, true)) 1536 ("Wait for buffers to drain, close all files and reinitialize event builder thread."); 1537 1538 T::AddEvent("HARD_RESET", FAD::kConnected) 1539 (boost::bind(&StateMachineFAD::Reset, this, false)) 1540 ("Free all buffers, close all files and reinitialize event builder thread."); 1537 1541 1538 1542 T::AddEvent("CONNECT", "S:1", FAD::kDisconnected, FAD::kConnecting, FAD::kConnected)
Note:
See TracChangeset
for help on using the changeset viewer.