|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
#include <QVariant>
|
|
|
|
|
|
|
|
|
|
// Check状态模式,默认为0
|
|
|
|
|
enum ActionCheckMode
|
|
|
|
|
{
|
|
|
|
|
ACM_Default = 0,// 0-点击之后无状态,只是单纯的Action,比如 加载压力文件
|
|
|
|
|
ACM_Instant, // 1:点击之后无状态,但需要把其它Checked去除,并且回归初始状态,如 恢复撤销、放大、缩小、原始状态
|
|
|
|
|
ACM_MouseDelay, // 2: 点击之后有状态,但需要把其它Checked去除,一旦操作完成后,回归初始状态,如 插入点、插入特征线等
|
|
|
|
|
ACM_Continuing, // 3:持续的状态,比如 水平缩放/垂直缩放,Move,框选缩放等,点击后,保持Check状态,一直到二次点击或点击其它
|
|
|
|
|
ACM_Switch, // 4: 开关类的按钮状态,比如显示十字线,按下为开、再次按下为关,不影响其它按钮状态
|
|
|
|
|
ACM_Unknown // 5:其它(TODO)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 打印页面
|
|
|
|
|
enum PrintZoomMode
|
|
|
|
|
{
|
|
|
|
|
PZM_Original, //原始大小
|
|
|
|
|
PZM_FitWidth, //整宽
|
|
|
|
|
PZM_FitPage //整页
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 解释参数应用场合
|
|
|
|
|
enum ParaUseMode
|
|
|
|
|
{
|
|
|
|
|
PUM_Free = 0, // 0-适用所有,不需配置
|
|
|
|
|
PUM_Fit, // 1:仅仅适用处理拟合
|
|
|
|
|
PUM_Design, // 2:仅仅适用试井设计
|
|
|
|
|
PUM_ShowBySwap, // 3:可以显示可以不显示,通过按钮控制
|
|
|
|
|
PUM_ShowAndResult,// 4:显示,不参与拟合 显示到结果(界面显示,拟合不拟合,结果显示)
|
|
|
|
|
PUM_Hide, // 5:不显示,不参与拟合,不显示到结果中(如 混合黏度)
|
|
|
|
|
PUM_Show, // 6: 显示,不参与拟合,不显示到结果中(孔隙,厚度非job里面)
|
|
|
|
|
PUM_Result, // 7: 不显示,不参与拟合,显示到结果中(探测半径、分流率)
|
|
|
|
|
// 20210908 Added
|
|
|
|
|
PUM_MultiPhase, // 8: 对于多相显示,单相不显示的情况
|
|
|
|
|
PUM_Unknown
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 子窗体布局模式
|
|
|
|
|
enum WndLayoutMode
|
|
|
|
|
{
|
|
|
|
|
WLM_Vert = 0, //竖直布局,按照从左往右,全部竖直摆放
|
|
|
|
|
WLM_Hori, //水平布局,按照从上到下,全部水平摆放
|
|
|
|
|
WLM_Cell, //网格化,均匀布局(类似平铺)
|
|
|
|
|
WLM_Cascade, //累叠式布局
|
|
|
|
|
WLM_UNKNOW //不知道类型
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// iGuiConfig中各种窗体
|
|
|
|
|
enum ConfigWxType
|
|
|
|
|
{
|
|
|
|
|
CWT_Base = 0, //基础界面(左侧树、右侧StackedWidget)
|
|
|
|
|
CWT_Sys, //系统基础(语言、样式表、自动保存、三桶油标准等)
|
|
|
|
|
CWT_Unit, //单位管理
|
|
|
|
|
CWT_PlotTemplate, //绘图模板管理
|
|
|
|
|
CWT_DefaultValue, //默认值配置管理工具
|
|
|
|
|
CWT_ModelParas, //模型参数管理
|
|
|
|
|
CWT_PtyManager, //属性配置管理工具
|
|
|
|
|
CWT_BtnCmds, //功能按钮管理
|
|
|
|
|
CWT_Icons, //图标及背景图片管理
|
|
|
|
|
CWT_Paths, //成果路径管理
|
|
|
|
|
CWT_AlgoSetting, //算法配置
|
|
|
|
|
CWT_XpfEdit, //XpfEdit
|
|
|
|
|
CWT_Help, //帮助及提示
|
|
|
|
|
|
|
|
|
|
CWT_Unknown
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 拟合类型
|
|
|
|
|
enum DataFittingType
|
|
|
|
|
{
|
|
|
|
|
EXP = 0,//0,指数
|
|
|
|
|
LINE, //1 线性
|
|
|
|
|
LOG, //2 对数
|
|
|
|
|
POLY, //3 一元多次
|
|
|
|
|
POW //4 乘幂
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 坐标轴类型
|
|
|
|
|
enum AxisType
|
|
|
|
|
{
|
|
|
|
|
AXIS_Log = 0, //对数(double)
|
|
|
|
|
AXIS_Linear, //线性(double)
|
|
|
|
|
AXIS_Int, //整形
|
|
|
|
|
AXIS_Date, //日期
|
|
|
|
|
AXIS_Str, //字符串
|
|
|
|
|
AXIS_Unknown
|
|
|
|
|
};
|
|
|
|
|
#define AXIS_Double AXIS_Linear
|
|
|
|
|
|
|
|
|
|
// 坐标轴在图形中的位置,
|
|
|
|
|
enum AxisPos
|
|
|
|
|
{
|
|
|
|
|
AP_Left = 0,//左侧(y)
|
|
|
|
|
AP_Top, //上侧(x)
|
|
|
|
|
AP_Right, //右侧(y)
|
|
|
|
|
AP_Bottom, //下侧(x)
|
|
|
|
|
AP_Unknown
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 对于对象的HitTest模式
|
|
|
|
|
enum ObjHitOption
|
|
|
|
|
{
|
|
|
|
|
OHO_Point = 0,//击中了点,需要记录第几个点
|
|
|
|
|
OHO_Bound, //击中了边,需要记录第几条边
|
|
|
|
|
OHO_Inner, //击中了内部,如多边形内部、文本内部
|
|
|
|
|
OHO_JustHit, //击中上面三者之一,但根据对象属性,只能选择不能移动
|
|
|
|
|
OHO_None //未击中
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 对于Rect对象的HitTest模式
|
|
|
|
|
enum RectPos
|
|
|
|
|
{
|
|
|
|
|
TOPLEFT = 0,
|
|
|
|
|
TOP,
|
|
|
|
|
TOPRIGHT,
|
|
|
|
|
RIGHT,
|
|
|
|
|
BOTTOMRIGHT,
|
|
|
|
|
BOTTOM,
|
|
|
|
|
BOTTOMLEFT,
|
|
|
|
|
LEFT,
|
|
|
|
|
INNER,
|
|
|
|
|
OUTER
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Object对象类型
|
|
|
|
|
enum PlotObjectType
|
|
|
|
|
{
|
|
|
|
|
POT_None = 0, //
|
|
|
|
|
|
|
|
|
|
POT_Point, //点,虚拟点
|
|
|
|
|
POT_Line, //线
|
|
|
|
|
POT_LineSlr, //特征线 Special Line
|
|
|
|
|
POT_LineSpecial, //ZXF2024特殊特征线(斜率1和斜率0的两天线合并成一个)
|
|
|
|
|
POT_PointSlr,
|
|
|
|
|
POT_LineParallel,//平行线
|
|
|
|
|
POT_Rect, //矩形
|
|
|
|
|
POT_Polygon, //多边形
|
|
|
|
|
POT_BandV, //竖直Band
|
|
|
|
|
POT_BandH, //水平Band
|
|
|
|
|
POT_Text, //文本
|
|
|
|
|
POT_Image, //图片
|
|
|
|
|
|
|
|
|
|
POT_Curve, //曲线
|
|
|
|
|
POT_CurvePressure,//压力曲线
|
|
|
|
|
POT_CurveDiscrete,//离散曲线(散点)
|
|
|
|
|
POT_CurveFlow, //流量曲线
|
|
|
|
|
|
|
|
|
|
POT_Bar, //柱状图曲线
|
|
|
|
|
POT_Pie, //饼图曲线
|
|
|
|
|
|
|
|
|
|
POT_Traj, //井轨迹
|
|
|
|
|
POT_Layer, //地层线
|
|
|
|
|
POT_Zone, //地层
|
|
|
|
|
POT_Fault, //断层
|
|
|
|
|
POT_FaultPt, //断层点
|
|
|
|
|
POT_TurnPt, //旋转点
|
|
|
|
|
|
|
|
|
|
POT_SubLayer, //小层线
|
|
|
|
|
POT_SubZone, //小层
|
|
|
|
|
|
|
|
|
|
POT_SquareLine, //方波曲线
|
|
|
|
|
POT_SquareLayer, //地层线
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
POT_Unknown
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 绘图视图操作模式
|
|
|
|
|
enum PlotOperationMode
|
|
|
|
|
{
|
|
|
|
|
opNone = 0, //None
|
|
|
|
|
|
|
|
|
|
opZoomRectIn, //放大
|
|
|
|
|
opZoomRectOut, //缩小
|
|
|
|
|
opZoomRectInH, //水平放大
|
|
|
|
|
opZoomRectOutH, //水平缩小
|
|
|
|
|
opZoomRectInV, //竖直放大
|
|
|
|
|
opZoomRectOutV, //竖直缩小
|
|
|
|
|
|
|
|
|
|
opMove, //移动
|
|
|
|
|
|
|
|
|
|
opSelectMulti, //通过框选对象
|
|
|
|
|
|
|
|
|
|
// 20170614
|
|
|
|
|
opHitPoint, //鼠标选中点,然后把x方向的PF曲线上点标记出来
|
|
|
|
|
opResetRect, //把Select、Erase、Exclude的点状态恢复到正常
|
|
|
|
|
|
|
|
|
|
opSelectPoint, //选择点
|
|
|
|
|
opSelectRect, //通过框选选择点
|
|
|
|
|
|
|
|
|
|
opErasePoint, //擦除点,擦除就是删除
|
|
|
|
|
opEraseRect, //通过框选后擦除点
|
|
|
|
|
|
|
|
|
|
opExcludePoint, //排除点,排除是不删除,但不参与回顾
|
|
|
|
|
opExcludeRect, //通过框选后排除点
|
|
|
|
|
|
|
|
|
|
opInsertPoint, //增加点,虚拟点
|
|
|
|
|
opInsertLine, //插入线
|
|
|
|
|
opInsertLinkLine, //插入线
|
|
|
|
|
|
|
|
|
|
opInsertLineSlr, //插入特征线,这是试井专用,考虑不同的斜率,如1/2,0,-1/2等等
|
|
|
|
|
opInsertLineParallel,//插入平行线,这是试井专用,两条线
|
|
|
|
|
opInsertPointSlr, //插入特殊点
|
|
|
|
|
|
|
|
|
|
opInsertRect, //插入矩形
|
|
|
|
|
opInsertPolygon, //插入多边形
|
|
|
|
|
opInsertCurveFree, //插入随意曲线
|
|
|
|
|
opInsertText, //插入文本
|
|
|
|
|
opInsertImage, //插入图片
|
|
|
|
|
opInsertBandV, //插入竖直Band
|
|
|
|
|
opInsertBandH, //插入水平Band
|
|
|
|
|
|
|
|
|
|
//导向用
|
|
|
|
|
opInsertLayer, //插入地层
|
|
|
|
|
opInsertLayerPt, //插入地层旋转点
|
|
|
|
|
opInsertFault, //插入断层
|
|
|
|
|
|
|
|
|
|
opSelectLayer, //选择地层
|
|
|
|
|
opSelectLayerPt, //选择地层旋转点
|
|
|
|
|
|
|
|
|
|
opInsertSquareCurve, //插入层化编辑线
|
|
|
|
|
opAddSquarePt, //添加层化编辑点
|
|
|
|
|
opDelSquarePt, //删除层化编辑点
|
|
|
|
|
|
|
|
|
|
opInsertSquareLayer, //插入地层线
|
|
|
|
|
|
|
|
|
|
opUnknown
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 点选择的状态
|
|
|
|
|
enum PointState
|
|
|
|
|
{
|
|
|
|
|
psNormal = 0, //正常
|
|
|
|
|
psErase, //擦除
|
|
|
|
|
psExclude, //排除,不参与回归
|
|
|
|
|
psSelected, //当前选中
|
|
|
|
|
psInvalid, //不是有效点,如-999
|
|
|
|
|
psErrorEqual, //错误的相等
|
|
|
|
|
psErrorLess, //错误的(比前面时间小)
|
|
|
|
|
psUnkown //
|
|
|
|
|
};
|
|
|
|
|
#define TableRowState PointState
|
|
|
|
|
|
|
|
|
|
// 点模式的绘制形状
|
|
|
|
|
enum ZxDotType
|
|
|
|
|
{
|
|
|
|
|
DTS_NONE = 0, //0
|
|
|
|
|
DTS_UpTriangle,
|
|
|
|
|
DTS_DownTriangle,
|
|
|
|
|
DTS_Circle,
|
|
|
|
|
DTS_Square, //4
|
|
|
|
|
DTS_Diamond,
|
|
|
|
|
DTS_Cross,
|
|
|
|
|
DTS_Plus,
|
|
|
|
|
DTS_Star,
|
|
|
|
|
DTS_LeftTriangle, //9
|
|
|
|
|
DTS_RightTriangle,
|
|
|
|
|
DTS_Rig,
|
|
|
|
|
DTS_TriangleWithLine,
|
|
|
|
|
DTS_CircleWithLine,
|
|
|
|
|
DTS_Arrow //14
|
|
|
|
|
};
|