Skip to content

Commit c7b1400

Browse files
author
Tommaso Vinci
committed
VISAR: fix offset
1 parent b6334d1 commit c7b1400

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

plugins/Visar/Visar.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ void Visar::addVisar() {
510510
connect(ui_velocity->reflOffset, SIGNAL(valueChanged(double)), this, SLOT(updatePlot()));
511511
connect(ui_velocity->jump, SIGNAL(valueChanged(int)), this, SLOT(updatePlot()));
512512

513-
connect(ui_velocity->physOrigin, SIGNAL(valueChanged(int)), this, SLOT(updatePlot()));
513+
connect(ui_velocity->physOrigin, SIGNAL(valueChanged(double)), this, SLOT(updatePlot()));
514514
connect(ui_velocity->offsetTime, SIGNAL(valueChanged(double)), this, SLOT(updatePlot()));
515515
connect(ui_velocity->enableVisar, SIGNAL(released()), this, SLOT(updatePlot()));
516516
connect(ui_velocity->enableVisar, SIGNAL(released()), this, SLOT(fillComboShot()));
@@ -1887,7 +1887,7 @@ QString Visar::export_one(unsigned int k) {
18871887
if (k<numVisars) {
18881888
if (velocityUi[k]->enableVisar->isChecked()) {
18891889
out += "#VISAR " + QLocale().toString(k+1) + "\n";
1890-
out += QString("#Offset shift : %L1 (%L2)\n").arg(velocityUi[k]->offsetShift->value()).arg(offsetShift);
1890+
out += QString("#Offset shift : %L1 (%L2)\n").arg(velocityUi[k]->offsetShift->value()).arg(velocityUi[k]->offset->title());
18911891
out += QString("#Sensitivity : %L1\n").arg(settingsUi[k]->sensitivity->value());
18921892
out += QString("#Slit : %L1\n").arg(settingsUi[k]->resolution->value());
18931893
out += QString("#Interfr. & angle : %L1 %L2\n").arg(settingsUi[k]->interfringe->value()).arg(settingsUi[k]->angle->value());

plugins/Visar/VisarVelocity.ui

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
</widget>
105105
</item>
106106
<item>
107-
<widget class="QSpinBox" name="physOrigin">
107+
<widget class="QDoubleSpinBox" name="physOrigin">
108108
<property name="font">
109109
<font>
110110
<pointsize>10</pointsize>
@@ -114,13 +114,13 @@
114114
<string>Temporal zero pixel</string>
115115
</property>
116116
<property name="suffix">
117-
<string> [px]</string>
117+
<string>px</string>
118118
</property>
119-
<property name="minimum">
120-
<number>-99999</number>
119+
<property name="decimals">
120+
<number>1</number>
121121
</property>
122122
<property name="maximum">
123-
<number>99999</number>
123+
<double>10000.000000000000000</double>
124124
</property>
125125
<property name="neutrinoSave" stdset="0">
126126
<bool>true</bool>

0 commit comments

Comments
 (0)