2025-10-29 17:23:30 +08:00
|
|
|
|
#include "formtrack.h"
|
|
|
|
|
|
#include "ui_formtrack.h"
|
|
|
|
|
|
#include <QDebug>
|
2025-11-05 14:03:27 +08:00
|
|
|
|
#include "CallManage.h"
|
2026-03-08 23:22:36 +08:00
|
|
|
|
#include "geometryutils.h"
|
2025-10-29 17:23:30 +08:00
|
|
|
|
|
2025-11-13 18:13:40 +08:00
|
|
|
|
extern int g_iOneWidth; //道宽
|
|
|
|
|
|
|
2025-10-29 17:23:30 +08:00
|
|
|
|
//曲线名称栏(表格)
|
|
|
|
|
|
FormTrack::FormTrack(QWidget *parent, QString strWellName, QString strTrackName) :
|
|
|
|
|
|
QWidget(parent),
|
|
|
|
|
|
ui(new Ui::FormTrack)
|
|
|
|
|
|
{
|
|
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
|
|
2026-03-08 23:22:36 +08:00
|
|
|
|
m_strTrackUuid = getUUid();
|
2025-10-29 17:23:30 +08:00
|
|
|
|
m_strWellName = strWellName;
|
|
|
|
|
|
m_strTrackName = strTrackName;
|
|
|
|
|
|
|
2025-11-05 14:03:27 +08:00
|
|
|
|
//单元格委托
|
|
|
|
|
|
//m_delegate = new NoLRBorderDelegate();
|
|
|
|
|
|
//隐藏网格线
|
|
|
|
|
|
ui->tableWidget->setShowGrid(false);
|
|
|
|
|
|
//设置样式表,竖直边框宽度为0,隐藏
|
|
|
|
|
|
ui->tableWidget->setStyleSheet( "QTableView::item {border-left: 0px solid black;} \
|
2026-02-11 16:11:45 +08:00
|
|
|
|
QTableView::item:selected {border-left: 0px solid black; color:#57595B; background:#E4E4E4;}\
|
2025-11-05 14:03:27 +08:00
|
|
|
|
QTableView::item {border-right: 0px solid black;} \
|
|
|
|
|
|
QTableView::item:selected {border-right: 0px solid black;}");
|
|
|
|
|
|
|
2025-10-29 17:23:30 +08:00
|
|
|
|
//表格绑定井名,道名
|
|
|
|
|
|
ui->tableWidget->m_strWellName = strWellName;
|
|
|
|
|
|
ui->tableWidget->m_strTrackName = strTrackName;
|
|
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->verticalHeader()->hide();//隐藏左侧系统序号栏
|
|
|
|
|
|
ui->tableWidget->horizontalHeader()->hide();//隐藏上方系统序号栏
|
|
|
|
|
|
//因为tableWidget需要提前规定好行数与列数
|
|
|
|
|
|
int recordcount = 0; //总行数
|
|
|
|
|
|
ui->tableWidget->setColumnCount(1);//总列数
|
|
|
|
|
|
ui->tableWidget->setRowCount(recordcount); //动态设置行数
|
|
|
|
|
|
//设置所有列均匀分布并填充满整个空间
|
|
|
|
|
|
QHeaderView *header = ui->tableWidget->horizontalHeader();
|
|
|
|
|
|
for (int i = 0; i < ui->tableWidget->columnCount(); ++i) {
|
|
|
|
|
|
header->setSectionResizeMode(i, QHeaderView::Stretch);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-23 14:53:34 +08:00
|
|
|
|
// 设置选择模式为单选模式
|
|
|
|
|
|
ui->tableWidget->setSelectionMode(QAbstractItemView::SingleSelection);
|
|
|
|
|
|
|
2025-11-18 11:40:42 +08:00
|
|
|
|
//曲线
|
2026-03-03 17:27:51 +08:00
|
|
|
|
connect(this, SIGNAL(sig_AddLine(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString, QStringList)),
|
|
|
|
|
|
this, SLOT(s_addLine(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString, QStringList)));
|
2026-02-09 18:14:22 +08:00
|
|
|
|
//删除曲线
|
2026-02-11 16:11:45 +08:00
|
|
|
|
connect(CallManage::getInstance(), SIGNAL(sig_delLine(QString, QString, QString, QString)),
|
|
|
|
|
|
this, SLOT(s_delLine(QString, QString, QString, QString)));
|
|
|
|
|
|
|
|
|
|
|
|
//表格
|
2025-11-18 11:40:42 +08:00
|
|
|
|
connect(this, SIGNAL(sig_AddWave(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)),
|
|
|
|
|
|
this, SLOT(s_addWave(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)));
|
2026-02-11 16:11:45 +08:00
|
|
|
|
connect(CallManage::getInstance(), SIGNAL(sig_delTableLine(QString, QString, QString, QString)),
|
|
|
|
|
|
this, SLOT(s_delTableLine(QString, QString, QString, QString)));
|
2025-10-29 17:23:30 +08:00
|
|
|
|
|
2025-11-26 16:56:00 +08:00
|
|
|
|
//波列
|
2026-03-03 11:36:54 +08:00
|
|
|
|
connect(this, SIGNAL(sig_AddTableLine(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString, QStringList)),
|
|
|
|
|
|
this, SLOT(s_AddTableLine(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString, QStringList)));
|
2025-11-26 16:56:00 +08:00
|
|
|
|
|
2025-12-12 20:10:30 +08:00
|
|
|
|
// 深度
|
|
|
|
|
|
connect(this, SIGNAL(sig_AddDepth(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)),
|
|
|
|
|
|
this, SLOT(s_addDepth(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)));
|
2025-12-25 15:10:14 +08:00
|
|
|
|
// 杆状图
|
|
|
|
|
|
connect(this, SIGNAL(sig_AddGanZhuangTu(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)),
|
|
|
|
|
|
this, SLOT(s_addGanZhuangTu(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)));
|
2025-12-12 20:10:30 +08:00
|
|
|
|
|
2025-12-26 17:53:02 +08:00
|
|
|
|
// 井眼垮塌矢量图
|
|
|
|
|
|
connect(this, SIGNAL(sig_AddJykt(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)),
|
|
|
|
|
|
this, SLOT(s_addJykt(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)));
|
|
|
|
|
|
|
|
|
|
|
|
// 井斜方位图
|
|
|
|
|
|
connect(this, SIGNAL(sig_AddDenv(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)),
|
|
|
|
|
|
this, SLOT(s_addDenv(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)));
|
|
|
|
|
|
|
2025-12-29 18:13:00 +08:00
|
|
|
|
//岩心图片
|
|
|
|
|
|
connect(this, SIGNAL(sig_AddYanXinImage(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)),
|
|
|
|
|
|
this, SLOT(s_addYanXinImage(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)));
|
|
|
|
|
|
|
|
|
|
|
|
//图像 成像
|
|
|
|
|
|
connect(this, SIGNAL(sig_AddDrawImage(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)),
|
|
|
|
|
|
this, SLOT(s_addDrawImage(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)));
|
|
|
|
|
|
|
2026-01-04 16:54:55 +08:00
|
|
|
|
//裂缝
|
|
|
|
|
|
connect(this, SIGNAL(sig_AddCrack(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)),
|
|
|
|
|
|
this, SLOT(s_addCrack(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)));
|
2026-01-13 14:10:52 +08:00
|
|
|
|
|
|
|
|
|
|
//斜井三图一表
|
|
|
|
|
|
connect(this, SIGNAL(sig_AddSantuyibiao(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)),
|
|
|
|
|
|
this, SLOT(s_addSantuyibiao(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)));
|
2026-01-04 16:54:55 +08:00
|
|
|
|
|
2026-01-07 17:39:27 +08:00
|
|
|
|
//气测/FMT/射孔/文本
|
2026-03-12 15:37:33 +08:00
|
|
|
|
connect(this, SIGNAL(sig_AddJiegutext(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString, QStringList)),
|
|
|
|
|
|
this, SLOT(s_addJiegutext(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString, QStringList)));
|
2026-01-07 17:39:27 +08:00
|
|
|
|
|
2026-01-06 16:03:55 +08:00
|
|
|
|
//沉积相
|
|
|
|
|
|
connect(this, SIGNAL(sig_AddLogface(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)),
|
|
|
|
|
|
this, SLOT(s_addLogface(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)));
|
2026-01-13 14:10:52 +08:00
|
|
|
|
|
|
|
|
|
|
//多臂井径
|
|
|
|
|
|
connect(this, SIGNAL(sig_AddMCals(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)),
|
|
|
|
|
|
this, SLOT(s_addMCals(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)));
|
2026-01-06 16:03:55 +08:00
|
|
|
|
|
2026-01-07 17:39:27 +08:00
|
|
|
|
//套管组件
|
|
|
|
|
|
connect(this, SIGNAL(sig_AddTubingstring(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)),
|
|
|
|
|
|
this, SLOT(s_addTubingstring(QString, QString, QString, QString, QString, QString, QColor, double, float, float, QString)));
|
|
|
|
|
|
|
2025-11-05 14:03:27 +08:00
|
|
|
|
//曲线选中,置顶
|
2026-01-26 18:06:51 +08:00
|
|
|
|
connect(CallManage::getInstance(), SIGNAL(sig_Raise(QString, QString, QString, QString, QString, int, QString)), this, SLOT(s_Raise(QString, QString, QString, QString, QString, int, QString)));
|
2025-11-05 14:03:27 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-26 18:06:51 +08:00
|
|
|
|
void FormTrack::s_Raise(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, int iTableType, QString strFormInfoType)
|
2025-11-05 14:03:27 +08:00
|
|
|
|
{
|
|
|
|
|
|
if(m_strUuid == strUuid &&
|
|
|
|
|
|
m_strWellName == strWellName &&
|
2026-01-19 18:08:03 +08:00
|
|
|
|
m_strTrackName == strTrackName &&
|
|
|
|
|
|
iTableType==3)
|
2025-11-05 14:03:27 +08:00
|
|
|
|
{
|
|
|
|
|
|
//
|
|
|
|
|
|
}
|
|
|
|
|
|
else {
|
|
|
|
|
|
//取消表格选中状态
|
|
|
|
|
|
ui->tableWidget->clearSelection();
|
|
|
|
|
|
}
|
2025-10-29 17:23:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FormTrack::~FormTrack()
|
|
|
|
|
|
{
|
|
|
|
|
|
delete ui;
|
|
|
|
|
|
}
|
2026-03-08 23:22:36 +08:00
|
|
|
|
|
|
|
|
|
|
FormInfo* FormTrack::getFormInfo()
|
|
|
|
|
|
{
|
|
|
|
|
|
return m_formInfo;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QString FormTrack::getTrackUuid()
|
|
|
|
|
|
{
|
|
|
|
|
|
return m_strTrackUuid;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FormInfo* FormTrack::getFormInfoByParameters(QString strUuid, QString strWellName,
|
|
|
|
|
|
QString strTrackName, QString strLineName )
|
|
|
|
|
|
{
|
|
|
|
|
|
//
|
|
|
|
|
|
int rowCount = ui->tableWidget->rowCount();
|
|
|
|
|
|
for (int i = 0; i < rowCount; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (ui->tableWidget->cellWidget(i, 0) != nullptr)
|
|
|
|
|
|
{
|
|
|
|
|
|
auto myWidget = ui->tableWidget->cellWidget(i, 0);
|
|
|
|
|
|
FormInfo *formInfo = qobject_cast<FormInfo*>(myWidget);//获得widget
|
|
|
|
|
|
if (formInfo)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (strUuid == formInfo->m_strUuid
|
|
|
|
|
|
&& formInfo->m_strWellName == strWellName
|
|
|
|
|
|
&& formInfo->m_strTrackName == strTrackName
|
|
|
|
|
|
&& formInfo->m_strLineName == strLineName)
|
|
|
|
|
|
{
|
|
|
|
|
|
return formInfo;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
return NULL;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-04 12:16:25 +08:00
|
|
|
|
//
|
|
|
|
|
|
// void FormTrack::setTrackPropert(QJsonObject trackObj)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// if (!trackObj.contains("formInfos"))
|
|
|
|
|
|
// return;
|
|
|
|
|
|
//
|
|
|
|
|
|
// QJsonValue value = trackObj.value("formInfos");
|
|
|
|
|
|
// if (!value.isArray())
|
|
|
|
|
|
// return;
|
|
|
|
|
|
//
|
|
|
|
|
|
// QJsonArray linesArray = value.toArray();
|
|
|
|
|
|
//
|
|
|
|
|
|
// int iCount = linesArray.size();
|
|
|
|
|
|
// ui->tableWidget->setRowCount(iCount);
|
|
|
|
|
|
// for (int i = 0; i < iCount; i++)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// //按照id顺序,展示曲线
|
|
|
|
|
|
// QJsonValue lineValue = linesArray[i];
|
|
|
|
|
|
// QJsonObject lineObj = lineValue.toObject();
|
|
|
|
|
|
// QString strSlfName = lineObj.value("SlfName").toString();
|
|
|
|
|
|
// QString strLineName = lineObj.value("LineName").toString();
|
|
|
|
|
|
// QColor lineColor;
|
|
|
|
|
|
// lineColor.setNamedColor(lineObj.value("lineColor").toString());
|
|
|
|
|
|
// FormInfo *formInfo = new FormInfo(this, strSlfName, m_strWellName, m_strTrackName, strLineName, lineColor);
|
|
|
|
|
|
// formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
// formInfo->initProperty(lineObj);
|
|
|
|
|
|
//
|
|
|
|
|
|
// ui->tableWidget->setRowHeight(i, 100);
|
|
|
|
|
|
// ui->tableWidget->setCellWidget(i, 0, formInfo);
|
|
|
|
|
|
//
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
2025-10-29 17:23:30 +08:00
|
|
|
|
|
2026-03-03 11:36:54 +08:00
|
|
|
|
void FormTrack::Add(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType, QString strType, QStringList listOtherProperty)
|
2025-10-29 17:23:30 +08:00
|
|
|
|
{
|
|
|
|
|
|
qDebug()<< "Add";
|
|
|
|
|
|
|
2025-11-18 11:40:42 +08:00
|
|
|
|
if(strType=="curveObject")
|
|
|
|
|
|
{
|
2026-03-03 17:27:51 +08:00
|
|
|
|
emit sig_AddLine(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType, listOtherProperty);
|
2025-11-18 11:40:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
else if(strType=="waveObject")
|
|
|
|
|
|
{
|
|
|
|
|
|
emit sig_AddWave(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType);
|
|
|
|
|
|
}
|
2025-11-25 17:56:20 +08:00
|
|
|
|
else if(strType=="tableObject")
|
|
|
|
|
|
{
|
|
|
|
|
|
//新建表格曲线
|
2026-03-03 11:36:54 +08:00
|
|
|
|
emit sig_AddTableLine(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType, listOtherProperty);
|
2025-11-25 17:56:20 +08:00
|
|
|
|
}
|
2025-12-12 20:10:30 +08:00
|
|
|
|
else if(strType=="depthObject")
|
|
|
|
|
|
{
|
|
|
|
|
|
emit sig_AddDepth(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType);
|
|
|
|
|
|
}
|
2025-12-25 15:10:14 +08:00
|
|
|
|
else if(strType=="ganzhuangtuObject")
|
|
|
|
|
|
{
|
|
|
|
|
|
emit sig_AddGanZhuangTu(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType);
|
|
|
|
|
|
}
|
2025-12-26 17:53:02 +08:00
|
|
|
|
else if(strType=="JyktObject")
|
|
|
|
|
|
{
|
|
|
|
|
|
emit sig_AddJykt(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType);
|
|
|
|
|
|
}
|
|
|
|
|
|
else if(strType=="DenvObject")
|
|
|
|
|
|
{
|
|
|
|
|
|
emit sig_AddDenv(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType);
|
|
|
|
|
|
}
|
2026-02-11 16:11:45 +08:00
|
|
|
|
// else if(strType=="yanxinImageObject")
|
|
|
|
|
|
// {
|
|
|
|
|
|
// emit sig_AddYanXinImage(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType);
|
|
|
|
|
|
// }
|
2025-12-29 18:13:00 +08:00
|
|
|
|
else if(strType=="DrawImageObject")
|
|
|
|
|
|
{
|
|
|
|
|
|
emit sig_AddDrawImage(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType);
|
|
|
|
|
|
}
|
2026-01-04 16:54:55 +08:00
|
|
|
|
else if(strType=="CrackObject")
|
|
|
|
|
|
{
|
|
|
|
|
|
emit sig_AddCrack(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType);
|
2026-01-13 14:10:52 +08:00
|
|
|
|
}
|
|
|
|
|
|
else if(strType=="SantuyibiaoObject")
|
|
|
|
|
|
{
|
|
|
|
|
|
emit sig_AddSantuyibiao(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType);
|
2026-01-07 17:39:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
else if(strType=="JiegutextObject")
|
|
|
|
|
|
{
|
2026-03-12 15:37:33 +08:00
|
|
|
|
emit sig_AddJiegutext(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType, listOtherProperty);
|
2026-01-05 15:15:37 +08:00
|
|
|
|
}
|
2026-01-06 16:03:55 +08:00
|
|
|
|
else if(strType=="LogfaceObject")
|
|
|
|
|
|
{
|
|
|
|
|
|
emit sig_AddLogface(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType);
|
2026-01-13 14:10:52 +08:00
|
|
|
|
}
|
|
|
|
|
|
else if(strType=="MCalsObject")
|
|
|
|
|
|
{
|
|
|
|
|
|
emit sig_AddMCals(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType);
|
2026-01-06 16:03:55 +08:00
|
|
|
|
}
|
2026-01-07 17:39:27 +08:00
|
|
|
|
else if(strType=="TubingstringObject")
|
|
|
|
|
|
{
|
|
|
|
|
|
emit sig_AddTubingstring(strSlfName, strWellName, m_strTrackName, strLineName, strAliasName, strUnit, lineColor, dWidth, vmax, vmin, strScaleType);
|
2026-01-13 14:10:52 +08:00
|
|
|
|
}
|
2025-10-29 17:23:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-04 12:16:25 +08:00
|
|
|
|
FormInfo* FormTrack::setDrawDt(QStringList listdt, QJsonObject obj)
|
2025-12-24 20:45:48 +08:00
|
|
|
|
{
|
|
|
|
|
|
QString strWellName = listdt.at(1);
|
|
|
|
|
|
QString strSlfName = listdt.at(2);
|
|
|
|
|
|
QString strLineName = listdt.at(3);
|
|
|
|
|
|
QString strType = listdt.at(4);
|
|
|
|
|
|
// int nW = listdt.at(5).toInt();
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
2026-02-04 12:16:25 +08:00
|
|
|
|
QString strAliasName = "";
|
|
|
|
|
|
if (obj.contains("AliasName"))
|
|
|
|
|
|
{
|
|
|
|
|
|
strAliasName = obj.value("AliasName").toString();
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
if ("depthObject" == strType)
|
|
|
|
|
|
{
|
|
|
|
|
|
strAliasName = "深度";
|
|
|
|
|
|
}
|
|
|
|
|
|
else if ("plObject" == strType)
|
|
|
|
|
|
{
|
|
|
|
|
|
strAliasName = "频率统计图";
|
|
|
|
|
|
}
|
|
|
|
|
|
else if ("roseObject" == strType)
|
|
|
|
|
|
{
|
|
|
|
|
|
strAliasName = "玫瑰图";
|
|
|
|
|
|
}
|
|
|
|
|
|
else if ("dcaObject" == strType)
|
|
|
|
|
|
{
|
|
|
|
|
|
strAliasName = "裂缝检测";
|
|
|
|
|
|
}
|
|
|
|
|
|
else if ("tdtObject" == strType)
|
|
|
|
|
|
{
|
|
|
|
|
|
strAliasName = "TDT";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-24 20:45:48 +08:00
|
|
|
|
|
|
|
|
|
|
QColor lineColor=QColor(0,0,0);
|
|
|
|
|
|
double width=2;
|
|
|
|
|
|
QString strScaleType = "";
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, m_strTrackName, strLineName, lineColor);
|
2026-03-08 23:22:36 +08:00
|
|
|
|
m_formInfo = formInfo;
|
2026-02-04 12:16:25 +08:00
|
|
|
|
formInfo->initProperty(obj);
|
2025-12-24 20:45:48 +08:00
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
2026-03-08 23:22:36 +08:00
|
|
|
|
formInfo->m_strTrackUuid = m_strTrackUuid;
|
2025-12-24 20:45:48 +08:00
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = strType;
|
|
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(width);
|
|
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
|
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
2026-02-04 12:16:25 +08:00
|
|
|
|
|
|
|
|
|
|
return formInfo;
|
2025-12-24 20:45:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 17:27:51 +08:00
|
|
|
|
void FormTrack::s_addLine(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType, QStringList listOtherProperty)
|
2025-10-29 17:23:30 +08:00
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addLine";
|
|
|
|
|
|
|
2025-11-04 14:44:14 +08:00
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
2025-10-29 17:23:30 +08:00
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
2025-11-13 18:13:40 +08:00
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
2025-10-29 17:23:30 +08:00
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
2026-03-08 23:22:36 +08:00
|
|
|
|
m_formInfo = formInfo;
|
2025-11-04 14:44:14 +08:00
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
2026-03-08 23:22:36 +08:00
|
|
|
|
formInfo->m_strTrackUuid = m_strTrackUuid;
|
2025-11-06 17:34:31 +08:00
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
2025-11-06 14:43:37 +08:00
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
2025-11-18 11:40:42 +08:00
|
|
|
|
formInfo->m_strType = "curveObject";
|
2025-10-29 17:23:30 +08:00
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
2025-10-31 17:56:50 +08:00
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
2026-03-03 17:27:51 +08:00
|
|
|
|
//
|
|
|
|
|
|
if(listOtherProperty.size()>=3)
|
|
|
|
|
|
{
|
|
|
|
|
|
QFont curveNameFont("微软雅黑", 10); // 名称字体
|
|
|
|
|
|
curveNameFont.fromString(listOtherProperty[2]);
|
|
|
|
|
|
formInfo->m_curveNameFont = curveNameFont;
|
|
|
|
|
|
}
|
|
|
|
|
|
if(listOtherProperty.size()>=7)
|
|
|
|
|
|
{
|
|
|
|
|
|
if(listOtherProperty[3]=="DrawLine")
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bDrawLine = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bDrawLine = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
//
|
|
|
|
|
|
if(listOtherProperty[4]=="DrawGan")
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bDrawGan = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bDrawGan = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
//
|
|
|
|
|
|
if(listOtherProperty[5]=="DrawPoint")
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bDrawPoint = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bDrawPoint = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
//
|
|
|
|
|
|
if(listOtherProperty[6]=="DrawSymmetry")
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bDrawSymmetry = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bDrawSymmetry = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-10-29 17:23:30 +08:00
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
2025-11-05 14:03:27 +08:00
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
2025-10-29 17:23:30 +08:00
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
|
2025-11-05 14:03:27 +08:00
|
|
|
|
|
2025-10-29 17:23:30 +08:00
|
|
|
|
//------------------------------------
|
|
|
|
|
|
// QFont font("微软雅黑", 10, QFont::Bold, false);
|
|
|
|
|
|
// //
|
|
|
|
|
|
// QTableWidgetItem* item = new QTableWidgetItem(strLineName);
|
|
|
|
|
|
// item->setFlags(item->flags() & (~Qt::ItemIsEditable));
|
|
|
|
|
|
// item->setForeground(QBrush(lineColor));// 设置字体颜色
|
|
|
|
|
|
// item->setFont(font); // 应用新的字体
|
|
|
|
|
|
// item->setTextAlignment(Qt::AlignCenter);//居中
|
|
|
|
|
|
// //
|
|
|
|
|
|
// ui->tableWidget->setItem(row, 0, item);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-09 18:14:22 +08:00
|
|
|
|
void FormTrack::s_delLine(QString strUuid, QString strWellName, QString strTrackName, QString strLineName)
|
|
|
|
|
|
{
|
|
|
|
|
|
//井名&道名不一致
|
|
|
|
|
|
if(strUuid == m_strUuid && m_strWellName == strWellName && m_strTrackName == strTrackName)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
//
|
|
|
|
|
|
int rowCount = ui->tableWidget->rowCount();
|
|
|
|
|
|
for(int i=0; i<rowCount; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
if( ui->tableWidget->cellWidget(i, 0) != nullptr )
|
|
|
|
|
|
{
|
|
|
|
|
|
auto myWidget = ui->tableWidget->cellWidget(i, 0);
|
|
|
|
|
|
FormInfo *formInfo = qobject_cast<FormInfo*>(myWidget);//获得widget
|
|
|
|
|
|
if(formInfo)
|
|
|
|
|
|
{
|
|
|
|
|
|
if(strUuid == formInfo->m_strUuid
|
|
|
|
|
|
&& formInfo->m_strWellName == strWellName
|
|
|
|
|
|
&& formInfo->m_strTrackName == strTrackName
|
|
|
|
|
|
&& formInfo->m_strLineName == strLineName)
|
|
|
|
|
|
{
|
|
|
|
|
|
ui->tableWidget->removeRow(i);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-11 16:11:45 +08:00
|
|
|
|
void FormTrack::s_delTableLine(QString strUuid, QString strWellName, QString strTrackName, QString strLineName)
|
|
|
|
|
|
{
|
|
|
|
|
|
//井名&道名不一致
|
|
|
|
|
|
if(strUuid == m_strUuid && m_strWellName == strWellName && m_strTrackName == strTrackName)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
//
|
|
|
|
|
|
int rowCount = ui->tableWidget->rowCount();
|
|
|
|
|
|
for(int i=0; i<rowCount; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
if( ui->tableWidget->cellWidget(i, 0) != nullptr )
|
|
|
|
|
|
{
|
|
|
|
|
|
auto myWidget = ui->tableWidget->cellWidget(i, 0);
|
|
|
|
|
|
FormInfo *formInfo = qobject_cast<FormInfo*>(myWidget);//获得widget
|
|
|
|
|
|
if(formInfo)
|
|
|
|
|
|
{
|
|
|
|
|
|
if(strUuid == formInfo->m_strUuid
|
|
|
|
|
|
&& formInfo->m_strWellName == strWellName
|
|
|
|
|
|
&& formInfo->m_strTrackName == strTrackName
|
|
|
|
|
|
&& formInfo->m_strLineName == strLineName)
|
|
|
|
|
|
{
|
|
|
|
|
|
ui->tableWidget->removeRow(i);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-18 11:40:42 +08:00
|
|
|
|
void FormTrack::s_addWave(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType)
|
|
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addWave";
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
2026-02-02 21:32:36 +08:00
|
|
|
|
//波列信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
2025-11-18 11:40:42 +08:00
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "waveObject";
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
2026-02-02 21:32:36 +08:00
|
|
|
|
|
2026-02-05 14:53:44 +08:00
|
|
|
|
formInfo->m_nDrawType = 2;
|
|
|
|
|
|
formInfo->m_nFillType = 1;
|
2026-02-02 21:32:36 +08:00
|
|
|
|
formInfo->m_curveNameFont = QFont("黑体", 12);
|
|
|
|
|
|
formInfo->m_curveUnitFont = QFont("黑体", 10);
|
|
|
|
|
|
formInfo->m_curveScaleFont = QFont("黑体", 10);
|
|
|
|
|
|
formInfo->m_fMaxAmp = 1023.0f;
|
|
|
|
|
|
|
2025-11-18 11:40:42 +08:00
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
|
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
|
2025-11-25 17:56:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 11:36:54 +08:00
|
|
|
|
void FormTrack::s_AddTableLine(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType, QStringList listOtherProperty)
|
2025-11-25 17:56:20 +08:00
|
|
|
|
{
|
2025-12-22 18:22:45 +08:00
|
|
|
|
if(strLineName == "FRAC_HOLE.TABLE" || strLineName == "WORDS_RELUST" || strLineName == "RESULT"
|
2025-12-23 17:15:39 +08:00
|
|
|
|
|| strLineName == "GEO_LITH" || strLineName == "SWALL_CORE"
|
2025-12-25 15:10:14 +08:00
|
|
|
|
|| strLineName == "GUJING1_RESULT" || strLineName == "GUJING2_RESULT" || strLineName == "GUJING3_RESULT"
|
2026-03-09 17:50:21 +08:00
|
|
|
|
|| strLineName == "CORE_PHYSICS" || strLineName == "IMAGE_DATA"
|
|
|
|
|
|
|| strLineName == "LAYER_DATA")
|
2025-12-05 18:27:24 +08:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
2025-12-01 17:13:17 +08:00
|
|
|
|
{
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-26 16:56:00 +08:00
|
|
|
|
qDebug() << "FormTrack s_AddTableLine";
|
2025-11-25 17:56:20 +08:00
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "tableObject";
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
2026-03-05 16:45:06 +08:00
|
|
|
|
if(strLineName == "GUJING1_RESULT" || strLineName == "GUJING2_RESULT" || strLineName == "GUJING3_RESULT"
|
2026-03-09 09:48:28 +08:00
|
|
|
|
|| strLineName == "GEO_LITH" || strLineName == "SWALL_CORE"
|
2026-03-09 17:50:21 +08:00
|
|
|
|
|| strLineName == "WORDS_RELUST"
|
|
|
|
|
|
|| strLineName == "LAYER_DATA" )
|
2026-03-03 11:36:54 +08:00
|
|
|
|
{
|
2026-03-09 17:50:21 +08:00
|
|
|
|
//固井结论 / 井壁取心 / 录井剖面 /文字结论 /地质分层
|
2026-03-12 15:37:33 +08:00
|
|
|
|
if(listOtherProperty.size()>=5)
|
2026-03-03 11:36:54 +08:00
|
|
|
|
{
|
|
|
|
|
|
QFont curveNameFont("微软雅黑", 10); // 名称字体
|
|
|
|
|
|
curveNameFont.fromString(listOtherProperty[2]);
|
|
|
|
|
|
formInfo->m_curveNameFont = curveNameFont;
|
2026-03-12 15:37:33 +08:00
|
|
|
|
//
|
|
|
|
|
|
if(listOtherProperty[3]=="VerticaDrawing")
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bVerticaDrawing = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bVerticaDrawing = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
//
|
|
|
|
|
|
formInfo->m_nRotationAngle = listOtherProperty[4].toInt();
|
2026-03-03 11:36:54 +08:00
|
|
|
|
}
|
2026-03-06 16:17:57 +08:00
|
|
|
|
|
|
|
|
|
|
//录井剖面
|
|
|
|
|
|
if(strLineName == "GEO_LITH")
|
|
|
|
|
|
{
|
2026-03-12 15:37:33 +08:00
|
|
|
|
if(listOtherProperty.size()>=12)
|
2026-03-06 16:17:57 +08:00
|
|
|
|
{
|
2026-03-12 15:37:33 +08:00
|
|
|
|
formInfo->m_dOilZhan = listOtherProperty[5].toDouble();
|
2026-03-11 14:23:23 +08:00
|
|
|
|
|
|
|
|
|
|
//
|
2026-03-12 15:37:33 +08:00
|
|
|
|
if(listOtherProperty[6]=="LithColor")
|
2026-03-11 14:23:23 +08:00
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bLithColor = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bLithColor = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
//
|
2026-03-12 15:37:33 +08:00
|
|
|
|
if(listOtherProperty[7]=="LithOne")
|
2026-03-11 14:23:23 +08:00
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bLithOne = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bLithOne = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
//
|
2026-03-12 15:37:33 +08:00
|
|
|
|
if(listOtherProperty[8]=="ShowOil")
|
2026-03-11 14:23:23 +08:00
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bShowOil = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bShowOil = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
//
|
2026-03-12 15:37:33 +08:00
|
|
|
|
if(listOtherProperty[9]=="CenterOil")
|
2026-03-11 14:23:23 +08:00
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bCenterOil = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bCenterOil = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
//
|
2026-03-12 15:37:33 +08:00
|
|
|
|
if(listOtherProperty[10]=="ShowColor")
|
2026-03-11 14:23:23 +08:00
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bShowColor = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bShowColor = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
//
|
2026-03-12 15:37:33 +08:00
|
|
|
|
if(listOtherProperty[11]=="ShowColorNum")
|
2026-03-11 14:23:23 +08:00
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bShowColorNum = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
formInfo->m_bShowColorNum = false;
|
|
|
|
|
|
}
|
2026-03-06 16:17:57 +08:00
|
|
|
|
}
|
2026-03-11 14:23:23 +08:00
|
|
|
|
|
2026-03-06 16:17:57 +08:00
|
|
|
|
}
|
2026-03-03 11:36:54 +08:00
|
|
|
|
}
|
2025-11-25 17:56:20 +08:00
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
|
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
2025-11-18 11:40:42 +08:00
|
|
|
|
}
|
2025-10-29 17:23:30 +08:00
|
|
|
|
|
2025-12-12 20:10:30 +08:00
|
|
|
|
void FormTrack::s_addDepth(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType)
|
|
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addDepth";
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "depthObject";
|
|
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
|
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
|
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
}
|
2025-12-26 17:53:02 +08:00
|
|
|
|
|
2025-12-25 15:10:14 +08:00
|
|
|
|
void FormTrack::s_addGanZhuangTu(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType)
|
|
|
|
|
|
{
|
2025-12-26 17:53:02 +08:00
|
|
|
|
qDebug() << "FormTrack s_addGanZhuangTu";
|
2025-12-25 15:10:14 +08:00
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
2025-12-12 20:10:30 +08:00
|
|
|
|
|
2025-12-25 15:10:14 +08:00
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
2025-12-26 17:53:02 +08:00
|
|
|
|
formInfo->m_strType = "ganzhuangtuObject";
|
2025-12-25 15:10:14 +08:00
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
|
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
|
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
}
|
2025-12-26 17:53:02 +08:00
|
|
|
|
|
|
|
|
|
|
void FormTrack::s_addJykt(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType)
|
|
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addJykt";
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "JyktObject";
|
|
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
|
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
|
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void FormTrack::s_addDenv(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType)
|
|
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addDenv";
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "JyktObject";
|
|
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
|
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
2025-12-29 18:13:00 +08:00
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void FormTrack::s_addYanXinImage(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType)
|
|
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addYanXinImage";
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "yanxinImageObject";
|
|
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
|
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
|
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void FormTrack::s_addDrawImage(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType)
|
|
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addDrawImage";
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "DrawImageObject";
|
|
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
|
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
2025-12-26 17:53:02 +08:00
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-13 14:10:52 +08:00
|
|
|
|
//斜井三图一表
|
|
|
|
|
|
void FormTrack::s_addSantuyibiao(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType)
|
|
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addSantuyibiao";
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "SantuyibiaoObject";
|
|
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
|
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
|
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-04 16:54:55 +08:00
|
|
|
|
void FormTrack::s_addCrack(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType)
|
|
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addCrack";
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "CrackObject";
|
|
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
|
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
|
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-12 15:37:33 +08:00
|
|
|
|
void FormTrack::s_addJiegutext(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType, QStringList listOtherProperty)
|
2026-01-07 17:39:27 +08:00
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addJiegutext";
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "JiegutextObject";
|
|
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
2026-03-12 15:37:33 +08:00
|
|
|
|
//
|
|
|
|
|
|
if(listOtherProperty.size()>=3)
|
|
|
|
|
|
{
|
|
|
|
|
|
QFont curveNameFont("微软雅黑", 10); // 名称字体
|
|
|
|
|
|
curveNameFont.fromString(listOtherProperty[2]);
|
|
|
|
|
|
formInfo->m_curveNameFont = curveNameFont;
|
|
|
|
|
|
}
|
2026-01-07 17:39:27 +08:00
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
|
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-13 14:10:52 +08:00
|
|
|
|
//沉积相
|
2026-01-06 16:03:55 +08:00
|
|
|
|
void FormTrack::s_addLogface(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType)
|
|
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addLogface";
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "LogfaceObject";
|
|
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
|
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
2026-01-07 17:39:27 +08:00
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-13 14:10:52 +08:00
|
|
|
|
//多臂井径
|
|
|
|
|
|
void FormTrack::s_addMCals(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType)
|
|
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addMCals";
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "MCalsObject";
|
|
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
|
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
|
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//套管
|
2026-01-07 17:39:27 +08:00
|
|
|
|
void FormTrack::s_addTubingstring(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType)
|
|
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addTubingstring";
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "TubingstringObject";
|
|
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
|
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
2026-01-13 14:10:52 +08:00
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void FormTrack::s_addTDT(QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strAliasName, QString strUnit, QColor lineColor, double dWidth, float vmax, float vmin, QString strScaleType)
|
|
|
|
|
|
{
|
|
|
|
|
|
qDebug() << "FormTrack s_addTDT";
|
|
|
|
|
|
|
|
|
|
|
|
ui->tableWidget->m_strUuid = m_strUuid;
|
|
|
|
|
|
int row = ui->tableWidget->rowCount();
|
|
|
|
|
|
ui->tableWidget->setRowCount(row + 1);
|
|
|
|
|
|
|
|
|
|
|
|
//避免出现小滚动条
|
|
|
|
|
|
//ui->tableWidget->resize(g_iOneWidth, 100*(row + 1)+10);
|
|
|
|
|
|
//this->resize(g_iOneWidth, 100*(row + 1)+30);
|
|
|
|
|
|
|
|
|
|
|
|
//曲线信息栏
|
|
|
|
|
|
FormInfo *formInfo = new FormInfo(this, strSlfName, strWellName, strTrackName, strLineName, lineColor);
|
|
|
|
|
|
formInfo->m_strUuid = m_strUuid;
|
|
|
|
|
|
formInfo->m_strAliasName = strAliasName;
|
|
|
|
|
|
formInfo->m_strUnit = strUnit;
|
|
|
|
|
|
formInfo->m_strScaleType = strScaleType;
|
|
|
|
|
|
formInfo->m_strType = "TDTObject";
|
|
|
|
|
|
formInfo->m_nJg = 2;
|
|
|
|
|
|
formInfo->setLineWidth(dWidth);
|
|
|
|
|
|
formInfo->setVMax(vmax);
|
|
|
|
|
|
formInfo->setVMin(vmin);
|
|
|
|
|
|
formInfo->setFrontColor(QColor(0,0,0));
|
|
|
|
|
|
formInfo->setBackColor(QColor(255,255,255));
|
|
|
|
|
|
//设置高度
|
|
|
|
|
|
ui->tableWidget->setRowHeight(row, 100);
|
|
|
|
|
|
//单元格委托
|
|
|
|
|
|
//ui->tableWidget->setItemDelegateForRow(row, m_delegate);
|
2026-01-05 15:15:37 +08:00
|
|
|
|
//
|
|
|
|
|
|
ui->tableWidget->setCellWidget(row, 0, formInfo);
|
|
|
|
|
|
}
|
2026-01-04 16:54:55 +08:00
|
|
|
|
|
2025-10-29 17:23:30 +08:00
|
|
|
|
QJsonObject FormTrack::makeJson()
|
|
|
|
|
|
{
|
|
|
|
|
|
// 创建根对象
|
|
|
|
|
|
QJsonObject rootObj;
|
|
|
|
|
|
//
|
|
|
|
|
|
rootObj["WellName"] = m_strWellName;
|
2026-01-30 13:36:32 +08:00
|
|
|
|
// rootObj["TrackName"] = m_strTrackName;
|
2025-10-29 17:23:30 +08:00
|
|
|
|
|
|
|
|
|
|
// 创建JSON数组并填充数据
|
|
|
|
|
|
QJsonArray subcaseArray;
|
|
|
|
|
|
//
|
|
|
|
|
|
int rowCount = ui->tableWidget->rowCount();
|
|
|
|
|
|
for(int i=0; i<rowCount; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
if( ui->tableWidget->cellWidget(i, 0) != nullptr )
|
|
|
|
|
|
{
|
|
|
|
|
|
auto myWidget = ui->tableWidget->cellWidget(i, 0);
|
2026-02-04 12:16:25 +08:00
|
|
|
|
FormInfo *formInfo = qobject_cast<FormInfo*>(myWidget);//获得widget
|
2025-10-29 17:23:30 +08:00
|
|
|
|
if(formInfo)
|
|
|
|
|
|
{
|
|
|
|
|
|
//options
|
|
|
|
|
|
QJsonObject formInfoObj;
|
|
|
|
|
|
formInfoObj["id"] = i;
|
|
|
|
|
|
formInfoObj["info"] = formInfo->makeJson();
|
|
|
|
|
|
subcaseArray.append(formInfoObj);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
rootObj["formInfos"]=subcaseArray;
|
|
|
|
|
|
|
|
|
|
|
|
return rootObj;
|
|
|
|
|
|
}
|
2026-01-19 18:08:03 +08:00
|
|
|
|
|
|
|
|
|
|
QStringList FormTrack::getLineList(QString strWellName, QString strTrackName)
|
|
|
|
|
|
{
|
|
|
|
|
|
QStringList listLine;
|
|
|
|
|
|
if(strWellName == m_strWellName && strTrackName == m_strTrackName)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
return listLine;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
int rowCount = ui->tableWidget->rowCount();
|
|
|
|
|
|
for(int i=0; i<rowCount; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
if( ui->tableWidget->cellWidget(i, 0) != nullptr )
|
|
|
|
|
|
{
|
|
|
|
|
|
auto myWidget = ui->tableWidget->cellWidget(i, 0);
|
|
|
|
|
|
//
|
|
|
|
|
|
FormInfo *formInfo = (FormInfo*)myWidget;//获得widget
|
|
|
|
|
|
if(formInfo)
|
|
|
|
|
|
{
|
|
|
|
|
|
listLine.append(formInfo->m_strLineName);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
return listLine;
|
|
|
|
|
|
}
|