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 "mGuiJob_global.h"
|
|
|
|
|
|
|
|
|
|
class iModelOption;
|
|
|
|
|
|
|
|
|
|
// 模型示意图
|
|
|
|
|
class M_GUI_JOB_EXPORT iWxModelSketch : public iDlgBase
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit iWxModelSketch(bool bTheoryChart, QWidget *parent = 0);
|
|
|
|
|
~iWxModelSketch();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// 当前选项
|
|
|
|
|
void setOptions(iModelOption* pOption);
|
|
|
|
|
|
|
|
|
|
// 初始化
|
|
|
|
|
virtual void initUI();
|
|
|
|
|
|
|
|
|
|
// 刷新
|
|
|
|
|
virtual void refresh();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
// 初始化
|
|
|
|
|
void initUISketchMode();
|
|
|
|
|
|
|
|
|
|
// 刷新绘图
|
|
|
|
|
void refreshSketchChart(int nCol = -1); //如果-1则全部
|
|
|
|
|
|
|
|
|
|
void fillCbx(QComboBox* p, int nCol);
|
|
|
|
|
|
|
|
|
|
// 绘图
|
|
|
|
|
void drawOneChart(QLabel* p, QString sImg);
|
|
|
|
|
|
|
|
|
|
virtual void paintEvent(QPaintEvent *);
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
|
|
// 模型选项改变,然后刷新相应的辅助信息
|
|
|
|
|
void slotOptionChanged(QString);
|
|
|
|
|
|
|
|
|
|
// 设置透明用(目前只在绘制 理论曲线 时才应用)
|
|
|
|
|
void slotSliderValueChanged(int nValue);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
iModelOption* m_pOption; //外界传入
|
|
|
|
|
bool m_bTheoryChart;
|
|
|
|
|
|
|
|
|
|
QString m_sWbs;
|
|
|
|
|
QString m_sRes;
|
|
|
|
|
QString m_sWel;
|
|
|
|
|
QString m_sBdy;
|
|
|
|
|
|
|
|
|
|
};
|