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.
nmWATI/Include/mTool/mToolPvt/PseuC/iWxPseudoCSubFit.h

52 lines
1.2 KiB
C++

#pragma once
#include "iWxPseudoCSub.h"
class M_TOOL_PVT_EXPORT iWxPseudoCSubFit : public iWxPseudoCSub
{
Q_OBJECT
public:
explicit iWxPseudoCSubFit(QString sMethod, QWidget *parent = 0);
~iWxPseudoCSubFit();
// 外部调用
virtual void initUI();
protected:
// 初始化
virtual void initUI_Tops();
// 拟合相关设置的初始化
virtual bool isFitItemVisible(int nIndex);
void changeFitUIOf(int nIndex);
void freshExpr(int nIndex, QString s);
bool getFitInfoOf(int nIndex, int& nType, int& nOrder);
// 通用标识
virtual bool isFittingNeeded();
// 表格及图形刷新
virtual void freshChartByTableChange();
virtual void refreshByTopFit();
virtual void fitAndFreshChart(QString sKey, VVecVariant& vvec, bool bFitCurveOnly = false);
protected slots:
// 拟合控件
virtual void slotFitTypeChanged(int index);
virtual void slotOrderChanged(int arg1);
// 拟合
virtual void on_btnRunFit_clicked();
protected:
// 拟合控件,为了方便并支持多组
QVector<QComboBox*> m_vecCbxFitTypes;
QVector<QSpinBox*> m_vecSbxFitOrders;
QVector<QLineEdit*> m_vecTbxFitDescs;
};