[dry run] restart after dry run works
This commit is contained in:
parent
0290ecb192
commit
4afe21288a
@ -40,6 +40,7 @@ public slots:
|
|||||||
void setExposureTime(double newExposureTime) {
|
void setExposureTime(double newExposureTime) {
|
||||||
exposure = newExposureTime;
|
exposure = newExposureTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void terminated();
|
void terminated();
|
||||||
};
|
};
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
PylonRecorder::PylonRecorder(QWidget *parent)
|
PylonRecorder::PylonRecorder(QWidget *parent)
|
||||||
: QMainWindow(parent), imageLabel(new QLabel), scrollArea(new QScrollArea)
|
: QMainWindow(parent), imageLabel(new QLabel), scrollArea(new QScrollArea)
|
||||||
{
|
{
|
||||||
|
dryRun = false;
|
||||||
imageLabel->setBackgroundRole(QPalette::Base);
|
imageLabel->setBackgroundRole(QPalette::Base);
|
||||||
imageLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
|
imageLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
|
||||||
imageLabel->setScaledContents(true);
|
imageLabel->setScaledContents(true);
|
||||||
@ -516,6 +517,7 @@ void PylonRecorder::startRecording() {
|
|||||||
writer->start();
|
writer->start();
|
||||||
writing = true;
|
writing = true;
|
||||||
}
|
}
|
||||||
|
dryRun = dryRunCheckBox->isChecked();
|
||||||
grabbing = true;
|
grabbing = true;
|
||||||
stopRequest = false;
|
stopRequest = false;
|
||||||
|
|
||||||
@ -533,6 +535,10 @@ void PylonRecorder::stopRecording() {
|
|||||||
grabbing = false;
|
grabbing = false;
|
||||||
stopRequest = true;
|
stopRequest = true;
|
||||||
grab_stop_action->setEnabled(false);
|
grab_stop_action->setEnabled(false);
|
||||||
|
if(dryRun) {
|
||||||
|
buffer->clear();
|
||||||
|
writerDone();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ private:
|
|||||||
ImageBuffer *buffer;
|
ImageBuffer *buffer;
|
||||||
Grabber *grabber;
|
Grabber *grabber;
|
||||||
Writer *writer;
|
Writer *writer;
|
||||||
bool grabbing, stopRequest, writing, labelSwitch;
|
bool grabbing, stopRequest, writing, labelSwitch, dryRun;
|
||||||
QPalette progressPalette;
|
QPalette progressPalette;
|
||||||
QString activeLabelStyleHigh = "QLabel { font-size: 10px;font-family: Arial; color : red; }";
|
QString activeLabelStyleHigh = "QLabel { font-size: 10px;font-family: Arial; color : red; }";
|
||||||
QString activeLabelStyleLow = "QLabel { font-size: 10px;font-family: Arial; color : cmyk(0, 255, 255, 0, 50); }";
|
QString activeLabelStyleLow = "QLabel { font-size: 10px;font-family: Arial; color : cmyk(0, 255, 255, 0, 50); }";
|
||||||
|
Loading…
Reference in New Issue
Block a user