Changeset 12189


Ignore:
Timestamp:
10/17/11 19:59:41 (13 years ago)
Author:
tbretz
Message:
Fixed startup.
Location:
trunk/FACT++/gui/RawEventsViewer
Files:
2 edited

Legend:

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

    r12188 r12189  
    368368    eventData = NULL;
    369369    drawPatch = true;
    370     drawImpulse = false;
     370    drawImpulse = true;
    371371    drawBlur = false;
    372372    loopCurrentEvent = false;
     
    11551155 * UICONNECTOR CONSTRUCTOR
    11561156 ************************************************************/
    1157 UIConnector::UIConnector(QWidget*)
     1157UIConnector::UIConnector(QWidget *p)
    11581158{
    11591159    setupUi(this);
     
    11701170                     this, SLOT(nextSlicePlease()));
    11711171
    1172     QButtonGroup &scaleGroup = *new QButtonGroup(GLWindow);// = new QButtonGroup(canvas);
    1173     QButtonGroup &animateGroup = *new QButtonGroup(GLWindow);// = new QButtonGroup(canvas);
    1174 
    1175     scaleGroup.addButton(Ui::MainWindow::currentPixelScale);
    1176     scaleGroup.addButton(Ui::MainWindow::entireCameraScale);
    1177 
    1178     animateGroup.addButton(Ui::MainWindow::playEventsRadio);
    1179     animateGroup.addButton(Ui::MainWindow::playSlicesRadio);
     1172    QButtonGroup &scaleGroup = *new QButtonGroup(p);// = new QButtonGroup(canvas);
     1173    QButtonGroup &animateGroup = *new QButtonGroup(p);// = new QButtonGroup(canvas);
     1174
     1175    scaleGroup.addButton(currentPixelScale);
     1176    scaleGroup.addButton(entireCameraScale);
     1177
     1178    animateGroup.addButton(playEventsRadio);
     1179    animateGroup.addButton(playSlicesRadio);
     1180
     1181    entireCameraScale->setChecked(true);
    11801182
    11811183    QObject::connect(GLWindow, SIGNAL(colorPaletteHasChanged()),
     
    13921394 * PLAY PAUSE CLICKED. ui handler
    13931395 ************************************************************/
    1394 void UIConnector::playPauseClicked()
     1396void UIConnector::on_playPauseButton_clicked()
    13951397{
    13961398    if (timer.isActive())
     
    22262228    blueValue4->setValue(canvas->bb[4]);
    22272229
     2230    if (conf.Has("drs"))
     2231    {
     2232        const QString qstr(conf.Get<string>("drs").c_str());
     2233        calibFileSelected(qstr);
     2234    }
     2235
    22282236    if (conf.Has("file"))
    22292237    {
     
    22322240    }
    22332241
    2234     if (conf.Has("drs"))
    2235     {
    2236         const QString qstr(conf.Get<string>("drs").c_str());
    2237         calibFileSelected(qstr);
    2238     }
    22392242
    22402243    return 0;
  • trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.h

    r12188 r12189  
    213213
    214214    void newFileLoaded();
    215     void playPauseClicked();
    216215    void slicesPerSecondChanged(double value);
    217216    void nextSlicePlease();
     
    219218    void currentEventHasChanged(int event);
    220219
     220    void on_playPauseButton_clicked();
    221221    void on_loadNewFileButton_clicked();
    222222    void on_loadDRSCalibButton_clicked();
Note: See TracChangeset for help on using the changeset viewer.