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.

38 lines
1.3 KiB
C

#pragma once
#include "module.h"
#include "Template.h"
#include "LabVecRang.h"
class CTemplateMgr :public CModule
{
public:
CTemplateMgr(void);
~CTemplateMgr(void);
virtual void OnAppInitialize();
virtual MODULE GetModuleType(){return _TEMPLATE_PROP;};
virtual CMFCPropertyGridProperty *CreatGridProperty();
virtual void WriteWorkFileExt(vector<CLab> &LabVec);
virtual void ReadWorkFile(CLabVecRang &LabVecRang);
virtual void Draw(CDC* pDC);
void BindCurTemp();
bool IsUseObjList(){return m_bUseObjList;};
bool IsbClearOldObj(){return m_bClearOldObj;};
void SetbClearOldObj(bool b){m_bClearOldObj = b;};
void EditTemp(int idx);
void SetTempRect(int idx,DbRect &rect,bool bCircle);
void ClearTempNull();
void BindNullTemp();
void CollectWorkData(int idx,vector<vector<Dbxy>> &vec);
CObjContainer &GetTemplateZeroObjContainer();
private:
vector<CTemplate> m_TempVec;//<2F>ɱ༭ģ<E0BCAD><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
CTemplate m_TempNull;//һ<><D2BB><EFBFBD>յ<EFBFBD>ģ<EFBFBD><C4A3>
int m_CurTempIdx;//<2F><>ǰ<EFBFBD>༭ģ<E0BCAD><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ(-1<><31>ʾû<CABE><C3BB>Ҫ<EFBFBD><EFBFBD><E0BCAD>ģ<EFBFBD><C4A3>)
bool m_bUseObjList;//<2F>Ƿ<EFBFBD>ʹ<EFBFBD>ö<EFBFBD><C3B6><EFBFBD><EFBFBD>б<EFBFBD>
bool m_bClearOldObj;//<2F><>ȡ<EFBFBD>ļ<EFBFBD>ʱ<EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɵ<EFBFBD>obj <20><><EFBFBD><EFBFBD>
};
extern CTemplateMgr *gTemplateMgr;