Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cs
gui
i0mapmon
Commits
e7a1cc0d
Commit
e7a1cc0d
authored
Sep 10, 2020
by
Giacomo Strangolino
Browse files
fixes to time X scale and enabled wlen and wlen wei writings
parent
9d5ca029
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/i0mapmon
View file @
e7a1cc0d
No preview for this file type
src/i0mapmon.cpp
View file @
e7a1cc0d
...
...
@@ -51,6 +51,7 @@ I0mapmon::I0mapmon(CumbiaPool *cumbia_pool, QWidget *parent) :
w
->
setSource
(
"$1/name"
);
connect
(
ui
->
pbApplyWlenWei
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
applyWavelenX
()));
connect
(
ui
->
pbApplyWlens
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
applyWavelenX
()));
// qu-line edit for wavelen / wavelen weights
ui
->
quleWlens
->
setTarget
(
QString
(
"$2/FEL0%1_IOM_wavelengths"
).
arg
(
m_fel0x
));
...
...
@@ -96,7 +97,7 @@ void I0mapmon::applyWavelenX() {
bool
ok
;
QString
tgt
,
txt
;
QVector
<
double
>
vals
;
txt
=
ui
->
quleWlenWei
->
text
();
sender
()
->
objectName
()
==
"pbApplyWlens"
?
txt
=
ui
->
quleWlens
->
text
()
:
txt
=
ui
->
quleWlenWei
->
text
();
foreach
(
const
QString
&
v
,
txt
.
split
(
QRegularExpression
(
",
\\
s*"
)))
if
(
v
.
toDouble
(
&
ok
)
&&
ok
)
vals
.
push_back
(
v
.
toDouble
());
sender
()
->
objectName
()
==
"pbApplyWlens"
?
tgt
=
QString
(
"$2/FEL0%1_IOM_wavelengths"
).
arg
(
m_fel0x
)
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment