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.

27 lines
1004 B
C++

#pragma once
#include "GlobalDefine.h"
class CPropertie;
//所有模块--属性的映射管理
class CPropertieMgr
{
public:
CPropertieMgr(void);
~CPropertieMgr(void);
void Insert(CMFCPropertyGridProperty* p1,CPropertie* p2);
void OnPropertyChanged(LPARAM lParam);
void DelAllPropertie();
void SetSaveAllPropertie(bool b){m_bSaveAllPropertie = b;};
void SavePropertieByName(vector<CString> &PropertieNameVec);
void SaveAllPropertieToTxtFile(CString FilePath);
private:
void DelAllPropertieVec();
private:
map<CMFCPropertyGridProperty*,CPropertie*> m_PropertieValMap;//保存变量和属性映射的容器
bool m_bSaveAllPropertie;//保存所有需要存储的属性
vector<CPropertie*> m_AllPropertieVec;//保存所有需要存储的属性(用来强制保存属性)
};
extern CPropertieMgr gDevicePropertieMgr;
extern CPropertieMgr gDrawPropertieMgr;//绘制属性管理