MyCADInfo.h
上传用户:netltd
上传日期:2013-02-12
资源大小:7234k
文件大小:2k
- /////////////////////////////////////////////////////////////////////////////
- #include "MyDefine.h"
- //////////////////////////////////////////////////////////////////////
- //图纸层类
- class CFileLayer: public CObject
- {
- private:
- CString m_name;
- int m_index; //图层序号
- BOOL m_show; //图层显示标记
- BOOL m_locked; //图层锁定标记
- public:
- CFileLayer(CString m_name, int index, BOOL show, BOOL locked);
- void SetShow();
- void SetLocked();
- void SetIndex(int index);
- void Serialize(CArchive& ar);
- };
- //图纸信息类
- class CFileInfo: public CObject
- {
- public:
- CFileInfo();
- DECLARE_SERIAL(CFileInfo)
- CFileInfo(const CFileInfo& Info);
- operator =(const CFileInfo& Info);
- CString Name;
- CString FileName;
- CString FilePath;
- CSize size;
- public:
- virtual ~CFileInfo();
- void Serialize(CArchive& ar);
- };
- ////////////////////////////////////////////////////////////////////////
- //项目信息类
- class CProjectInfo: public CObject
- {
- public:
- CProjectInfo();
- DECLARE_SERIAL(CProjectInfo)
- int CurrentCommand; //当前有关项目的命令
- CString Name;
- CString FileName;
- CString FilePath;
-
- int FileNum; //项目中的图纸总数
- CFileInfo FileInfo[MAX_FILENUM];
- public:
- // Implementation
- public:
- virtual ~CProjectInfo();
- };
- ////////////////////////////////////////////////////////////////////////////
- // CCADInfo document
- class CCADInfo : public CObject
- {
- // Attributes
- public:
- CCADInfo();
- BOOL IsEmpty; //如果有新建或打开的项目、图纸或元件为FALSE,否则为TRUE
- UINT KindofNew; //项目、图纸或模板标志
- CString ProjectPath; //缺省项目路径
- CString FilePath; //缺省图纸文件路径
-
- int OpenedFileNum;
- int ActiveFileIndex;
- COLORREF PenColor; //缺省画笔颜色
- int LineStyle; //缺省线型
- COLORREF BackColor; //缺省背景色
-
- CFileInfo FileInfo;
- // Operations
- public:
- virtual ~CCADInfo();
- };