logplus/logPlus/formwell.h

83 lines
2.0 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef FORMWELL_H
#define FORMWELL_H
#include <QWidget>
#include "formtrack.h"
#include "formdraw.h"
#include "formtracktop.h"
#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();
// 插入列,返回列索引
int insertColumn(int nw);
QVector<QWidget*> new_track(QStringList listdt, QString strTrackName = "");
// 根据道ID获取列索引
int getTableWidgetColumn(QString strTrackUuid);
private:
Ui::FormWell *ui;
public:
QString m_strUuid;
QString m_strWellName;
QString m_strSlfName="";
int m_iScale=200;
double m_iY1=0;
double m_iY2=0;
QWidget *m_parent;
// 道图形
QMap<QString, QVector<QWidget*>> m_mapFormDraw;
public:
QJsonObject makeJson();
QStringList getLineList(QString strWellName, QString strTrackName);
void setRowHeight(double dHight, QProgressBar *progressBar, int iSplit);
//设置道宽
int setColWidth(int iCurrentCol, int iNewWidth);
//获取当前井的所有道名称
QStringList getTrackNameList();
public slots:
//void onTableColumnsInserted(const QModelIndex &parent, int first, int last);
void s_NewCol(QStringList listdt);
void s_NewTrack(QString strUuid, QString strWellName, QString strSlfName, QString strLineName, QString strType,int nW);
//新建空白道,没有曲线
void s_NewTrack_No_Line(QString strUuid, QString strWellName, QString strTrackName);
void slot_NewTrack_No_Line(QString strUuid, QJsonObject topObj, QJsonObject infoObj);
void s_Raise(QString strUuid, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, int iTableType, QString strFormInfoType);
void s_ChangeCross(QString strUuid, QString strTrackUuid);//
void s_ReplotFinished(QString strUuid);
//图头右键菜单响应函数
void slotContextMenu(QPoint pos);
void slotDeleteSelectTrack();
void resizeWindow();
};
#endif // FORMWELL_H