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/iGui/iGuiConfig/iWxConfigModelParas.h

59 lines
1.2 KiB
C++

#pragma once
#include "iWxConfigBase.h"
#include "iParameterGroup.h"
#include "iGuiConfig_global.h"
class iWxTreeBase;
class X_GUI_CONFIG_EXPORT iWxConfigModelParas : public iWxConfigBase
{
Q_OBJECT
public:
explicit iWxConfigModelParas(QWidget *parent = 0);
~iWxConfigModelParas();
// 初始化
virtual void initUI();
// 序列化
virtual void onSerialize(ZxSerializer* ser);
virtual void onDeserialize(ZxSerializer* ser);
virtual void slotLoad();
virtual void slotSave();
// 单个保存
virtual void saveCurrentByAction(QString s);
// 执行
virtual bool runActionBy(QString sName);
private slots:
void slotModelSeriesChanged(QString s);
private:
// 下拉选项
void fillModelSeries(QComboBox* p);
// 根据当前选项获取文件
QString getCurConfigFile(bool bOpenMode = true, QString sObjName = "");
// 树
QTreeWidgetItem* appendSubItem(iParameter* p1,
QTreeWidgetItem* pParent);
// 树型控件的单位项
void fillCbxUnit(QComboBox* p, QString sUnit);
// 从树收集当前数据
void collectData(vecParameterGroupsPtr& vecParaGroups);
private:
iWxTreeBase* m_pTreeWx;
QComboBox* m_pCbxModelSeries;
};