Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
rsm
Commits
3c43ce5f
Commit
3c43ce5f
authored
Apr 16, 2020
by
Huff, Israel
Browse files
- initial check-in of aptens data model (just a class; no validation and not yet connected to GUI)
- variable name changes
parent
889909a7
Pipeline
#97508
failed with stages
in 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rsmwidgets/examples/rsmportalexample.cc
View file @
3c43ce5f
...
...
@@ -465,162 +465,164 @@ APTEnsWidget::APTEnsWidget(QWidget *parent)
:
QWidget
(
parent
)
{
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
e
ventDefBox
=
new
CenterTitleGroupBox
(
"Event Definition"
,
this
);
y
ieldEnsBox
=
new
CenterTitleGroupBox
(
"Yield Ensemble"
,
this
);
h
eightOfBurstEnsBox
=
mE
ventDefBox
=
new
CenterTitleGroupBox
(
"Event Definition"
,
this
);
mY
ieldEnsBox
=
new
CenterTitleGroupBox
(
"Yield Ensemble"
,
this
);
mH
eightOfBurstEnsBox
=
new
CenterTitleGroupBox
(
"Height of Burst Ensemble"
,
this
);
meteorologyBox
=
new
CenterTitleGroupBox
(
"Meteorology"
,
this
);
dispPhysEnsBox
=
new
CenterTitleGroupBox
(
"Dispersion Physics Ensemble"
,
this
);
turbEnsBox
=
new
CenterTitleGroupBox
(
"Turbulence Ensemble"
,
this
);
metEnsBox
=
new
CenterTitleGroupBox
(
"Meteorology Ensemble"
,
this
);
mMeteorologyBox
=
new
CenterTitleGroupBox
(
"Meteorology"
,
this
);
mDispPhysEnsBox
=
new
CenterTitleGroupBox
(
"Dispersion Physics Ensemble"
,
this
);
mTurbEnsBox
=
new
CenterTitleGroupBox
(
"Turbulence Ensemble"
,
this
);
mMetEnsBox
=
new
CenterTitleGroupBox
(
"Meteorology Ensemble"
,
this
);
int
row
=
0
;
layout
->
addWidget
(
e
ventDefBox
,
row
,
0
);
layout
->
addWidget
(
y
ieldEnsBox
,
++
row
,
0
);
layout
->
addWidget
(
h
eightOfBurstEnsBox
,
++
row
,
0
);
layout
->
addWidget
(
meteorologyBox
,
++
row
,
0
);
layout
->
addWidget
(
d
ispPhysEnsBox
,
++
row
,
0
);
layout
->
addWidget
(
t
urbEnsBox
,
++
row
,
0
);
layout
->
addWidget
(
metEnsBox
,
++
row
,
0
);
layout
->
addWidget
(
mE
ventDefBox
,
row
,
0
,
1
,
2
);
layout
->
addWidget
(
mY
ieldEnsBox
,
++
row
,
0
,
1
,
2
);
layout
->
addWidget
(
mH
eightOfBurstEnsBox
,
++
row
,
0
,
1
,
2
);
layout
->
addWidget
(
m
M
eteorologyBox
,
++
row
,
0
,
1
,
2
);
layout
->
addWidget
(
mD
ispPhysEnsBox
,
++
row
,
0
,
1
,
2
);
layout
->
addWidget
(
mT
urbEnsBox
,
++
row
,
0
);
layout
->
addWidget
(
m
M
etEnsBox
,
row
,
1
);
// build event definition box
QGridLayout
*
edLayout
=
new
QGridLayout
(
e
ventDefBox
);
l
atLabel
=
new
StyledLabel
(
"Latitude"
,
e
ventDefBox
);
l
onLabel
=
new
StyledLabel
(
"Longitude"
,
e
ventDefBox
);
a
ltLabel
=
new
StyledLabel
(
"Altitude"
,
e
ventDefBox
);
s
oilTypeLabel
=
new
StyledLabel
(
"Soil Type"
,
e
ventDefBox
);
f
issionIDLabel
=
new
StyledLabel
(
"Fission ID"
,
e
ventDefBox
);
l
atLineEdit
=
new
QLineEdit
(
e
ventDefBox
);
l
onLineEdit
=
new
QLineEdit
(
e
ventDefBox
);
a
ltLineEdit
=
new
QLineEdit
(
e
ventDefBox
);
s
oilTypeLineEdit
=
new
QLineEdit
(
e
ventDefBox
);
f
issionIDLineEdit
=
new
QLineEdit
(
e
ventDefBox
);
QGridLayout
*
edLayout
=
new
QGridLayout
(
mE
ventDefBox
);
mL
atLabel
=
new
StyledLabel
(
"Latitude"
,
mE
ventDefBox
);
mL
onLabel
=
new
StyledLabel
(
"Longitude"
,
mE
ventDefBox
);
mA
ltLabel
=
new
StyledLabel
(
"Altitude"
,
mE
ventDefBox
);
mS
oilTypeLabel
=
new
StyledLabel
(
"Soil Type"
,
mE
ventDefBox
);
mF
issionIDLabel
=
new
StyledLabel
(
"Fission ID"
,
mE
ventDefBox
);
mL
atLineEdit
=
new
QLineEdit
(
mE
ventDefBox
);
mL
onLineEdit
=
new
QLineEdit
(
mE
ventDefBox
);
mA
ltLineEdit
=
new
QLineEdit
(
mE
ventDefBox
);
mS
oilTypeLineEdit
=
new
QLineEdit
(
mE
ventDefBox
);
mF
issionIDLineEdit
=
new
QLineEdit
(
mE
ventDefBox
);
row
=
0
;
edLayout
->
addWidget
(
l
atLabel
,
row
,
0
);
edLayout
->
addWidget
(
l
atLineEdit
,
row
,
1
);
edLayout
->
addWidget
(
l
onLabel
,
row
,
2
);
edLayout
->
addWidget
(
l
onLineEdit
,
row
,
3
);
edLayout
->
addWidget
(
a
ltLabel
,
++
row
,
0
);
edLayout
->
addWidget
(
a
ltLineEdit
,
row
,
1
);
edLayout
->
addWidget
(
s
oilTypeLabel
,
row
,
2
);
edLayout
->
addWidget
(
s
oilTypeLineEdit
,
row
,
3
);
edLayout
->
addWidget
(
f
issionIDLabel
,
++
row
,
0
);
edLayout
->
addWidget
(
f
issionIDLineEdit
,
row
,
1
);
edLayout
->
addWidget
(
mL
atLabel
,
row
,
0
);
edLayout
->
addWidget
(
mL
atLineEdit
,
row
,
1
);
edLayout
->
addWidget
(
mL
onLabel
,
row
,
2
);
edLayout
->
addWidget
(
mL
onLineEdit
,
row
,
3
);
edLayout
->
addWidget
(
mA
ltLabel
,
++
row
,
0
);
edLayout
->
addWidget
(
mA
ltLineEdit
,
row
,
1
);
edLayout
->
addWidget
(
mS
oilTypeLabel
,
row
,
2
);
edLayout
->
addWidget
(
mS
oilTypeLineEdit
,
row
,
3
);
edLayout
->
addWidget
(
mF
issionIDLabel
,
++
row
,
0
);
edLayout
->
addWidget
(
mF
issionIDLineEdit
,
row
,
1
);
// build yield ensemble box
QGridLayout
*
yeLayout
=
new
QGridLayout
(
y
ieldEnsBox
);
t
otalYieldLabel
=
new
StyledLabel
(
"Total Yield"
,
y
ieldEnsBox
);
t
otalYieldLineEdit
=
new
QLineEdit
(
y
ieldEnsBox
);
y
ieldDefineEnsCheckBox
=
new
QCheckBox
(
"Define Ensemble"
,
y
ieldEnsBox
);
n
umYieldsLabel
=
new
StyledLabel
(
"# of Yields"
,
y
ieldEnsBox
);
n
umYieldsLineEdit
=
new
QLineEdit
(
y
ieldEnsBox
);
minYieldLabel
=
new
StyledLabel
(
"Min Yield
s
"
,
y
ieldEnsBox
);
minYieldLineEdit
=
new
QLineEdit
(
y
ieldEnsBox
);
maxYieldLabel
=
new
StyledLabel
(
"Max Yield
s
"
,
y
ieldEnsBox
);
maxYieldLineEdit
=
new
QLineEdit
(
y
ieldEnsBox
);
y
ieldSamplingLabel
=
new
StyledLabel
(
"Sampling"
,
y
ieldEnsBox
);
y
ieldSamplingComboBox
=
new
QComboBox
(
y
ieldEnsBox
);
y
ieldSamplingComboBox
->
addItem
(
"Uniform"
);
y
ieldSamplingComboBox
->
addItem
(
"Gaussian"
);
QGridLayout
*
yeLayout
=
new
QGridLayout
(
mY
ieldEnsBox
);
mT
otalYieldLabel
=
new
StyledLabel
(
"Total Yield"
,
mY
ieldEnsBox
);
mT
otalYieldLineEdit
=
new
QLineEdit
(
mY
ieldEnsBox
);
mY
ieldDefineEnsCheckBox
=
new
QCheckBox
(
"Define Ensemble"
,
mY
ieldEnsBox
);
mN
umYieldsLabel
=
new
StyledLabel
(
"# of Yields"
,
mY
ieldEnsBox
);
mN
umYieldsLineEdit
=
new
QLineEdit
(
mY
ieldEnsBox
);
m
M
inYieldLabel
=
new
StyledLabel
(
"Min Yield"
,
mY
ieldEnsBox
);
m
M
inYieldLineEdit
=
new
QLineEdit
(
mY
ieldEnsBox
);
m
M
axYieldLabel
=
new
StyledLabel
(
"Max Yield"
,
mY
ieldEnsBox
);
m
M
axYieldLineEdit
=
new
QLineEdit
(
mY
ieldEnsBox
);
mY
ieldSamplingLabel
=
new
StyledLabel
(
"Sampling"
,
mY
ieldEnsBox
);
mY
ieldSamplingComboBox
=
new
QComboBox
(
mY
ieldEnsBox
);
mY
ieldSamplingComboBox
->
addItem
(
"Uniform"
);
mY
ieldSamplingComboBox
->
addItem
(
"Gaussian"
);
row
=
0
;
yeLayout
->
addWidget
(
t
otalYieldLabel
,
row
,
0
);
yeLayout
->
addWidget
(
t
otalYieldLineEdit
,
row
,
1
);
yeLayout
->
addWidget
(
y
ieldDefineEnsCheckBox
,
row
,
3
);
yeLayout
->
addWidget
(
n
umYieldsLabel
,
++
row
,
0
);
yeLayout
->
addWidget
(
n
umYieldsLineEdit
,
row
,
1
);
yeLayout
->
addWidget
(
minYieldLabel
,
row
,
2
);
yeLayout
->
addWidget
(
minYieldLineEdit
,
row
,
3
);
yeLayout
->
addWidget
(
maxYieldLabel
,
++
row
,
0
);
yeLayout
->
addWidget
(
maxYieldLineEdit
,
row
,
1
);
yeLayout
->
addWidget
(
y
ieldSamplingLabel
,
row
,
2
);
yeLayout
->
addWidget
(
y
ieldSamplingComboBox
,
row
,
3
);
yeLayout
->
addWidget
(
mT
otalYieldLabel
,
row
,
0
);
yeLayout
->
addWidget
(
mT
otalYieldLineEdit
,
row
,
1
);
yeLayout
->
addWidget
(
mY
ieldDefineEnsCheckBox
,
row
,
3
);
yeLayout
->
addWidget
(
mN
umYieldsLabel
,
++
row
,
0
);
yeLayout
->
addWidget
(
mN
umYieldsLineEdit
,
row
,
1
);
yeLayout
->
addWidget
(
m
M
inYieldLabel
,
row
,
2
);
yeLayout
->
addWidget
(
m
M
inYieldLineEdit
,
row
,
3
);
yeLayout
->
addWidget
(
m
M
axYieldLabel
,
++
row
,
0
);
yeLayout
->
addWidget
(
m
M
axYieldLineEdit
,
row
,
1
);
yeLayout
->
addWidget
(
mY
ieldSamplingLabel
,
row
,
2
);
yeLayout
->
addWidget
(
mY
ieldSamplingComboBox
,
row
,
3
);
// build height of burst ensemble box
QGridLayout
*
hobLayout
=
new
QGridLayout
(
heightOfBurstEnsBox
);
hobLabel
=
new
StyledLabel
(
"Height of Burst"
,
heightOfBurstEnsBox
);
hobLineEdit
=
new
QLineEdit
(
heightOfBurstEnsBox
);
hobDefineEnsCheckBox
=
new
QCheckBox
(
"Define Ensemble"
,
heightOfBurstEnsBox
);
numHOBsLabel
=
new
StyledLabel
(
"# of HoB"
,
heightOfBurstEnsBox
);
numHOBsLineEdit
=
new
QLineEdit
(
heightOfBurstEnsBox
);
minHOBLabel
=
new
StyledLabel
(
"Min HoB"
,
heightOfBurstEnsBox
);
minHOBLineEdit
=
new
QLineEdit
(
heightOfBurstEnsBox
);
maxHOBLabel
=
new
StyledLabel
(
"Max HoB"
,
heightOfBurstEnsBox
);
maxHOBLineEdit
=
new
QLineEdit
(
heightOfBurstEnsBox
);
hobSamplingLabel
=
new
StyledLabel
(
"Sampling"
,
heightOfBurstEnsBox
);
hobSamplingComboBox
=
new
QComboBox
(
heightOfBurstEnsBox
);
hobSamplingComboBox
->
addItem
(
"Uniform"
);
hobSamplingComboBox
->
addItem
(
"Gaussian"
);
QGridLayout
*
hobLayout
=
new
QGridLayout
(
mHeightOfBurstEnsBox
);
mHOBLabel
=
new
StyledLabel
(
"Height of Burst"
,
mHeightOfBurstEnsBox
);
mHOBLineEdit
=
new
QLineEdit
(
mHeightOfBurstEnsBox
);
mHOBDefineEnsCheckBox
=
new
QCheckBox
(
"Define Ensemble"
,
mHeightOfBurstEnsBox
);
mNumHOBsLabel
=
new
StyledLabel
(
"# of HoB"
,
mHeightOfBurstEnsBox
);
mNumHOBsLineEdit
=
new
QLineEdit
(
mHeightOfBurstEnsBox
);
mMinHOBLabel
=
new
StyledLabel
(
"Min HoB"
,
mHeightOfBurstEnsBox
);
mMinHOBLineEdit
=
new
QLineEdit
(
mHeightOfBurstEnsBox
);
mMaxHOBLabel
=
new
StyledLabel
(
"Max HoB"
,
mHeightOfBurstEnsBox
);
mMaxHOBLineEdit
=
new
QLineEdit
(
mHeightOfBurstEnsBox
);
mHOBSamplingLabel
=
new
StyledLabel
(
"Sampling"
,
mHeightOfBurstEnsBox
);
mHOBSamplingComboBox
=
new
QComboBox
(
mHeightOfBurstEnsBox
);
mHOBSamplingComboBox
->
addItem
(
"Uniform"
);
mHOBSamplingComboBox
->
addItem
(
"Gaussian"
);
row
=
0
;
hobLayout
->
addWidget
(
hob
Label
,
row
,
0
);
hobLayout
->
addWidget
(
hob
LineEdit
,
row
,
1
);
hobLayout
->
addWidget
(
hob
DefineEnsCheckBox
,
row
,
3
);
hobLayout
->
addWidget
(
n
umHOBsLabel
,
++
row
,
0
);
hobLayout
->
addWidget
(
n
umHOBsLineEdit
,
row
,
1
);
hobLayout
->
addWidget
(
minHOBLabel
,
row
,
2
);
hobLayout
->
addWidget
(
minHOBLineEdit
,
row
,
3
);
hobLayout
->
addWidget
(
maxHOBLabel
,
++
row
,
0
);
hobLayout
->
addWidget
(
maxHOBLineEdit
,
row
,
1
);
hobLayout
->
addWidget
(
hob
SamplingLabel
,
row
,
2
);
hobLayout
->
addWidget
(
hob
SamplingComboBox
,
row
,
3
);
hobLayout
->
addWidget
(
mHOB
Label
,
row
,
0
);
hobLayout
->
addWidget
(
mHOB
LineEdit
,
row
,
1
);
hobLayout
->
addWidget
(
mHOB
DefineEnsCheckBox
,
row
,
3
);
hobLayout
->
addWidget
(
mN
umHOBsLabel
,
++
row
,
0
);
hobLayout
->
addWidget
(
mN
umHOBsLineEdit
,
row
,
1
);
hobLayout
->
addWidget
(
m
M
inHOBLabel
,
row
,
2
);
hobLayout
->
addWidget
(
m
M
inHOBLineEdit
,
row
,
3
);
hobLayout
->
addWidget
(
m
M
axHOBLabel
,
++
row
,
0
);
hobLayout
->
addWidget
(
m
M
axHOBLineEdit
,
row
,
1
);
hobLayout
->
addWidget
(
mHOB
SamplingLabel
,
row
,
2
);
hobLayout
->
addWidget
(
mHOB
SamplingComboBox
,
row
,
3
);
// build meteorology box
QGridLayout
*
metLayout
=
new
QGridLayout
(
meteorologyBox
);
metFileSetsBox
=
new
LeftTitleGroupBox
(
"File Sets"
,
meteorologyBox
);
metFileSetsListWidget
=
new
QListWidget
(
metFileSetsBox
);
QGridLayout
*
metFSLayout
=
new
QGridLayout
(
metFileSetsBox
);
metAddSetButton
=
new
QPushButton
(
"Add Set"
,
meteorologyBox
);
metRemoveSetButton
=
new
QPushButton
(
"Remove Set"
,
meteorologyBox
);
metAddButton
=
new
QPushButton
(
"Add"
,
meteorologyBox
);
metRemoveButton
=
new
QPushButton
(
"Remove"
,
meteorologyBox
);
metFSLayout
->
addWidget
(
metFileSetsListWidget
);
metFileSetsListWidget
->
addItem
(
"asdf"
);
metFileSetsListWidget
->
addItem
(
"zxcv"
);
QGridLayout
*
metLayout
=
new
QGridLayout
(
m
M
eteorologyBox
);
m
M
etFileSetsBox
=
new
LeftTitleGroupBox
(
"File Sets"
,
m
M
eteorologyBox
);
m
M
etFileSetsListWidget
=
new
QListWidget
(
m
M
etFileSetsBox
);
QGridLayout
*
metFSLayout
=
new
QGridLayout
(
m
M
etFileSetsBox
);
m
M
etAddSetButton
=
new
QPushButton
(
"Add Set"
,
m
M
eteorologyBox
);
m
M
etRemoveSetButton
=
new
QPushButton
(
"Remove Set"
,
m
M
eteorologyBox
);
m
M
etAddButton
=
new
QPushButton
(
"Add"
,
m
M
eteorologyBox
);
m
M
etRemoveButton
=
new
QPushButton
(
"Remove"
,
m
M
eteorologyBox
);
metFSLayout
->
addWidget
(
m
M
etFileSetsListWidget
);
m
M
etFileSetsListWidget
->
addItem
(
"asdf"
);
m
M
etFileSetsListWidget
->
addItem
(
"zxcv"
);
row
=
0
;
metLayout
->
addWidget
(
metFileSetsBox
,
row
,
0
,
1
,
5
);
QWidget
*
metSpacer
=
new
QWidget
(
meteorologyBox
);
metLayout
->
addWidget
(
m
M
etFileSetsBox
,
row
,
0
,
1
,
5
);
QWidget
*
metSpacer
=
new
QWidget
(
m
M
eteorologyBox
);
metSpacer
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Preferred
);
metLayout
->
addWidget
(
metSpacer
,
++
row
,
0
);
metLayout
->
addWidget
(
metAddSetButton
,
row
,
1
);
metLayout
->
addWidget
(
metRemoveSetButton
,
row
,
2
);
metLayout
->
addWidget
(
metAddButton
,
row
,
3
);
metLayout
->
addWidget
(
metRemoveButton
,
row
,
4
);
metLayout
->
addWidget
(
m
M
etAddSetButton
,
row
,
1
);
metLayout
->
addWidget
(
m
M
etRemoveSetButton
,
row
,
2
);
metLayout
->
addWidget
(
m
M
etAddButton
,
row
,
3
);
metLayout
->
addWidget
(
m
M
etRemoveButton
,
row
,
4
);
// dispersion physics ensemble box
QGridLayout
*
dpeLayout
=
new
QGridLayout
(
d
ispPhysEnsBox
);
s
etupC
FG
sBox
=
new
LeftTitleGroupBox
(
"SETUP.CFG Files"
,
d
ispPhysEnsBox
);
s
etupC
FG
sListWidget
=
new
QListWidget
(
s
etupC
FG
sBox
);
QGridLayout
*
dpeSFLayout
=
new
QGridLayout
(
s
etupC
FG
sBox
);
s
etupC
FG
sImportButton
=
new
QPushButton
(
"Add Set"
,
d
ispPhysEnsBox
);
s
etupC
FG
sRemoveButton
=
new
QPushButton
(
"Remove Set"
,
d
ispPhysEnsBox
);
dpeSFLayout
->
addWidget
(
s
etupC
FG
sListWidget
);
s
etupC
FG
sListWidget
->
addItem
(
"asdf"
);
s
etupC
FG
sListWidget
->
addItem
(
"zxcv"
);
QGridLayout
*
dpeLayout
=
new
QGridLayout
(
mD
ispPhysEnsBox
);
mS
etupC
fg
sBox
=
new
LeftTitleGroupBox
(
"SETUP.CFG Files"
,
mD
ispPhysEnsBox
);
mS
etupC
fg
sListWidget
=
new
QListWidget
(
mS
etupC
fg
sBox
);
QGridLayout
*
dpeSFLayout
=
new
QGridLayout
(
mS
etupC
fg
sBox
);
mS
etupC
fg
sImportButton
=
new
QPushButton
(
"Add Set"
,
mD
ispPhysEnsBox
);
mS
etupC
fg
sRemoveButton
=
new
QPushButton
(
"Remove Set"
,
mD
ispPhysEnsBox
);
dpeSFLayout
->
addWidget
(
mS
etupC
fg
sListWidget
);
mS
etupC
fg
sListWidget
->
addItem
(
"asdf"
);
mS
etupC
fg
sListWidget
->
addItem
(
"zxcv"
);
row
=
0
;
dpeLayout
->
addWidget
(
s
etupC
FG
sBox
,
row
,
0
,
1
,
5
);
QWidget
*
dpeSpacer
=
new
QWidget
(
d
ispPhysEnsBox
);
dpeLayout
->
addWidget
(
mS
etupC
fg
sBox
,
row
,
0
,
1
,
5
);
QWidget
*
dpeSpacer
=
new
QWidget
(
mD
ispPhysEnsBox
);
dpeSpacer
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Preferred
);
dpeLayout
->
addWidget
(
dpeSpacer
,
++
row
,
0
);
dpeLayout
->
addWidget
(
s
etupC
FG
sImportButton
,
row
,
1
);
dpeLayout
->
addWidget
(
s
etupC
FG
sRemoveButton
,
row
,
2
);
dpeLayout
->
addWidget
(
mS
etupC
fg
sImportButton
,
row
,
1
);
dpeLayout
->
addWidget
(
mS
etupC
fg
sRemoveButton
,
row
,
2
);
// turbulence ensemble box
QGridLayout
*
teLayout
=
new
QGridLayout
(
t
urbEnsBox
);
t
urbEnsNumLabel
=
new
StyledLabel
(
"Number"
,
t
urbEnsBox
);
t
urbEnsNumLineEdit
=
new
QLineEdit
(
t
urbEnsBox
);
QWidget
*
teSpacer
=
new
QWidget
(
t
urbEnsBox
);
QGridLayout
*
teLayout
=
new
QGridLayout
(
mT
urbEnsBox
);
mT
urbEnsNumLabel
=
new
StyledLabel
(
"Number"
,
mT
urbEnsBox
);
mT
urbEnsNumLineEdit
=
new
QLineEdit
(
mT
urbEnsBox
);
QWidget
*
teSpacer
=
new
QWidget
(
mT
urbEnsBox
);
teSpacer
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Preferred
);
teLayout
->
addWidget
(
t
urbEnsNumLabel
,
0
,
0
);
teLayout
->
addWidget
(
t
urbEnsNumLineEdit
,
0
,
1
);
teLayout
->
addWidget
(
mT
urbEnsNumLabel
,
0
,
0
);
teLayout
->
addWidget
(
mT
urbEnsNumLineEdit
,
0
,
1
);
teLayout
->
addWidget
(
teSpacer
,
0
,
2
);
// meteorology ensemble box
QGridLayout
*
meLayout
=
new
QGridLayout
(
metEnsBox
);
metEnsNumLabel
=
new
StyledLabel
(
"Number"
,
metEnsBox
);
metEnsNumLineEdit
=
new
QLineEdit
(
metEnsBox
);
QWidget
*
meSpacer
=
new
QWidget
(
metEnsBox
);
QGridLayout
*
meLayout
=
new
QGridLayout
(
m
M
etEnsBox
);
m
M
etEnsNumLabel
=
new
StyledLabel
(
"Number"
,
m
M
etEnsBox
);
m
M
etEnsNumLineEdit
=
new
QLineEdit
(
m
M
etEnsBox
);
QWidget
*
meSpacer
=
new
QWidget
(
m
M
etEnsBox
);
meSpacer
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Preferred
);
meLayout
->
addWidget
(
metEnsNumLabel
,
0
,
0
);
meLayout
->
addWidget
(
metEnsNumLineEdit
,
0
,
1
);
meLayout
->
addWidget
(
m
M
etEnsNumLabel
,
0
,
0
);
meLayout
->
addWidget
(
m
M
etEnsNumLineEdit
,
0
,
1
);
meLayout
->
addWidget
(
meSpacer
,
0
,
2
);
}
...
...
rsmwidgets/examples/rsmportalexample.hh
View file @
3c43ce5f
...
...
@@ -120,70 +120,159 @@ class LeftTitleGroupBox : public QGroupBox
LeftTitleGroupBox
(
const
QString
&
title
,
QWidget
*
parent
=
Q_NULLPTR
);
};
class
APTEnsDataModel
{
private:
double
mLatitude
;
double
mLongitude
;
double
mAltitude
;
double
mSoilType
;
double
mFissionID
;
double
mTotalYield
;
bool
mYieldDefEnsemble
;
unsigned
mNumYields
;
double
mMinYield
;
double
mMaxYield
;
unsigned
mYieldSampling
;
double
mHeightOfBurst
;
bool
mHOBDefEnsemble
;
unsigned
mNumHOBs
;
double
mMinHOB
;
double
mMaxHOB
;
unsigned
mHOBSampling
;
QStringList
mMetFileSets
;
QStringList
mDispPhysSetupCfgs
;
unsigned
mTurbEnsNum
;
unsigned
mMetEnsNum
;
public:
APTEnsDataModel
();
// getters
double
latitude
()
{
return
mLatitude
;
}
double
longitude
()
{
return
mLongitude
;
}
double
altitude
()
{
return
mAltitude
;
}
double
soilType
()
{
return
mSoilType
;
}
double
fissionID
()
{
return
mFissionID
;
}
double
totalYield
()
{
return
mTotalYield
;
}
bool
yieldDefEnsemble
()
{
return
mYieldDefEnsemble
;
}
unsigned
numYields
()
{
return
mNumYields
;
}
double
minYield
()
{
return
mMinYield
;
}
double
maxYield
()
{
return
mMaxYield
;
}
unsigned
yieldSampling
()
{
return
mYieldSampling
;
}
double
heightOfBurst
()
{
return
mHeightOfBurst
;
}
bool
hobDefEnsemble
()
{
return
mHOBDefEnsemble
;
}
unsigned
numHOBs
()
{
return
mNumHOBs
;
}
double
minHOB
()
{
return
mMinHOB
;
}
double
maxHOB
()
{
return
mMaxHOB
;
}
unsigned
hobSampling
()
{
return
mHOBSampling
;
}
QStringList
&
metFileSets
()
{
return
mMetFileSets
;
}
QStringList
&
dispPhysSetupCfgs
()
{
return
mDispPhysSetupCfgs
;
}
unsigned
turbEnsNum
()
{
return
mTurbEnsNum
;
}
unsigned
metEnsNum
()
{
return
mMetEnsNum
;
}
// setters
void
setLatitude
(
double
a
)
{
mLatitude
=
a
;
}
void
setLongitude
(
double
a
)
{
mLongitude
=
a
;
}
void
setAltitude
(
double
a
)
{
mAltitude
=
a
;
}
void
setSoilType
(
double
a
)
{
mSoilType
=
a
;
}
void
setFissionID
(
double
a
)
{
mFissionID
=
a
;
}
void
setTotalYield
(
double
a
)
{
mTotalYield
=
a
;
}
void
setYieldDefEnsemble
(
bool
a
)
{
mYieldDefEnsemble
=
a
;
}
void
setNumYields
(
unsigned
a
)
{
mNumYields
=
a
;
}
void
setMinYield
(
double
a
)
{
mMinYield
=
a
;
}
void
setMaxYield
(
double
a
)
{
mMaxYield
=
a
;
}
void
setYieldSampling
(
unsigned
a
)
{
mYieldSampling
=
a
;
}
void
setHeightOfBurst
(
double
a
)
{
mHeightOfBurst
=
a
;
}
void
setHOBDefEnsemble
(
bool
a
)
{
mHOBDefEnsemble
=
a
;
}
void
setNumHOBs
(
unsigned
a
)
{
mNumHOBs
=
a
;
}
void
setMinHOB
(
double
a
)
{
mMinHOB
=
a
;
}
void
setMaxHOB
(
double
a
)
{
mMaxHOB
=
a
;
}
void
setHOBSampling
(
unsigned
a
)
{
mHOBSampling
=
a
;
}
void
setTurbEnsNum
(
unsigned
a
)
{
mTurbEnsNum
=
a
;
}
void
setMetEnsNum
(
unsigned
a
)
{
mMetEnsNum
=
a
;
}
};
class
APTEnsWidget
:
public
QWidget
{
Q_OBJECT
private:
CenterTitleGroupBox
*
e
ventDefBox
;
CenterTitleGroupBox
*
y
ieldEnsBox
;
CenterTitleGroupBox
*
h
eightOfBurstEnsBox
;
CenterTitleGroupBox
*
meteorologyBox
;
CenterTitleGroupBox
*
d
ispPhysEnsBox
;
CenterTitleGroupBox
*
t
urbEnsBox
;
CenterTitleGroupBox
*
metEnsBox
;
StyledLabel
*
l
atLabel
;
StyledLabel
*
l
onLabel
;
StyledLabel
*
a
ltLabel
;
StyledLabel
*
s
oilTypeLabel
;
StyledLabel
*
f
issionIDLabel
;
QLineEdit
*
l
atLineEdit
;
QLineEdit
*
l
onLineEdit
;
QLineEdit
*
a
ltLineEdit
;
QLineEdit
*
s
oilTypeLineEdit
;
QLineEdit
*
f
issionIDLineEdit
;
StyledLabel
*
t
otalYieldLabel
;
QLineEdit
*
t
otalYieldLineEdit
;
QCheckBox
*
y
ieldDefineEnsCheckBox
;
StyledLabel
*
n
umYieldsLabel
;
QLineEdit
*
n
umYieldsLineEdit
;
StyledLabel
*
minYieldLabel
;
QLineEdit
*
minYieldLineEdit
;
StyledLabel
*
maxYieldLabel
;
QLineEdit
*
maxYieldLineEdit
;
StyledLabel
*
y
ieldSamplingLabel
;
QComboBox
*
y
ieldSamplingComboBox
;
StyledLabel
*
hob
Label
;
QLineEdit
*
hob
LineEdit
;
QCheckBox
*
hob
DefineEnsCheckBox
;
StyledLabel
*
n
umHOBsLabel
;
QLineEdit
*
n
umHOBsLineEdit
;
StyledLabel
*
minHOBLabel
;
QLineEdit
*
minHOBLineEdit
;
StyledLabel
*
maxHOBLabel
;
QLineEdit
*
maxHOBLineEdit
;
StyledLabel
*
hob
SamplingLabel
;
QComboBox
*
hob
SamplingComboBox
;
LeftTitleGroupBox
*
metFileSetsBox
;
QListWidget
*
metFileSetsListWidget
;
QPushButton
*
metAddSetButton
;
QPushButton
*
metRemoveSetButton
;
QPushButton
*
metAddButton
;
QPushButton
*
metRemoveButton
;
LeftTitleGroupBox
*
s
etupC
FG
sBox
;
QListWidget
*
s
etupC
FG
sListWidget
;
QPushButton
*
s
etupC
FG
sImportButton
;
QPushButton
*
s
etupC
FG
sRemoveButton
;
StyledLabel
*
t
urbEnsNumLabel
;
QLineEdit
*
t
urbEnsNumLineEdit
;
StyledLabel
*
metEnsNumLabel
;
QLineEdit
*
metEnsNumLineEdit
;
CenterTitleGroupBox
*
mE
ventDefBox
;
CenterTitleGroupBox
*
mY
ieldEnsBox
;
CenterTitleGroupBox
*
mH
eightOfBurstEnsBox
;
CenterTitleGroupBox
*
m
M
eteorologyBox
;
CenterTitleGroupBox
*
mD
ispPhysEnsBox
;
CenterTitleGroupBox
*
mT
urbEnsBox
;
CenterTitleGroupBox
*
m
M
etEnsBox
;
StyledLabel
*
mL
atLabel
;
StyledLabel
*
mL
onLabel
;
StyledLabel
*
mA
ltLabel
;
StyledLabel
*
mS
oilTypeLabel
;
StyledLabel
*
mF
issionIDLabel
;
QLineEdit
*
mL
atLineEdit
;
QLineEdit
*
mL
onLineEdit
;
QLineEdit
*
mA
ltLineEdit
;
QLineEdit
*
mS
oilTypeLineEdit
;
QLineEdit
*
mF
issionIDLineEdit
;
StyledLabel
*
mT
otalYieldLabel
;
QLineEdit
*
mT
otalYieldLineEdit
;
QCheckBox
*
mY
ieldDefineEnsCheckBox
;
StyledLabel
*
mN
umYieldsLabel
;
QLineEdit
*
mN
umYieldsLineEdit
;
StyledLabel
*
m
M
inYieldLabel
;
QLineEdit
*
m
M
inYieldLineEdit
;
StyledLabel
*
m
M
axYieldLabel
;
QLineEdit
*
m
M
axYieldLineEdit
;
StyledLabel
*
mY
ieldSamplingLabel
;
QComboBox
*
mY
ieldSamplingComboBox
;
StyledLabel
*
mHOB
Label
;
QLineEdit
*
mHOB
LineEdit
;
QCheckBox
*
mHOB
DefineEnsCheckBox
;
StyledLabel
*
mN
umHOBsLabel
;
QLineEdit
*
mN
umHOBsLineEdit
;
StyledLabel
*
m
M
inHOBLabel
;
QLineEdit
*
m
M
inHOBLineEdit
;
StyledLabel
*
m
M
axHOBLabel
;
QLineEdit
*
m
M
axHOBLineEdit
;
StyledLabel
*
mHOB
SamplingLabel
;
QComboBox
*
mHOB
SamplingComboBox
;
LeftTitleGroupBox
*
m
M
etFileSetsBox
;
QListWidget
*
m
M
etFileSetsListWidget
;
QPushButton
*
m
M
etAddSetButton
;
QPushButton
*
m
M
etRemoveSetButton
;
QPushButton
*
m
M
etAddButton
;
QPushButton
*
m
M
etRemoveButton
;
LeftTitleGroupBox
*
mS
etupC
fg
sBox
;
QListWidget
*
mS
etupC
fg
sListWidget
;
QPushButton
*
mS
etupC
fg
sImportButton
;
QPushButton
*
mS
etupC
fg
sRemoveButton
;
StyledLabel
*
mT
urbEnsNumLabel
;
QLineEdit
*
mT
urbEnsNumLineEdit
;
StyledLabel
*
m
M
etEnsNumLabel
;
QLineEdit
*
m
M
etEnsNumLineEdit
;
public:
APTEnsWidget
(
QWidget
*
parent
=
nullptr
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment