[ui] add gain spinner
This commit is contained in:
parent
4afe21288a
commit
2b913b8133
@ -374,7 +374,7 @@ void PylonRecorder::createActions() {
|
||||
framerateSpinner = new QSpinBox();
|
||||
framerateSpinner->setRange(1, 120);
|
||||
framerateSpinner->setSuffix("Hz");
|
||||
framerateSpinner->setFixedSize(120, 25);
|
||||
framerateSpinner->setFixedSize(80, 25);
|
||||
framerateSpinner->setValue(defaultFrameRate);
|
||||
framerateSpinner->setStyleSheet("QSpinBox{font-size: 10px;font-family: Arial;color: rgb(0, 0, 0);background-color: rgb(255,255,255);}");
|
||||
//framerateSpinner->setStyleSheet("QSpinBox{font-size: 10px;font-family: Arial;color: rgb(255, 255, 255);background-color: rgb(38,56,76);}");
|
||||
@ -383,16 +383,23 @@ void PylonRecorder::createActions() {
|
||||
buffersizeSpinner->setRange(100, 5000);
|
||||
buffersizeSpinner->setSingleStep(25);
|
||||
buffersizeSpinner->setValue(defaultBufferSize);
|
||||
buffersizeSpinner->setFixedSize(120, 25);
|
||||
buffersizeSpinner->setFixedSize(100, 25);
|
||||
buffersizeSpinner->setStyleSheet("QSpinBox{font-size: 10px;font-family: Arial;color: rgb(0, 0, 0);background-color: rgb(255,255,255);}");
|
||||
|
||||
exposureSpinner = new QSpinBox();
|
||||
exposureSpinner->setRange(10, 50000);
|
||||
exposureSpinner->setRange(10, 100);
|
||||
exposureSpinner->setSingleStep(10);
|
||||
exposureSpinner->setValue(defaultExposureTime);
|
||||
exposureSpinner->setFixedSize(120, 25);
|
||||
exposureSpinner->setFixedSize(100, 25);
|
||||
exposureSpinner->setStyleSheet("QSpinBox{font-size: 10px;font-family: Arial;color: rgb(0, 0, 0);background-color: rgb(255,255,255);}");
|
||||
|
||||
gainSpinner = new QSpinBox();
|
||||
gainSpinner->setRange(0, 24);
|
||||
gainSpinner->setSingleStep(1);
|
||||
gainSpinner->setValue(defaultGain);
|
||||
gainSpinner->setFixedSize(80, 25);
|
||||
gainSpinner->setStyleSheet("QSpinBox{font-size: 10px;font-family: Arial;color: rgb(0, 0, 0);background-color: rgb(255,255,255);}");
|
||||
|
||||
dryRunCheckBox = new QCheckBox("Dry run, no writing");
|
||||
dryRunCheckBox->setChecked(false);
|
||||
dryRunCheckBox->setFixedSize(150, 25);
|
||||
@ -411,6 +418,9 @@ void PylonRecorder::createActions() {
|
||||
toolbar->addWidget(new QLabel("frame rate (Hz):"));
|
||||
toolbar->addWidget(framerateSpinner);
|
||||
toolbar->addSeparator();
|
||||
toolbar->addWidget(new QLabel("gain (dB):"));
|
||||
toolbar->addWidget(gainSpinner);
|
||||
toolbar->addSeparator();
|
||||
toolbar->addWidget(new QLabel("exposure time (us):"));
|
||||
toolbar->addWidget(exposureSpinner);
|
||||
toolbar->addSeparator();
|
||||
|
@ -76,7 +76,7 @@ private:
|
||||
void applyScaling();
|
||||
void adjustScrollBar(QScrollBar *scrollBar, double factor);
|
||||
|
||||
int defaultBufferSize = 1000, defaultFrameRate = 30, movieCount = 0, defaultExposureTime = 3000;
|
||||
int defaultBufferSize = 1000, defaultFrameRate = 30, movieCount = 0, defaultExposureTime = 3000, defaultGain=0;
|
||||
QImage image;
|
||||
QTimer *frameTimer, *preassureTimer, *labelTimer;
|
||||
QLabel *imageLabel, *writingLabel, *grabbingLabel, *cameraConnectedLabel, *fileLabel;
|
||||
@ -94,7 +94,7 @@ private:
|
||||
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 inactiveLabelStyle = ("QLabel { font-size: 10px;font-family: Arial; color :gray; }");
|
||||
QSpinBox *framerateSpinner, *buffersizeSpinner, *exposureSpinner;
|
||||
QSpinBox *framerateSpinner, *buffersizeSpinner, *exposureSpinner, *gainSpinner;
|
||||
|
||||
|
||||
#if defined(QT_PRINTSUPPORT_LIB) && QT_CONFIG(printer)
|
||||
|
Loading…
Reference in New Issue
Block a user