Commit 05f0fb96 authored by Huff, Israel's avatar 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
......@@ -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;
layout->addWidget(mEventDefBox, row, 0, 1, 2);
layout->addWidget(mYieldEnsBox, ++row, 0);
layout->addWidget(mHeightOfBurstEnsBox, row, 1);
layout->addWidget(mMeteorologyBox, ++row, 0, 1, 2);
layout->addWidget(mDispPhysEnsBox, ++row, 0, 1, 2);
layout->addWidget(mTurbEnsBox, ++row, 0);
layout->addWidget(mMetEnsBox, row, 1);
cmLayout->addWidget(mEventDefBox, row, 0, 1, 2);
cmLayout->addWidget(mYieldEnsBox, ++row, 0);
cmLayout->addWidget(mHeightOfBurstEnsBox, row, 1);
cmLayout->addWidget(mMeteorologyBox, ++row, 0, 1, 2);
cmLayout->addWidget(mDispPhysEnsBox, ++row, 0, 1, 2);
cmLayout->addWidget(mTurbEnsBox, ++row, 0);
cmLayout->addWidget(mMetEnsBox, row, 1);
// build event definition box
QGridLayout *edLayout = new QGridLayout(mEventDefBox);
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment