提交单位转换槽函数
This commit is contained in:
parent
1407f26531
commit
3fad0e233f
|
|
@ -1722,6 +1722,36 @@ void QtProjectWidgets::onWelllogInformation()
|
|||
}
|
||||
}
|
||||
|
||||
// 单位转换
|
||||
void QtProjectWidgets::onUnitConvert()
|
||||
{
|
||||
if (ui->treeWidget->selectedItems().count()!=1)
|
||||
return;
|
||||
QTreeWidgetItem *pItem = *ui->treeWidget->selectedItems().begin();
|
||||
QString strSlfName = pItem->data(0, Qt::UserRole+1).toString();
|
||||
if (!strSlfName.contains(".slf"))
|
||||
return;
|
||||
|
||||
CObjWelllogRound* pround = new CObjWelllogRound;
|
||||
pround->SetSlfFileName(strSlfName);
|
||||
if(pround&&pround->GetSlfFileName()!="")
|
||||
{
|
||||
QString m_SlfFileName=pround->GetSlfFileName();
|
||||
CMemRdWt * logio=new CMemRdWt();
|
||||
if(!logio->Open(m_SlfFileName.toStdString().c_str(),CSlfIO::modeReadWrite))
|
||||
{
|
||||
delete logio;
|
||||
return ;
|
||||
}
|
||||
delete logio;
|
||||
if (NULL==magr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
magr->UnitConvert(m_SlfFileName);
|
||||
}
|
||||
}
|
||||
|
||||
//深度移动(井次)
|
||||
void QtProjectWidgets::onDepthShift_Well(bool checked)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user