www.pudn.com > 44757463.rar > Core.h


// 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_)