Core.h
资源名称:44757463.rar [点击查看]
上传用户:lj3531212
上传日期:2007-06-18
资源大小:346k
文件大小:1k
源码类别:
绘图程序
开发平台:
Visual C++
- // Core.h: interface for the CCore class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CORE_H__6382878A_2BED_4F5B_B767_35CC87A5E2B0__INCLUDED_)
- #define AFX_CORE_H__6382878A_2BED_4F5B_B767_35CC87A5E2B0__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "GraphSoftView.h"
- #include "GraphSoftDoc.h"
- #include "Shape.h"
- class CCoreLog;
- class CUND_Base;
- class CCore
- {
- public:
- class CGraphSoftDoc* m_pDoc;
- class CGraphSoftView* m_pView;
- class CCoreLog* m_pLog;
- BOOL m_bEnableUndo;
- BOOL m_bSendMessageLog;
- public:
- CCore(CGraphSoftDoc* pDoc,CGraphSoftView* pView);
- virtual ~CCore();
- void OnEditUndo(); //
- void OnEditRedo(); //
- BOOL IsAbleToUndo();
- BOOL IsAbleToRedo();
- void EnableUndo(BOOL bFlag);
- BOOL WriteLogString(CString text);
- inline CCoreLog* GetCoreLog(){ return m_pLog;};
- //
- void AddUndoItem(CUND_Base* pUndo);
- void DelLastUndoItem();
- void DrawGraph(CShape* pShape,BOOL bFlag);
- CShape* GetShapeByID(unsigned long nID);
- void ReMoveShape(unsigned long nID);
- };
- #endif // !defined(AFX_CORE_H__6382878A_2BED_4F5B_B767_35CC87A5E2B0__INCLUDED_)