2025-10-29 17:23:30 +08:00
|
|
|
|
#ifndef FORMWELL_H
|
|
|
|
|
|
#define FORMWELL_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
#include "formtrack.h"
|
|
|
|
|
|
#include "formdraw.h"
|
2026-01-29 09:35:53 +08:00
|
|
|
|
#include "formtracktop.h"
|
2026-04-10 10:24:31 +08:00
|
|
|
|
#include "common.h"
|
2025-10-29 17:23:30 +08:00
|
|
|
|
|
|
|
|
|
|
#pragma execution_character_set("utf-8")
|
|
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
|
class FormWell;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class FormWell : public QWidget
|
|
|
|
|
|
{
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
explicit FormWell(QWidget *parent = nullptr, QString strWellName="");
|
|
|
|
|
|
~FormWell();
|
|
|
|
|
|
|
2025-12-24 20:45:48 +08:00
|
|
|
|
// 插入列,返回列索引
|
|
|
|
|
|
int insertColumn(int nw);
|
|
|
|
|
|
|
2026-01-30 13:36:32 +08:00
|
|
|
|
QVector<QWidget*> new_track(QStringList listdt, QString strTrackName = "");
|
2026-01-29 09:35:53 +08:00
|
|
|
|
|
2026-04-10 10:24:31 +08:00
|
|
|
|
void setBorderFlags(BorderFlags flags);
|
|
|
|
|
|
|
2026-03-08 23:22:36 +08:00
|
|
|
|
// 根据道ID,获取列索引
|
|
|
|
|
|
int getTableWidgetColumn(QString strTrackUuid);
|
2026-04-10 10:24:31 +08:00
|
|
|
|
protected:
|
|
|
|
|
|
void paintEvent(QPaintEvent *event);
|
2025-10-29 17:23:30 +08:00
|
|
|
|
private:
|
|
|
|
|
|
Ui::FormWell *ui;
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
2025-10-30 11:55:37 +08:00
|
|
|
|
QString m_strUuid;
|
2025-10-29 17:23:30 +08:00
|
|
|
|
QString m_strWellName;
|
2025-12-30 15:30:32 +08:00
|
|
|
|
QString m_strSlfName="";
|
2026-01-23 18:20:18 +08:00
|
|
|
|
int m_iScale=200;
|
|
|
|
|
|
double m_iY1=0;
|
|
|
|
|
|
double m_iY2=0;
|
2026-02-09 18:14:22 +08:00
|
|
|
|
QWidget *m_parent;
|
2025-10-29 17:23:30 +08:00
|
|
|
|
|
2026-03-08 23:22:36 +08:00
|
|
|
|
// 道图形
|
|
|
|
|
|
QMap<QString, QVector<QWidget*>> m_mapFormDraw;
|
|
|
|
|
|
|
2026-04-10 10:24:31 +08:00
|
|
|
|
BorderFlags m_BorderFlags;
|
|
|
|
|
|
|
2025-10-29 17:23:30 +08:00
|
|
|
|
public:
|
|
|
|
|
|
QJsonObject makeJson();
|
2026-01-19 18:08:03 +08:00
|
|
|
|
QStringList getLineList(QString strWellName, QString strTrackName);
|
|
|
|
|
|
|
2025-11-13 15:23:17 +08:00
|
|
|
|
void setRowHeight(double dHight, QProgressBar *progressBar, int iSplit);
|
2026-01-23 14:53:34 +08:00
|
|
|
|
//设置道宽
|
|
|
|
|
|
int setColWidth(int iCurrentCol, int iNewWidth);
|
2025-10-29 17:23:30 +08:00
|
|
|
|
|
2026-03-25 17:05:44 +08:00
|
|
|
|
//获取当前井的所有道名称
|
|
|
|
|
|
QStringList getTrackNameList();
|
|
|
|
|
|
|
2025-10-29 17:23:30 +08:00
|
|
|
|
public slots:
|
2026-03-08 23:22:36 +08:00
|
|
|
|
//void onTableColumnsInserted(const QModelIndex &parent, int first, int last);
|
|
|
|
|
|
|
2025-12-24 20:45:48 +08:00
|
|
|
|
void s_NewCol(QStringList listdt);
|
|
|
|
|
|
|
2025-12-12 20:10:30 +08:00
|
|
|
|
void s_NewTrack(QString strUuid, QString strWellName, QString strSlfName, QString strLineName, QString strType,int nW);
|
2025-10-29 17:23:30 +08:00
|
|
|
|
//新建空白道,没有曲线
|
2025-11-04 14:44:14 +08:00
|
|
|
|
void s_NewTrack_No_Line(QString strUuid, QString strWellName, QString strTrackName);
|
2025-11-05 14:03:27 +08:00
|
|
|
|
|
2026-01-30 13:36:32 +08:00
|
|
|
|
void slot_NewTrack_No_Line(QString strUuid, QJsonObject topObj, QJsonObject infoObj);
|
2026-01-29 09:35:53 +08:00
|
|
|
|
|
2026-01-26 18:06:51 +08:00
|
|
|
|
void s_Raise(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, int iTableType, QString strFormInfoType);
|
2026-02-09 18:14:22 +08:00
|
|
|
|
|
2026-03-08 23:22:36 +08:00
|
|
|
|
void s_ChangeCross(QString strUuid, QString strTrackUuid);//
|
|
|
|
|
|
|
|
|
|
|
|
void s_ReplotFinished(QString strUuid);
|
|
|
|
|
|
|
2026-02-09 18:14:22 +08:00
|
|
|
|
//图头右键菜单响应函数
|
|
|
|
|
|
void slotContextMenu(QPoint pos);
|
|
|
|
|
|
void slotDeleteSelectTrack();
|
|
|
|
|
|
|
|
|
|
|
|
void resizeWindow();
|
2026-03-08 23:22:36 +08:00
|
|
|
|
|
2025-10-29 17:23:30 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // FORMWELL_H
|