Added checkbox to control import of survey and plan

p4#: 21863
This commit is contained in:
Magne Sjaastad
2013-06-10 10:10:56 +02:00
parent a2aa9f3e7d
commit 68edafe5f4
2 changed files with 31 additions and 3 deletions

View File

@@ -76,6 +76,7 @@ FetchWellPathsDialog::FetchWellPathsDialog(QWidget *parent)
m_westLineEdit = new QLineEdit;
QGroupBox* utmAreaGropBox = new QGroupBox("UTM filter by area");
QGridLayout *utmAreaLayout = new QGridLayout;
utmAreaLayout->addWidget(m_filterWellsByUtmArea, 0, 1);
@@ -89,6 +90,22 @@ FetchWellPathsDialog::FetchWellPathsDialog(QWidget *parent)
utmAreaLayout->addWidget(m_westLineEdit, 2, 3);
utmAreaGropBox->setLayout(utmAreaLayout);
// Well types
m_importSurveyCheckBox = new QCheckBox("Survey");
m_importSurveyCheckBox->setChecked(true);
m_importPlansCheckBox = new QCheckBox("Plans");
m_importPlansCheckBox->setChecked(true);
QGroupBox* wellTypeGropBox = new QGroupBox("Include well types");
QHBoxLayout* wellTypeLayout = new QHBoxLayout;
wellTypeLayout->addWidget(m_importSurveyCheckBox);
wellTypeLayout->addWidget(m_importPlansCheckBox);
wellTypeGropBox->setLayout(wellTypeLayout);
m_downloadWellPathsButton = new QPushButton(tr("Get well paths"));
m_downloadWellPathsButton->setDefault(true);
@@ -137,6 +154,7 @@ FetchWellPathsDialog::FetchWellPathsDialog(QWidget *parent)
mainLayout->addLayout(ssihubLayout);
mainLayout->addWidget(m_statusLabel);
mainLayout->addWidget(utmAreaGropBox);
mainLayout->addWidget(wellTypeGropBox);
mainLayout->addWidget(m_buttonBox);
mainLayout->addWidget(m_wellPathsView);
mainLayout->addWidget(buttonBox1);
@@ -696,7 +714,7 @@ void FetchWellPathsDialog::getWellPathLinks(QStringList* surveyLinks, QStringLis
surveyLinks->push_back(surveyLink);
QString planLink = linkMap["plans"].toString();
surveyLinks->push_back(planLink);
planLinks->push_back(planLink);
}
}
}
@@ -709,8 +727,15 @@ void FetchWellPathsDialog::issueDownloadOfWellPaths(const QStringList& surveyLin
{
m_wellPathRequestQueue.clear();
m_wellPathRequestQueue += surveyLinks;
m_wellPathRequestQueue += planLinks;
if (m_importSurveyCheckBox->isChecked())
{
m_wellPathRequestQueue += surveyLinks;
}
if (m_importPlansCheckBox->isChecked())
{
m_wellPathRequestQueue += planLinks;
}
checkDownloadQueueAndIssueRequests();
}

View File

@@ -122,6 +122,9 @@ private:
QLineEdit* m_eastLineEdit;
QLineEdit* m_westLineEdit;
QCheckBox* m_importSurveyCheckBox;
QCheckBox* m_importPlansCheckBox;
QProgressDialog* m_progressDialog;
QPushButton* m_downloadWellPathsButton;
QDialogButtonBox* m_buttonBox;