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
05f0fb96
Commit
05f0fb96
authored
Apr 17, 2020
by
Huff, Israel
Browse files
added some (currently disconnected) controls for adding/selecting ensembles
parent
0409c121
Pipeline
#97690
failed with stages
in 1 minute and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rsmwidgets/examples/aptenswidget.cc
View file @
05f0fb96
...
...
@@ -80,13 +80,22 @@ APTEnsWidget::APTEnsWidget(QWidget *parent)
model
->
setupCfgs
().
append
(
"sdfg"
);
model
->
setupCfgs
().
append
(
"xcvb"
);
mCurrentModelBox
=
new
CenterTitleGroupBox
(
""
,
this
);
QGridLayout
*
cmLayout
=
new
QGridLayout
(
this
);
cmLayout
->
addWidget
(
mCurrentModelBox
,
0
,
0
);
QGridLayout
*
layout
=
new
QGridLayout
(
mCurrentModelBox
);
mEventDefBox
=
new
CenterTitleGroupBox
(
"Event Definition"
,
this
);
mYieldEnsBox
=
new
CenterTitleGroupBox
(
"Yield Ensemble"
,
this
);
QGridLayout
*
mainLayout
=
new
QGridLayout
(
this
);
mSelectModelBox
=
new
CenterTitleGroupBox
(
"Select Model"
,
this
);
mCurrentModelBox
=
new
CenterTitleGroupBox
(
""
,
this
);
mainLayout
->
addWidget
(
mSelectModelBox
,
0
,
0
);
mainLayout
->
addWidget
(
mCurrentModelBox
,
0
,
1
);
QGridLayout
*
smLayout
=
new
QGridLayout
(
mSelectModelBox
);
mNewModelLineEdit
=
new
QLineEdit
(
this
);
mModelListWidget
=
new
QListWidget
(
mSelectModelBox
);
smLayout
->
addWidget
(
mNewModelLineEdit
,
0
,
0
);
smLayout
->
addWidget
(
mModelListWidget
,
1
,
0
);
QGridLayout
*
cmLayout
=
new
QGridLayout
(
mCurrentModelBox
);
mEventDefBox
=
new
CenterTitleGroupBox
(
"Event Definition"
,
this
);
mYieldEnsBox
=
new
CenterTitleGroupBox
(
"Yield Ensemble"
,
this
);
mHeightOfBurstEnsBox
=
new
CenterTitleGroupBox
(
"Height of Burst Ensemble"
,
this
);
mMeteorologyBox
=
new
CenterTitleGroupBox
(
"Meteorology"
,
this
);
...
...
@@ -96,13 +105,13 @@ APTEnsWidget::APTEnsWidget(QWidget *parent)
mMetEnsBox
=
new
CenterTitleGroupBox
(
"Meteorology Ensemble"
,
this
);
int
row
=
0
;
l
ayout
->
addWidget
(
mEventDefBox
,
row
,
0
,
1
,
2
);
l
ayout
->
addWidget
(
mYieldEnsBox
,
++
row
,
0
);
l
ayout
->
addWidget
(
mHeightOfBurstEnsBox
,
row
,
1
);
l
ayout
->
addWidget
(
mMeteorologyBox
,
++
row
,
0
,
1
,
2
);
l
ayout
->
addWidget
(
mDispPhysEnsBox
,
++
row
,
0
,
1
,
2
);
l
ayout
->
addWidget
(
mTurbEnsBox
,
++
row
,
0
);
l
ayout
->
addWidget
(
mMetEnsBox
,
row
,
1
);
cmL
ayout
->
addWidget
(
mEventDefBox
,
row
,
0
,
1
,
2
);
cmL
ayout
->
addWidget
(
mYieldEnsBox
,
++
row
,
0
);
cmL
ayout
->
addWidget
(
mHeightOfBurstEnsBox
,
row
,
1
);
cmL
ayout
->
addWidget
(
mMeteorologyBox
,
++
row
,
0
,
1
,
2
);
cmL
ayout
->
addWidget
(
mDispPhysEnsBox
,
++
row
,
0
,
1
,
2
);
cmL
ayout
->
addWidget
(
mTurbEnsBox
,
++
row
,
0
);
cmL
ayout
->
addWidget
(
mMetEnsBox
,
row
,
1
);
// build event definition box
QGridLayout
*
edLayout
=
new
QGridLayout
(
mEventDefBox
);
...
...
rsmwidgets/examples/aptenswidget.hh
View file @
05f0fb96
...
...
@@ -49,8 +49,12 @@ class APTEnsWidget : public QWidget
QMap
<
QString
,
APTEnsDataModel
>
mDataModels
;
QString
mCurrentModel
;
CenterTitleGroupBox
*
mSelectModelBox
;
CenterTitleGroupBox
*
mCurrentModelBox
;
QLineEdit
*
mNewModelLineEdit
;
QListWidget
*
mModelListWidget
;
CenterTitleGroupBox
*
mEventDefBox
;
CenterTitleGroupBox
*
mYieldEnsBox
;
CenterTitleGroupBox
*
mHeightOfBurstEnsBox
;
...
...
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