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.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "iDlgBase.h"
|
|
|
|
|
|
|
|
|
|
#include "mGuiPlot_global.h"
|
|
|
|
|
|
|
|
|
|
//产液线整体布局(设置初始位置,间隔等参数)
|
|
|
|
|
enum eSetMethod
|
|
|
|
|
{
|
|
|
|
|
SM_None = 0,
|
|
|
|
|
SM_FixStartDepth, //设置起点,步长
|
|
|
|
|
SM_FixEndDepth, //设置终点,步长
|
|
|
|
|
SM_FixDepth //设置起点,终点
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class M_GUI_PLOT_EXPORT iWxSegLineLayout : public iDlgBase
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit iWxSegLineLayout(QWidget *parent = NULL);
|
|
|
|
|
~iWxSegLineLayout();
|
|
|
|
|
//设井深度
|
|
|
|
|
void setWellDepthInfo(double dDepthStart, double dDepthEnd, int nSegNum);
|
|
|
|
|
// 初始化
|
|
|
|
|
virtual void initUI();
|
|
|
|
|
//得到深度列表
|
|
|
|
|
QVector<double> getDepthList();
|
|
|
|
|
protected:
|
|
|
|
|
//主
|
|
|
|
|
void initUI_Main();
|
|
|
|
|
//井信息
|
|
|
|
|
void initUI_MainWellInfo();
|
|
|
|
|
//段设置模式
|
|
|
|
|
void initUI_MainSegMethod();
|
|
|
|
|
//按钮
|
|
|
|
|
void initUI_Bt();
|
|
|
|
|
|
|
|
|
|
//设置状态
|
|
|
|
|
void changedMethod();
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
//方法切换
|
|
|
|
|
void slotMethodChanged(int);
|
|
|
|
|
void slotBtnOK();
|
|
|
|
|
void slotBtnCancel();
|
|
|
|
|
protected:
|
|
|
|
|
//起始深度
|
|
|
|
|
double m_dDepthStart;
|
|
|
|
|
//终止深度
|
|
|
|
|
double m_dDepthEnd;
|
|
|
|
|
//段数
|
|
|
|
|
int m_nSegNum;
|
|
|
|
|
//布局
|
|
|
|
|
QVBoxLayout* m_pMainLayout;
|
|
|
|
|
//编辑框
|
|
|
|
|
QLineEdit* m_pLESegStartDepth;
|
|
|
|
|
QLineEdit* m_pLESegEndDepth;
|
|
|
|
|
QLineEdit* m_pLESegSpace;
|
|
|
|
|
|
|
|
|
|
eSetMethod m_eSetMEthod;
|
|
|
|
|
};
|