This commit is contained in:
2019-06-21 18:19:39 +02:00
parent f4bc255f2c
commit 33f5253831
14 changed files with 1474 additions and 2054 deletions

View File

@ -27,7 +27,18 @@ qTabPlot::qTabPlot(QWidget *parent, multiSlsDetector *detector, qDrawPlot *plot)
FILE_LOG(logDEBUG) << "Plot ready";
}
qTabPlot::~qTabPlot() {}
qTabPlot::~qTabPlot() {
if (btnGroupPlotType)
delete btnGroupPlotType;
if (stackedLayout)
delete stackedLayout;
if (spinNthFrame)
delete spinNthFrame;
if (spinTimeGap)
delete spinTimeGap;
if (comboTimeGapUnit)
delete comboTimeGapUnit;
}
void qTabPlot::SetupWidgetWindow() {
// button group for plot type
@ -157,7 +168,6 @@ void qTabPlot::Initialization() {
// Save
connect(btnSave, SIGNAL(clicked()), myPlot, SLOT(SavePlot()));
connect(chkSaveAll, SIGNAL(toggled(bool)), myPlot, SLOT(SaveAll(bool)));
// Snapshot box
connect(btnClone, SIGNAL(clicked()), myPlot, SLOT(ClonePlot()));
@ -236,6 +246,8 @@ void qTabPlot::SetPlot() {
SetZRange();
}
}
myPlot->SetDataCallBack(plotEnable);
}
void qTabPlot::Set1DPlotOptionsRight() {