FACT++  1.0
UIConnector::UIConnector ( QWidget *  parent = 0)

Definition at line 1079 of file RawEventsViewer.cc.

References BasicGlCamera::colorPaletteHasChanged(), RawDataViewer::newFileLoaded(), BasicGlCamera::scaleGroup, RawDataViewer::setCurrentPixel(), RawDataViewer::signalCurrentEvent(), RawDataViewer::signalCurrentPixel(), and RawDataViewer::signalCurrentSlice().

1080 {
1081  setupUi(this);
1082  initHistograms();
1083 
1084  currentFile = "none";
1085  currentCalibFile = "none";
1086 
1087  updateSpinnerDisplay = true;
1088  updating = false;
1089 
1090  timer.setInterval(10.0);
1091  QObject::connect(&timer, SIGNAL(timeout()),
1092  this, SLOT(nextSlicePlease()));
1093 
1094  QButtonGroup &scaleGroup = *new QButtonGroup(p);// = new QButtonGroup(canvas);
1095  QButtonGroup &animateGroup = *new QButtonGroup(p);// = new QButtonGroup(canvas);
1096 
1097  scaleGroup.addButton(currentPixelScale);
1098  scaleGroup.addButton(entireCameraScale);
1099 
1100  animateGroup.addButton(playEventsRadio);
1101  animateGroup.addButton(playSlicesRadio);
1102  animateGroup.addButton(playPixelsRadio);
1103 
1104  entireCameraScale->setChecked(true);
1105 
1106  RMS_window->enableText(false);
1107  Mean_window->enableText(false);
1108  PosOfMax_window->enableText(false);
1109  Max_window->enableText(false);
1110 
1111  // RMS_window->ShowPatchCursor(true);
1112 
1113  QObject::connect(GLWindow, SIGNAL(colorPaletteHasChanged()),
1114  this, SLOT(on_autoScaleColor_clicked()));
1115  QObject::connect(GLWindow, SIGNAL(signalCurrentSlice(int)),
1116  this, SLOT(currentSliceHasChanged(int)));
1117  QObject::connect(GLWindow, SIGNAL(signalCurrentEvent(int)),
1118  this, SLOT(currentEventHasChanged(int)));
1119  QObject::connect(GLWindow, SIGNAL(signalCurrentPixel(int)),
1120  this, SLOT(pixelChanged(int)));
1121  QObject::connect(GLWindow, SIGNAL(newFileLoaded()),
1122  this, SLOT(newFileLoaded()));
1123 
1124  QObject::connect(RMS_window, SIGNAL(signalCurrentPixel(int)),
1125  GLWindow, SLOT(setCurrentPixel(int)));
1126  QObject::connect(Max_window, SIGNAL(signalCurrentPixel(int)),
1127  GLWindow, SLOT(setCurrentPixel(int)));
1128  QObject::connect(PosOfMax_window, SIGNAL(signalCurrentPixel(int)),
1129  GLWindow, SLOT(setCurrentPixel(int)));
1130  QObject::connect(Mean_window, SIGNAL(signalCurrentPixel(int)),
1131  GLWindow, SLOT(setCurrentPixel(int)));
1132 
1133 
1134 
1135  show();
1136 }
void on_autoScaleColor_clicked()
void pixelChanged(int)
bool updateSpinnerDisplay
void currentSliceHasChanged(int slice)
void currentEventHasChanged(int event)
std::string currentFile
std::string currentCalibFile
void nextSlicePlease()

+ Here is the call graph for this function: