00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 void TGo4OptStatsSettings::init()
00030 {
00031     bool showstat=go4sett->getStatBoxVisible();
00032     DrawStatboxButton->setChecked(showstat);
00033     OptStatGroupBox->setEnabled(showstat);
00034 
00035     int optstats=go4sett->getOptStat();
00036     
00037     bool k= (optstats/100000000)%10 ;
00038     bool s=(optstats/10000000)%10;
00039     bool i=(optstats/1000000)%10;
00040     bool o=(optstats/100000)%10;
00041     bool u=(optstats/10000)%10;
00042     bool r=(optstats/1000)%10;
00043     bool m=(optstats/100)%10;
00044     bool e=(optstats/10)%10;
00045     bool n=(optstats/1)%10;
00046 
00047     DrawNameButton->setChecked(n);
00048     DrawEntriesButton->setChecked(e);
00049     DrawIntegralButton->setChecked(i);
00050     DrawRMSButton->setChecked(r);
00051     DrawMeanButton->setChecked(m);
00052     DrawCurtosisButton->setChecked(k);
00053     DrawUnderflowButton->setChecked(u);
00054     DrawOverflowButton->setChecked(o);
00055     DrawSkewnessButton->setChecked(s);
00056 
00057     DrawErrorsButton->setChecked(go4sett->getStatBoxErrors());
00058 
00059 
00060 
00061 
00062 
00063 }
00064 
00065 
00066 void TGo4OptStatsSettings::setFlags()
00067 {
00068     bool drawbox=DrawStatboxButton->isChecked();
00069     bool drawerrors=DrawErrorsButton->isChecked();
00070     int leader=1000000000; 
00071     bool k=DrawCurtosisButton->isChecked();
00072     int kurt=100000000* (int) k;
00073     if(drawerrors) kurt*=2;
00074     bool s=DrawSkewnessButton->isChecked();
00075     int skew=10000000* (int) s;
00076     if(drawerrors) skew*=2;
00077     bool i=DrawIntegralButton->isChecked();
00078     int integ=1000000* (int) i;
00079     bool o=DrawOverflowButton->isChecked();
00080     int over=100000* (int) o;
00081     bool u=DrawUnderflowButton->isChecked();
00082     int under=10000* (int) u;
00083     bool r=DrawRMSButton->isChecked();
00084     int rms=1000* (int) r;
00085     if(drawerrors) rms*=2;
00086     bool m=DrawMeanButton->isChecked();
00087     int mean=100* (int) m;
00088     if(drawerrors) mean*=2;
00089     bool e=DrawEntriesButton->isChecked();
00090     int ent=10* (int) e;
00091     bool n=DrawNameButton->isChecked();
00092     int nm= (int) n;
00093     int optstats=leader+kurt+skew+integ+over+under+rms+mean+ent+nm;
00094     
00095     go4sett->setStatBoxVisible(drawbox);
00096     go4sett->setStatBoxErrors(drawerrors);
00097     go4sett->setOptStat(optstats);
00098 
00099 
00100 
00101 
00102 
00103 
00104 }
00105 
00106