You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
1.7 KiB
C++
77 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include "iDlgBase.h"
|
|
|
|
#include "mGuiPlot_global.h"
|
|
|
|
class ZxObjSegLine;
|
|
class QListWidget;
|
|
//产液线整体设置
|
|
class M_GUI_PLOT_EXPORT iWxSegLineWholeSet : public iDlgBase
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit iWxSegLineWholeSet(QWidget *parent = NULL);
|
|
~iWxSegLineWholeSet();
|
|
//设井深度
|
|
void setWellDepthInfo(double dDepthStart, double dDepthEnd, QVector<ZxObjSegLine*> vecObjs);
|
|
// 初始化
|
|
virtual void initUI();
|
|
|
|
protected:
|
|
//主
|
|
void initUI_Main();
|
|
//井信息
|
|
void initUI_MainWellInfo();
|
|
//段设置模式
|
|
void initUI_MainSegInfo();
|
|
//左边
|
|
void initUIMainLeft(QHBoxLayout* pLayout);
|
|
//右边
|
|
void initUIMainRight(QHBoxLayout* pLayout);
|
|
//按钮
|
|
void initUI_Bt();
|
|
//根据名字找到对应的产液线
|
|
ZxObjSegLine* getObjSegLine(QString sTag);
|
|
//得到选中的产液线
|
|
QStringList getSelectSegLines();
|
|
|
|
public slots:
|
|
//全选和反选
|
|
void slotBtnSelectAll();
|
|
void slotBtnInvert();
|
|
|
|
void slotBtnOK();
|
|
void slotBtnCancel();
|
|
|
|
//
|
|
void slotLenghtRbChanged(int);
|
|
void slotAngleRbChanged(int);
|
|
|
|
//选择变化
|
|
void slotSegTagStateChanged(QListWidgetItem *);
|
|
|
|
protected:
|
|
//起始深度
|
|
double m_dDepthStart;
|
|
//终止深度
|
|
double m_dDepthEnd;
|
|
//段数
|
|
QVector<ZxObjSegLine*> m_vecObjs;
|
|
//布局
|
|
QVBoxLayout* m_pMainLayout;
|
|
//整体展示所有产液段
|
|
QListWidget* m_pListWt;
|
|
//深度平移
|
|
QLineEdit* m_pLEDepthOffset;
|
|
//长度累加
|
|
QString m_sLenghtType;
|
|
QLineEdit* m_pLELenghtAddUp;
|
|
QLineEdit* m_pLELendhtReset;
|
|
//角度累加
|
|
QString m_sAngleType;
|
|
QLineEdit* m_pLEAngleAddUp;
|
|
QLineEdit* m_pLEAngleReset;
|
|
};
|