Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MagicDoc Class Reference

#include <MagicDoc.h>

List of all members.

Public Member Functions

virtual BOOL OnNewDocument ()
virtual void Serialize (CArchive &ar)
virtual BOOL OnSaveDocument (LPCTSTR lpszPathName)
virtual BOOL OnOpenDocument (LPCTSTR lpszPathName)
virtual void DeleteContents ()
void InitCommandStack ()
void Exec (Command *command)
void Undo ()
void Redo ()
int NumUndo () const
int NumRedo () const
const char * GetUndoName () const
const char * GetRedoName () const
virtual ~MagicDoc ()
SolidGetSolid ()
SelectionGetSelection ()
SelectorGetSelector ()
EditorGetEditor ()
bool ImportFile (LPCTSTR path_name)
bool ExportFile (LPCTSTR path_name)

Protected Member Functions

 MagicDoc ()
afx_msg void OnSurfaceOptimize ()
afx_msg void OnSurfaceExplode ()
afx_msg void OnUpdateSurfaceOptimize (CCmdUI *pCmdUI)
afx_msg void OnUpdateSurfaceExplode (CCmdUI *pCmdUI)

Protected Attributes

Solidsolid
Selectionselection
Selectorselector
Editoreditor
List< Commandcommands
int nundo

Detailed Description

Definition at line 41 of file MagicDoc.h.


Constructor & Destructor Documentation

MagicDoc::MagicDoc ( )
protected

Definition at line 56 of file MagicDoc.cpp.

MagicDoc::~MagicDoc ( )
virtual

Definition at line 65 of file MagicDoc.cpp.


Member Function Documentation

void MagicDoc::DeleteContents ( )
virtual

Definition at line 443 of file MagicDoc.cpp.

void MagicDoc::Exec ( Command command)

Definition at line 83 of file MagicDoc.cpp.

bool MagicDoc::ExportFile ( LPCTSTR  path_name)

Definition at line 383 of file MagicDoc.cpp.

Editor* MagicDoc::GetEditor ( )
inline

Definition at line 84 of file MagicDoc.h.

const char * MagicDoc::GetRedoName ( ) const

Definition at line 125 of file MagicDoc.cpp.

Selection* MagicDoc::GetSelection ( )
inline

Definition at line 82 of file MagicDoc.h.

Selector* MagicDoc::GetSelector ( )
inline

Definition at line 83 of file MagicDoc.h.

Solid* MagicDoc::GetSolid ( )
inline

Definition at line 81 of file MagicDoc.h.

const char * MagicDoc::GetUndoName ( ) const

Definition at line 116 of file MagicDoc.cpp.

bool MagicDoc::ImportFile ( LPCTSTR  path_name)

Definition at line 241 of file MagicDoc.cpp.

void MagicDoc::InitCommandStack ( )

Definition at line 76 of file MagicDoc.cpp.

int MagicDoc::NumRedo ( ) const

Definition at line 110 of file MagicDoc.cpp.

int MagicDoc::NumUndo ( ) const

Definition at line 104 of file MagicDoc.cpp.

BOOL MagicDoc::OnNewDocument ( )
virtual

Definition at line 149 of file MagicDoc.cpp.

BOOL MagicDoc::OnOpenDocument ( LPCTSTR  lpszPathName)
virtual

Definition at line 199 of file MagicDoc.cpp.

BOOL MagicDoc::OnSaveDocument ( LPCTSTR  lpszPathName)
virtual

Definition at line 187 of file MagicDoc.cpp.

void MagicDoc::OnSurfaceExplode ( )
protected

Definition at line 603 of file MagicDoc.cpp.

void MagicDoc::OnSurfaceOptimize ( )
protected

Definition at line 589 of file MagicDoc.cpp.

void MagicDoc::OnUpdateSurfaceExplode ( CCmdUI *  pCmdUI)
protected

Definition at line 612 of file MagicDoc.cpp.

void MagicDoc::OnUpdateSurfaceOptimize ( CCmdUI *  pCmdUI)
protected

Definition at line 598 of file MagicDoc.cpp.

void MagicDoc::Redo ( )

Definition at line 141 of file MagicDoc.cpp.

void MagicDoc::Serialize ( CArchive &  ar)
virtual

Definition at line 167 of file MagicDoc.cpp.

void MagicDoc::Undo ( )

Definition at line 134 of file MagicDoc.cpp.


Member Data Documentation

List<Command> MagicDoc::commands
protected

Definition at line 95 of file MagicDoc.h.

Editor* MagicDoc::editor
protected

Definition at line 93 of file MagicDoc.h.

int MagicDoc::nundo
protected

Definition at line 96 of file MagicDoc.h.

Selection* MagicDoc::selection
protected

Definition at line 91 of file MagicDoc.h.

Selector* MagicDoc::selector
protected

Definition at line 92 of file MagicDoc.h.

Solid* MagicDoc::solid
protected

Definition at line 90 of file MagicDoc.h.


The documentation for this class was generated from the following files: