Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
c1a96adb
Commit
c1a96adb
authored
8 months ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
ScanEditor: GridLayout to prepare for more fields
parent
177a0e01
No related branches found
No related tags found
1 merge request
!2668
ScanEditor: grid layout to prepare for unit switch
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/View/Device/ScanEditor.cpp
+5
-9
5 additions, 9 deletions
GUI/View/Device/ScanEditor.cpp
with
5 additions
and
9 deletions
GUI/View/Device/ScanEditor.cpp
+
5
−
9
View file @
c1a96adb
...
...
@@ -31,12 +31,12 @@ ScanEditor::ScanEditor(QWidget* parent, InstrumentItem* instr_item, ScanItem* it
bool
allow_footprint
,
bool
allow_distr
)
:
CollapsibleGroupBox
(
"Beam and scan parameters"
,
parent
,
item
->
expandBeamParameters
)
{
auto
*
layout
=
new
Q
VBox
Layout
(
body
());
auto
*
layout
=
new
Q
Grid
Layout
(
body
());
//... Intensity
auto
*
form
=
new
QFormLayout
;
layout
->
addLayout
(
form
);
layout
->
addLayout
(
form
,
0
,
0
);
form
->
setFieldGrowthPolicy
(
QFormLayout
::
FieldsStayAtSizeHint
);
auto
*
intensity_spinbox
=
new
DSpinBox
(
&
item
->
intensity
());
form
->
addRow
(
"Intensity:"
,
intensity_spinbox
);
...
...
@@ -44,17 +44,13 @@ ScanEditor::ScanEditor(QWidget* parent, InstrumentItem* instr_item, ScanItem* it
//... Wavelength and angles of incidence
auto
*
hLayout
=
new
QHBoxLayout
;
hLayout
->
setAlignment
(
Qt
::
AlignLeft
);
layout
->
addLayout
(
hLayout
);
auto
*
wavelengthEditor
=
new
DistributionEditor
(
"Wavelength (nm)"
,
MeanConfig
{
true
},
DistributionSelector
::
Category
::
Symmetric
,
this
,
item
->
wavelengthItem
(),
allow_distr
);
hL
ayout
->
addWidget
(
wavelengthEditor
);
l
ayout
->
addWidget
(
wavelengthEditor
,
1
,
0
);
auto
*
inclinationEditor
=
new
AlphaScanEditor
(
this
,
item
->
grazingScanItem
(),
allow_distr
);
hL
ayout
->
addWidget
(
inclinationEditor
);
l
ayout
->
addWidget
(
inclinationEditor
,
1
,
1
);
// In the following, signal order is important! Indicators have to be recalculated first,
// then updated (recalculation is done in EditController)
...
...
@@ -82,7 +78,7 @@ ScanEditor::ScanEditor(QWidget* parent, InstrumentItem* instr_item, ScanItem* it
if
(
allow_footprint
)
{
auto
*
footprintEditor
=
new
FootprintForm
(
this
,
item
);
hL
ayout
->
addWidget
(
footprintEditor
);
l
ayout
->
addWidget
(
footprintEditor
,
1
,
2
);
connect
(
footprintEditor
,
&
FootprintForm
::
dataChanged
,
this
,
&
ScanEditor
::
dataChanged
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment