CMXTreeDlg Class Reference

#include <cmxtree.h>

Inheritance diagram for CMXTreeDlg:

DialogOp Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Types

enum  { IDD = _R(IDD_NEWDEBUGTREE) }

Public Member Functions

 CMXTreeDlg ()
 ~CMXTreeDlg ()
MsgResult Message (Msg *Message)
void Do (OpDescriptor *)
 This function should be over-ridden to perform an operation without passing a parameter.
BOOL Create ()
 The create method reserves everything needed to guarantee that the dialog will appear. It returns FALSE if it fails. If any dialog merging was specified (by providing a non-zero value for SubDialogID in the call to the DialogOp constructor) then it will be carried out when this function is called.
void SetFileName (String_256 &FileName)
void SetEndOfFile (BOOL b)
void AddNode (CMXNode *pNode)
void ShowFile (char *pFileName)
void GetTagText (FOURCC ChunkType, String_256 &Str)

Static Public Member Functions

static BOOL Init ()
 Declares a preference that allows you to clear memory in delete().
static OpState GetState (String_256 *, OpDescriptor *)
static CMXTreeDlgGetCurrentCMXTreeDlg ()

Protected Member Functions

BOOL ParseFile (CCFile *pFile)

Private Member Functions

void DeInit ()
void Delete (CMXNode *pNode)
void DeleteTreeInfo ()
void CreateTree ()
void DisplayTree (BOOL ExpandAll)
INT32 AddDisplayNode (CMXNode *pNode, INT32 Index, INT32 Depth, BOOL ExpandAll)
void ShowNodeDebugInfo (INT32 ListIndex)
void ShowNodeDebugInfoForNode (CMXNode *pNode)
CMXNodeInfoGetInfo (INT32 Index)
CMXTreeDlgRecordHandlerFindHandler (FOURCC ChunkType)
void GetTagText (CMXNode *pNode, String_256 &Str)
HTREEITEM AddOneItem (HTREEITEM hParent, TCHAR *pText, HTREEITEM hInsAfter, INT32 iImage, CMXNode *pNode)
HTREEITEM AddItemsToNewTreeControl (HTREEITEM hParentItem, CMXNode *pNodeToAdd)
BOOL InitialiseNewTreeControl (void)
INT32 AddBitmapResourceToImageList (HIMAGELIST hList, UINT32 ResID)
INT32 GetImageForNode (CMXNode *pNode)
BOOL GetInfoFromHTREEITEM (HTREEITEM hItem, CMXNode **pNode, INT32 *pChildren)
void ExpandNewTree ()

Private Attributes

CMXNodepRoot
CMXNodepContextNode
BOOL AddNextAsChild
INT32 Level
INT32 MaxIndex
String_256 FileName
BOOL EndOfFile
DebugTreeInfoTreeInfo
StringBaseEditStr
CMXNodeTypeStatisticsList ListOfNodeTypeStats
HIMAGELIST hNewTreeControlImageList
INT32 m_idxGeneralTag
INT32 m_idxDefineBitmap
INT32 m_idxDefineColour
INT32 m_idxCompression
INT32 m_idxDown
INT32 m_idxUp
INT32 m_idxGroup
INT32 m_idxPage
INT32 m_idxAttribute
INT32 m_idxShape
RIFFFilem_pRIFF
CMXTreeDlgRecordHandlerm_pHandler

Static Private Attributes

static CMXTreeDlgpCurrentCMXTreeDlg

Detailed Description

Definition at line 330 of file cmxtree.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
IDD 

Definition at line 348 of file cmxtree.h.

00348 { IDD = _R(IDD_NEWDEBUGTREE) };  


Constructor & Destructor Documentation

CMXTreeDlg::CMXTreeDlg  ) 
 

CMXTreeDlg::~CMXTreeDlg  ) 
 


Member Function Documentation

INT32 CMXTreeDlg::AddBitmapResourceToImageList HIMAGELIST  hList,
UINT32  ResID
[private]
 

INT32 CMXTreeDlg::AddDisplayNode CMXNode pNode,
INT32  Index,
INT32  Depth,
BOOL  ExpandAll
[private]
 

HTREEITEM CMXTreeDlg::AddItemsToNewTreeControl HTREEITEM  hParentItem,
CMXNode pNodeToAdd
[private]
 

void CMXTreeDlg::AddNode CMXNode pNode  ) 
 

HTREEITEM CMXTreeDlg::AddOneItem HTREEITEM  hParent,
TCHAR pText,
HTREEITEM  hInsAfter,
INT32  iImage,
CMXNode pNode
[private]
 

BOOL CMXTreeDlg::Create void   )  [virtual]
 

The create method reserves everything needed to guarantee that the dialog will appear. It returns FALSE if it fails. If any dialog merging was specified (by providing a non-zero value for SubDialogID in the call to the DialogOp constructor) then it will be carried out when this function is called.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/8/93
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
TRUE if all resources to create the dialog can be successfully allocated. FALSE otherwise

Errors: If the resources cannot be allocated then ERRORIF is called with a Dialog creation failed error message.

See also:
-

Reimplemented from DialogOp.

void CMXTreeDlg::CreateTree  )  [private]
 

void CMXTreeDlg::DeInit  )  [private]
 

void CMXTreeDlg::Delete CMXNode pNode  )  [private]
 

void CMXTreeDlg::DeleteTreeInfo  )  [private]
 

void CMXTreeDlg::DisplayTree BOOL  ExpandAll  )  [private]
 

void CMXTreeDlg::Do OpDescriptor  )  [virtual]
 

This function should be over-ridden to perform an operation without passing a parameter.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/6/94
Parameters:
OpDesc,: A pointer to the OpDescriptor which invoked the operation [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
Operation::DoWithParam

Reimplemented from Operation.

void CMXTreeDlg::ExpandNewTree  )  [private]
 

CMXTreeDlgRecordHandler* CMXTreeDlg::FindHandler FOURCC  ChunkType  )  [private]
 

static CMXTreeDlg* CMXTreeDlg::GetCurrentCMXTreeDlg  )  [inline, static]
 

Definition at line 352 of file cmxtree.h.

00352 { return pCurrentCMXTreeDlg; }

INT32 CMXTreeDlg::GetImageForNode CMXNode pNode  )  [private]
 

CMXNodeInfo* CMXTreeDlg::GetInfo INT32  Index  )  [private]
 

BOOL CMXTreeDlg::GetInfoFromHTREEITEM HTREEITEM  hItem,
CMXNode **  pNode,
INT32 *  pChildren
[private]
 

static OpState CMXTreeDlg::GetState String_256 ,
OpDescriptor
[static]
 

void CMXTreeDlg::GetTagText CMXNode pNode,
String_256 Str
[private]
 

void CMXTreeDlg::GetTagText FOURCC  ChunkType,
String_256 Str
 

static BOOL CMXTreeDlg::Init void   )  [static]
 

Declares a preference that allows you to clear memory in delete().

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
19/4/94
Returns:
TRUE if it worked OK, FALSE if not

Reimplemented from SimpleCCObject.

BOOL CMXTreeDlg::InitialiseNewTreeControl void   )  [private]
 

MsgResult CMXTreeDlg::Message Msg Message  )  [virtual]
 

if (IS_OUR_DIALOG_MSG(Message)) { DialogMsg* Msg = (DialogMsg*)Message; Handle Msg here }

Pass message on to base class for rest of handling. return <BaseClass>Message(Message);

This Pure virtual function will ENSURE

Returns:
Errors: -
See also:
MessageHandler

IS_OUR_DIALOG_MSG

Reimplemented from DialogOp.

BOOL CMXTreeDlg::ParseFile CCFile pFile  )  [protected]
 

void CMXTreeDlg::SetEndOfFile BOOL  b  )  [inline]
 

Definition at line 346 of file cmxtree.h.

00346 { EndOfFile = b; }

void CMXTreeDlg::SetFileName String_256 FileName  ) 
 

void CMXTreeDlg::ShowFile char *  pFileName  ) 
 

void CMXTreeDlg::ShowNodeDebugInfo INT32  ListIndex  )  [private]
 

void CMXTreeDlg::ShowNodeDebugInfoForNode CMXNode pNode  )  [private]
 


Member Data Documentation

BOOL CMXTreeDlg::AddNextAsChild [private]
 

Definition at line 377 of file cmxtree.h.

StringBase* CMXTreeDlg::EditStr [private]
 

Definition at line 385 of file cmxtree.h.

BOOL CMXTreeDlg::EndOfFile [private]
 

Definition at line 382 of file cmxtree.h.

String_256 CMXTreeDlg::FileName [private]
 

Definition at line 381 of file cmxtree.h.

HIMAGELIST CMXTreeDlg::hNewTreeControlImageList [private]
 

Definition at line 402 of file cmxtree.h.

INT32 CMXTreeDlg::Level [private]
 

Definition at line 378 of file cmxtree.h.

CMXNodeTypeStatisticsList CMXTreeDlg::ListOfNodeTypeStats [private]
 

Definition at line 387 of file cmxtree.h.

INT32 CMXTreeDlg::m_idxAttribute [private]
 

Definition at line 411 of file cmxtree.h.

INT32 CMXTreeDlg::m_idxCompression [private]
 

Definition at line 406 of file cmxtree.h.

INT32 CMXTreeDlg::m_idxDefineBitmap [private]
 

Definition at line 404 of file cmxtree.h.

INT32 CMXTreeDlg::m_idxDefineColour [private]
 

Definition at line 405 of file cmxtree.h.

INT32 CMXTreeDlg::m_idxDown [private]
 

Definition at line 407 of file cmxtree.h.

INT32 CMXTreeDlg::m_idxGeneralTag [private]
 

Definition at line 403 of file cmxtree.h.

INT32 CMXTreeDlg::m_idxGroup [private]
 

Definition at line 409 of file cmxtree.h.

INT32 CMXTreeDlg::m_idxPage [private]
 

Definition at line 410 of file cmxtree.h.

INT32 CMXTreeDlg::m_idxShape [private]
 

Definition at line 412 of file cmxtree.h.

INT32 CMXTreeDlg::m_idxUp [private]
 

Definition at line 408 of file cmxtree.h.

CMXTreeDlgRecordHandler* CMXTreeDlg::m_pHandler [private]
 

Definition at line 415 of file cmxtree.h.

RIFFFile* CMXTreeDlg::m_pRIFF [private]
 

Definition at line 414 of file cmxtree.h.

INT32 CMXTreeDlg::MaxIndex [private]
 

Definition at line 379 of file cmxtree.h.

CMXNode* CMXTreeDlg::pContextNode [private]
 

Definition at line 376 of file cmxtree.h.

CMXTreeDlg* CMXTreeDlg::pCurrentCMXTreeDlg [static, private]
 

Definition at line 389 of file cmxtree.h.

CMXNode* CMXTreeDlg::pRoot [private]
 

Definition at line 375 of file cmxtree.h.

DebugTreeInfo* CMXTreeDlg::TreeInfo [private]
 

Definition at line 384 of file cmxtree.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 03:52:45 2007 for Camelot by  doxygen 1.4.4