Changeset 11922 for trunk


Ignore:
Timestamp:
08/31/11 15:42:28 (13 years ago)
Author:
lyard
Message:
various Daniela suggestions and improvements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc

    r11918 r11922  
    10471047
    10481048    calibrationLoaded = true;
     1049
    10491050    emit newFileLoaded();
    10501051    if (drawCalibrationLoaded)
     
    12361237    currentFile = "none";
    12371238    currentCalibFile = "none";
     1239
    12381240}
    12391241void UIConnector::slicesPlusPlus()
     
    15961598    str << "NB Evts Bad: " << viewer->nbBad << '\n';
    15971599    extraInfoLabel->setText(QString(str.str().c_str()));
     1600
     1601    if (viewer->calibrationLoaded)
     1602    {
     1603        drawCalibrationCheckBox->setEnabled(true);
     1604    }
    15981605
    15991606
     
    21202127    pixelValueCurveItem.attach(pixelValueCurve);
    21212128//    aMeanCurveItem.attach(pixelValueCurve);
    2122     vCorrCurveItem.attach(pixelValueCurve);
     2129 //   vCorrCurveItem.attach(pixelValueCurve);
    21232130//    meanCurveItem.attach(pixelValueCurve);
    21242131
     
    21592166    }
    21602167
    2161     viewer->computePulsesStatistics();
     2168  //  viewer->computePulsesStatistics();
    21622169#if QWT_VERSION < 0x060000
    21632170    pixelValueCurveItem.setData(xval, yval, viewer->nRoi);
    2164     aMeanCurveItem.setData(xval, viewer->aMeas, viewer->nRoi);
    2165     meanCurveItem.setData(xval, viewer->n1mean, viewer->nRoi);
    2166     vCorrCurveItem.setData(xval, viewer->vCorr, viewer->nRoi-3);
     2171////    aMeanCurveItem.setData(xval, viewer->aMeas, viewer->nRoi);
     2172 //   meanCurveItem.setData(xval, viewer->n1mean, viewer->nRoi);
     2173 //   vCorrCurveItem.setData(xval, viewer->vCorr, viewer->nRoi-3);
    21672174#else
    21682175       pixelValueCurveItem.setSamples(xval, yval, viewer->nRoi);
    2169        aMeanCurveItem.setSamples(xval, viewer->aMeas, viewer->nRoi);
    2170        meanCurveItem.setSamples(xval, viewer->n1mean, viewer->nRoi);
    2171        vCorrCurveItem.setSamples(xval, viewer->vCorr, viewer->nRoi-3);
     2176//       aMeanCurveItem.setSamples(xval, viewer->aMeas, viewer->nRoi);
     2177 //      meanCurveItem.setSamples(xval, viewer->n1mean, viewer->nRoi);
     2178 //      vCorrCurveItem.setSamples(xval, viewer->vCorr, viewer->nRoi-3);
    21722179#endif
    21732180
     
    22012208    qstr = qstr.fromStdString(str.str());
    22022209    emit updateCurrentPixelSliceValue(qstr);
     2210    autoScalePressed();
    22032211
    22042212}
     
    22862294{
    22872295    if (!autoScaleColor->isChecked())
     2296    {
     2297        viewer->ss[0] = 0;
     2298        viewer->ss[1] = 0.25;
     2299        viewer->ss[2] = 0.5;
     2300        viewer->ss[3] = 0.75;
     2301        viewer->ss[4] = 1;
     2302        range0->setValue(viewer->ss[0]);
     2303        range1->setValue(viewer->ss[1]);
     2304        range2->setValue(viewer->ss[2]);
     2305        range3->setValue(viewer->ss[3]);
     2306        range4->setValue(viewer->ss[4]);
    22882307        return;
     2308    }
    22892309    if (!viewer->nRoi)
    22902310        return;
     
    23612381        currentPixelScale->setChecked(true);
    23622382    }
     2383    autoScalePressed();
    23632384}
    23642385void UIConnector::currentPixelChanged(bool state)
     
    23752396        entireCameraScale->setChecked(true);
    23762397    }
     2398    autoScalePressed();
    23772399}
    23782400
     
    25462568    connector.range4 = myUi.colorRange4;
    25472569    connector.drawCalibrationCheckBox = myUi.calibratedCheckBox;
     2570    connector.drawCalibrationCheckBox->setEnabled(false);
    25482571
    25492572    connector.initHistograms();
Note: See TracChangeset for help on using the changeset viewer.