Changeset 11857
- Timestamp:
- 08/09/11 14:17:17 (13 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/MainWindow.cc
r11807 r11857 565 565 } 566 566 567 void MainWindow::on_fBiasVoltDac_valueChanged(int val) 568 { 569 if (fInHandler) 570 return; 571 572 if (fBiasApplyGlobal->isChecked()) 573 { 574 Dim::SendCommand("BIAS_CONTROL/SET_GLOBAL_DAC", uint16_t(val)); 575 return; 576 } 577 578 const int b = fBiasHvBoard->value(); 579 const int c = fBiasHvChannel->value(); 580 581 const uint16_t ihw = b*32+c; 582 583 const uint16_t dat[2] = { ihw, uint16_t(val) }; 584 Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_DAC", dat); 585 } 586 587 void MainWindow::on_fBiasMin_valueChanged(int min) 588 { 589 fBiasCam->SetMin(min); 590 } 591 592 void MainWindow::on_fBiasMax_valueChanged(int max) 593 { 594 fBiasCam->SetMax(max); 595 } 596 567 597 void MainWindow::on_fChatSend_clicked() 568 598 { -
trunk/FACT++/gui/MainWindow.h
r11854 r11857 155 155 156 156 // Tab: Bias 157 virtual void UpdateBiasIdx() = 0; 158 virtual void on_fBiasPixel_valueChanged(int) = 0; 159 void on_fBiasCrate_valueChanged(int) { UpdateBiasIdx(); } 160 void on_fBiasBoard_valueChanged(int) { UpdateBiasIdx(); } 161 void on_fBiasPatch_valueChanged(int) { UpdateBiasIdx(); } 157 virtual void BiasHvChannelChanged() = 0; 158 virtual void BiasCamChannelChanged() = 0; 159 void on_fBiasHvBoard_valueChanged(int) { BiasHvChannelChanged(); } 160 void on_fBiasHvChannel_valueChanged(int) { BiasHvChannelChanged(); } 161 void on_fBiasCamCrate_valueChanged(int) { BiasCamChannelChanged(); } 162 void on_fBiasCamBoard_valueChanged(int) { BiasCamChannelChanged(); } 163 void on_fBiasCamPatch_valueChanged(int) { BiasCamChannelChanged(); } 164 void on_fBiasCamPixel_valueChanged(int) { BiasCamChannelChanged(); } 165 void on_fBiasVoltDac_valueChanged(int); 166 167 void on_fBiasMin_valueChanged(int); // FIXME: Could be set as slot in the designer 168 void on_fBiasMax_valueChanged(int); // FIXME: Could be set as slot in the designer 162 169 163 170 // Tab: Rates … … 180 187 virtual void on_fThresholdDisableOthers_clicked() = 0; 181 188 182 virtual void on_fRatePatch1_valueChanged(int) = 0; 183 virtual void on_fRatePatch2_valueChanged(int) = 0; 184 virtual void on_fRateBoard1_valueChanged(int) = 0; 185 virtual void on_fRateBoard2_valueChanged(int) = 0; 189 virtual void DisplayRates() = 0; 190 void on_fRatePatch1_valueChanged(int) { DisplayRates(); } 191 void on_fRatePatch2_valueChanged(int) { DisplayRates(); } 192 void on_fRateBoard1_valueChanged(int) { DisplayRates(); } 193 void on_fRateBoard2_valueChanged(int) { DisplayRates(); } 186 194 187 195 // Tab: Chat … … 198 206 virtual void slot_RootUpdate() = 0; 199 207 virtual void slot_ChoosePixelThreshold(int) = 0; 200 virtual void slot_Choose PixelBias(int) = 0;208 virtual void slot_ChooseBiasChannel(int) = 0; 201 209 virtual void slot_CameraDoubleClick(int) = 0; 202 210 virtual void slot_CameraMouseMove(int) = 0;
Note:
See TracChangeset
for help on using the changeset viewer.