|
|
@ -703,16 +703,18 @@ void nmSubWndMain::selectWell()
|
|
|
|
int wellCount = zxCurProject->getChildrenCount(iDataModelType::sTypeWell);
|
|
|
|
int wellCount = zxCurProject->getChildrenCount(iDataModelType::sTypeWell);
|
|
|
|
ZxDataObjectList wellList = zxCurProject->getChildren(iDataModelType::sTypeWell);
|
|
|
|
ZxDataObjectList wellList = zxCurProject->getChildren(iDataModelType::sTypeWell);
|
|
|
|
nmDataLogFile::getInstance()->writeLog(QString(" %1 %2").arg(wellCount).arg(wellList.size()));
|
|
|
|
nmDataLogFile::getInstance()->writeLog(QString(" %1 %2").arg(wellCount).arg(wellList.size()));
|
|
|
|
|
|
|
|
QStringList wellNames;
|
|
|
|
|
|
|
|
QList<QVariant> wellCodes;
|
|
|
|
for (int i = 0; i < wellList.size(); i++) {
|
|
|
|
for (int i = 0; i < wellList.size(); i++) {
|
|
|
|
ZxDataObject* wellObj = wellList[i];
|
|
|
|
ZxDataObject* wellObj = wellList[i];
|
|
|
|
nmDataLogFile::getInstance()->writeLog(wellObj->getName() + " " + wellObj->getCode());
|
|
|
|
nmDataLogFile::getInstance()->writeLog(wellObj->getName() + " " + wellObj->getCode());
|
|
|
|
|
|
|
|
wellNames.append(wellObj->getName());
|
|
|
|
|
|
|
|
wellCodes.append(wellObj->getCode());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
nmWxSelectWellsDlg* dlg = new nmWxSelectWellsDlg(this);
|
|
|
|
nmWxSelectWellsDlg* dlg = new nmWxSelectWellsDlg(this);
|
|
|
|
nmWxSelectWellsWidget *comboBox = new nmWxSelectWellsWidget(this);
|
|
|
|
nmWxSelectWellsWidget *wellListWidget = new nmWxSelectWellsWidget(this);
|
|
|
|
comboBox->addItem("Option 1", 1);
|
|
|
|
wellListWidget->addItems(wellNames, wellCodes);
|
|
|
|
comboBox->addItem("Option 2", 2 );
|
|
|
|
dlg->setWidget(wellListWidget);
|
|
|
|
comboBox->addItem("Option 3", 3);
|
|
|
|
|
|
|
|
dlg->setWidget(comboBox);
|
|
|
|
|
|
|
|
if(dlg->exec() == QDialog::Accepted) {
|
|
|
|
if(dlg->exec() == QDialog::Accepted) {
|
|
|
|
// 用户点击了“确定”按钮
|
|
|
|
// 用户点击了“确定”按钮
|
|
|
|
nmDataLogFile::getInstance()->writeLog(" OK ");
|
|
|
|
nmDataLogFile::getInstance()->writeLog(" OK ");
|
|
|
@ -789,4 +791,4 @@ void nmSubWndMain::triggerToolBarAction(int index)
|
|
|
|
bool nmSubWndMain::onConfirmClosing()
|
|
|
|
bool nmSubWndMain::onConfirmClosing()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return iSubWndBaseAF::onConfirmClosing();
|
|
|
|
return iSubWndBaseAF::onConfirmClosing();
|
|
|
|
}
|
|
|
|
}
|
|
|
|