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.
75 lines
1.5 KiB
C++
75 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include "iWxPseudoCSub.h"
|
|
|
|
namespace Ui {
|
|
class iWxPseudoCSubInput;
|
|
}
|
|
|
|
class M_TOOL_PVT_EXPORT iWxPseudoCSubInput : public iWxPvtBase
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit iWxPseudoCSubInput(QString sMethod, QWidget *parent = 0);
|
|
~iWxPseudoCSubInput();
|
|
|
|
// 外部调用
|
|
virtual void initUI();
|
|
|
|
// 外传
|
|
void setOtherParas(QMap<QString, double>& maps);
|
|
|
|
// 文件标识
|
|
virtual QString getFilePvtTag();
|
|
|
|
//
|
|
double getSpecialV(QString s);
|
|
|
|
protected:
|
|
|
|
// 默认值
|
|
virtual void initDefault();
|
|
|
|
void buildSignals();
|
|
|
|
// 填入最大最小的单位
|
|
void fillUnitOfMaxMin();
|
|
|
|
// // 初始化
|
|
// virtual void initLabels();
|
|
// virtual void initUI_Tops();
|
|
// virtual QWidget* initUI_Chart();
|
|
// virtual QWidget* initUI_TableView();
|
|
// virtual void initPsInfo(iPseudoCInfo*& pInfo);
|
|
|
|
// // 表格及图形刷新
|
|
// virtual void freshChartByTableChange();
|
|
// // 对图形进行最后调整
|
|
// virtual void adjustPlots(bool bForceLineVisible = false);
|
|
|
|
signals:
|
|
void sigInputRefresh(bool, VVecDouble*);
|
|
|
|
private slots:
|
|
void slotCbxUnitMaxMinChanged(const QString s);
|
|
void slotCompSubChanged(QMap<QString, double>& map);
|
|
|
|
void on_btnComposition_clicked();
|
|
void on_btnRun_clicked();
|
|
|
|
protected:
|
|
|
|
Ui::iWxPseudoCSubInput *ui;
|
|
|
|
QString m_sLastUnitMaxMin;
|
|
QMap<QString, double> m_mapOthers;
|
|
|
|
|
|
QMap<QString, double> m_mapComps;
|
|
|
|
// 保存所有的计算结果
|
|
VVecDouble m_vvecResults;
|
|
};
|