- Timestamp:
- 05/19/11 08:56:39 (14 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/MainWindow.cc
r10737 r10752 224 224 } 225 225 226 void MainWindow::on_fPixelEnable_stateChanged(bool b) 227 { 228 if (fInHandler) 229 return; 230 231 const uint16_t idx = fPixelIdx->value(); 232 233 const uint8_t d[3] = { uint8_t(idx&0xff), uint8_t(idx>>8), !b }; 234 235 Dim::SendCommand("FTM_CONTROL/DISABLE_PIXEL", d); 236 } 237 238 void MainWindow::on_fEnableTrigger_stateChanged(bool b) 239 { 240 if (!fInHandler) 241 Dim::SendCommand("FTM_CONTROL/ENABLE_TRIGGER", b); 242 } 243 244 void MainWindow::on_fEnableExt1_stateChanged(bool b) 245 { 246 if (!fInHandler) 247 Dim::SendCommand("FTM_CONTROL/ENABLE_EXT1", b); 248 } 249 250 void MainWindow::on_fEnableExt2_stateChanged(bool b) 251 { 252 if (!fInHandler) 253 Dim::SendCommand("FTM_CONTROL/ENABLE_EXT2", b); 254 } 255 256 void MainWindow::on_fEnableTimeMarker_stateChanged(bool b) 257 { 258 if (!fInHandler) 259 Dim::SendCommand("FTM_CONTROL/ENABLE_TIM", b); 260 } 261 262 void MainWindow::on_fEnableVeto_stateChanged(bool b) 263 { 264 if (!fInHandler) 265 Dim::SendCommand("FTM_CONTROL/ENABLE_VETO", b); 226 void MainWindow::on_fPixelEnable_stateChanged(int b) 227 { 228 cout << "PIXEL: " << fPixelIdx->value() << " " << b << endl; 229 if (!fInHandler) 230 Dim::SendCommand(b==Qt::Unchecked ? 231 "FTM_CONTROL/DISABLE_PIXEL" : "FTM_CONTROL/ENABLE_PIXEL", 232 uint16_t(fPixelIdx->value())); 233 } 234 235 void MainWindow::on_fEnableTrigger_stateChanged(int b) 236 { 237 if (!fInHandler) 238 Dim::SendCommand("FTM_CONTROL/ENABLE_TRIGGER", b==Qt::Checked); 239 } 240 241 void MainWindow::on_fEnableExt1_stateChanged(int b) 242 { 243 if (!fInHandler) 244 Dim::SendCommand("FTM_CONTROL/ENABLE_EXT1", b==Qt::Checked); 245 } 246 247 void MainWindow::on_fEnableExt2_stateChanged(int b) 248 { 249 if (!fInHandler) 250 Dim::SendCommand("FTM_CONTROL/ENABLE_EXT2", b==Qt::Checked); 251 } 252 253 void MainWindow::on_fEnableClockCond_stateChanged(int b) 254 { 255 if (!fInHandler) 256 Dim::SendCommand("FTM_CONTROL/ENABLE_CLOCK_CONDITIONER", b==Qt::Checked); 257 } 258 259 void MainWindow::on_fEnableVeto_stateChanged(int b) 260 { 261 if (!fInHandler) 262 Dim::SendCommand("FTM_CONTROL/ENABLE_VETO", b==Qt::Checked); 266 263 } 267 264 … … 307 304 SelectTab("FTUs"); 308 305 } 306 307 void MainWindow::on_fStatusFADLed_clicked() 308 { 309 SelectTab("FAD"); 310 } -
trunk/FACT++/gui/MainWindow.h
r10736 r10752 34 34 void on_fStatusFTULed_clicked(); 35 35 void on_fStatusFTMLed_clicked(); 36 void on_fStatusFADLed_clicked(); 36 37 void on_fStatusLoggerLed_clicked(); 37 38 void on_fStatusChatLed_clicked(); … … 43 44 44 45 // Tab: FTM 45 void on_fEnableTrigger_stateChanged( bool);46 void on_fEnableExt1_stateChanged( bool);47 void on_fEnableExt2_stateChanged( bool);48 void on_fEnable TimeMarker_stateChanged(bool);49 void on_fEnableVeto_stateChanged( bool);46 void on_fEnableTrigger_stateChanged(int); 47 void on_fEnableExt1_stateChanged(int); 48 void on_fEnableExt2_stateChanged(int); 49 void on_fEnableClockCond_stateChanged(int); 50 void on_fEnableVeto_stateChanged(int); 50 51 51 52 void on_fTriggerSeqPed_valueChanged(int) { SetTriggerSequence(); } … … 79 80 80 81 // Tab: Rates 81 void on_fThresholdVal_valueChanged(int v); 82 void on_fPixelEnable_stateChanged(int); 83 void on_fThresholdVal_valueChanged(int); 82 84 virtual void on_fThresholdIdx_valueChanged(int) { } 83 85 virtual void on_fPixelIdx_valueChanged(int) { } 84 void on_fPixelEnable_stateChanged(bool); 86 87 virtual void on_fRatePatch1_valueChanged(int) { } 88 virtual void on_fRatePatch2_valueChanged(int) { } 89 virtual void on_fRateBoard1_valueChanged(int) { } 90 virtual void on_fRateBoard2_valueChanged(int) { } 85 91 86 92 // Tab: Chat
Note:
See TracChangeset
for help on using the changeset viewer.