Changeset 11805
- Timestamp:
- 08/06/11 11:05:40 (13 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11803 r11805 1179 1179 1180 1180 if ((hf && hf->GetNbinsX()!=fEventData->Roi) || 1181 (dynamic_cast<TH2*>(h) && !fAdcPersist ant->isChecked()) ||1182 (!dynamic_cast<TH2*>(h) && fAdcPersist ant->isChecked()))1181 (dynamic_cast<TH2*>(h) && !fAdcPersistent->isChecked()) || 1182 (!dynamic_cast<TH2*>(h) && fAdcPersistent->isChecked())) 1183 1183 { 1184 1184 delete hf; … … 1206 1206 hf->SetMaximum(2150); 1207 1207 1208 if (!fAdcPersist ant->isChecked())1208 if (!fAdcPersistent->isChecked()) 1209 1209 h = new TH1F("EventData", "", roi, -0.5, roi-0.5); 1210 1210 else … … 2798 2798 if (dynamic_cast<Camera*>(obj)) 2799 2799 { 2800 const float xx = canv->AbsPixeltoX(tipped->GetEventX());2801 const float yy = canv->AbsPixeltoY(tipped->GetEventY());2800 // const float xx = canv->AbsPixeltoX(tipped->GetEventX()); 2801 // const float yy = canv->AbsPixeltoY(tipped->GetEventY()); 2802 2802 //ETIENNE MESS HERE 2803 2803 // Camera *cam = static_cast<Camera*>(obj); … … 2814 2814 if (dynamic_cast<Camera*>(obj) && fRatesControls->isEnabled()) 2815 2815 { 2816 const float xx = canv->AbsPixeltoX(tipped->GetEventX());2817 const float yy = canv->AbsPixeltoY(tipped->GetEventY());2816 // const float xx = canv->AbsPixeltoX(tipped->GetEventX()); 2817 // const float yy = canv->AbsPixeltoY(tipped->GetEventY()); 2818 2818 //ETIENNE MESS HERE 2819 2819 // Camera *cam = static_cast<Camera*>(obj); … … 2859 2859 if (dynamic_cast<Camera*>(obj)) 2860 2860 { 2861 const float xx = canv->AbsPixeltoX(tipped->GetEventX());2862 const float yy = canv->AbsPixeltoY(tipped->GetEventY());2861 // const float xx = canv->AbsPixeltoX(tipped->GetEventX()); 2862 // const float yy = canv->AbsPixeltoY(tipped->GetEventY()); 2863 2863 2864 2864 //ETIENNE MESS HERE … … 3034 3034 void on_fPixelIdx_valueChanged(int isw) 3035 3035 { 3036 //ETIENNE MESS HERE3037 // Camera *cam = (Camera*)fRatesCanv->GetCanvas()->FindObject("Camera");3038 // ChoosePixel(*cam, isw);3039 3036 ChoosePixel(*fRatesCanv, isw); 3040 3041 // fRatesCanv->GetCanvas()->Modified();3042 // fRatesCanv->GetCanvas()->Update();3043 }3044 3045 void on_fRatesMin_valueChanged(int min)3046 {3047 //ETIENNE MESS HERE3048 // Camera *cam = (Camera*)fRatesCanv->GetCanvas()->FindObject("Camera");3049 // cam->SetMin(min);3050 fRatesCanv->SetMin(min);3051 3052 // fRatesCanv->GetCanvas()->Modified();3053 // fRatesCanv->GetCanvas()->Update();3054 }3055 3056 void on_fRatesMax_valueChanged(int max)3057 {3058 //ETIENNE MESS HERE3059 // Camera *cam = (Camera*)fRatesCanv->GetCanvas()->FindObject("Camera");3060 // cam->SetMax(max);3061 fRatesCanv->SetMax(max);3062 3063 // fRatesCanv->GetCanvas()->Modified();3064 // fRatesCanv->GetCanvas()->Update();3065 3037 } 3066 3038 -
trunk/FACT++/gui/design.ui
r11802 r11805 6909 6909 </item> 6910 6910 <item> 6911 <widget class="QCheckBox" name="fAdcPersist ant">6911 <widget class="QCheckBox" name="fAdcPersistent"> 6912 6912 <property name="text"> 6913 <string>Persist ant</string>6913 <string>Persistent</string> 6914 6914 </property> 6915 6915 </widget> … … 6977 6977 <enum>QFrame::Sunken</enum> 6978 6978 </property> 6979 <property name="midLineWidth"> 6980 <number>0</number> 6981 </property> 6979 6982 <layout class="QGridLayout" name="gridLayout_67"> 6983 <property name="margin"> 6984 <number>4</number> 6985 </property> 6986 <property name="horizontalSpacing"> 6987 <number>-1</number> 6988 </property> 6980 6989 <item row="0" column="0"> 6981 6990 <widget class="QCameraWidget" name="fEventCanv1" native="true"/> … … 10277 10286 </connection> 10278 10287 <connection> 10279 <sender>fAdcPersist ant</sender>10288 <sender>fAdcPersistent</sender> 10280 10289 <signal>toggled(bool)</signal> 10281 10290 <receiver>fAdcAutoScale</receiver> … … 10293 10302 </connection> 10294 10303 <connection> 10295 <sender>fAdcPersist ant</sender>10304 <sender>fAdcPersistent</sender> 10296 10305 <signal>toggled(bool)</signal> 10297 10306 <receiver>fAdcDynamicScale</receiver> … … 10309 10318 </connection> 10310 10319 <connection> 10311 <sender>fAdcPersist ant</sender>10320 <sender>fAdcPersistent</sender> 10312 10321 <signal>toggled(bool)</signal> 10313 10322 <receiver>fAdcManualScale</receiver>
Note:
See TracChangeset
for help on using the changeset viewer.