DebugTreeDlg Class Reference

#include <dbugtree.h>

Inheritance diagram for DebugTreeDlg:

DialogOp Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 DebugTreeDlg ()
 ~DebugTreeDlg ()
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.

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 void TweeDump (BaseDocument *DocToDump=NULL)
static void DumpSubTree (Node *pSubTree, INT32 FromParent=0, INT32 MaxDepth=9999)
static CDlgResID IDD ()

Private Member Functions

INT32 DisplayNodesChildren (Node *pNode, INT32 ListIndex, BOOL AddOnly=FALSE)
INT32 GetTreeDepth (Node *pNode)
void ShowNodeDebugInfo (INT32 ListIndex)
void ShowNodeDebugInfoForNode (Node *pNode)
void ExpandTree ()
void DumpTree ()
void Refresh ()
void Initialise ()
 Does any Operation initialisation necessary. Declares an Operation INI setting.
void GetTree ()
void DeInit ()
BOOL ShouldBeHidden (Node *)
BOOL IsChildOfHiddenNode (Node *)
BOOL HasChildren (Node *pNode)
void AddNode (Node *pNode, INT32 Index, INT32 Depth, BOOL HasChildren, BOOL ChildrenAreDisplayed, BOOL IsAHiddenNode, BOOL IsHidden)
void RemoveNode (INT32 Index)
void UpdateNode (INT32 Index, StringBase *NewText)
BOOL IsAHiddenNode (Node *pNode)
void ShowHidden (BOOL)
INT32 DeleteNode (INT32 Index, BOOL Recurse=FALSE, INT32 Count=0)
CTreeItemID AddOneItem (CTreeItemID hParent, const StringBase &str, CTreeItemID hInsAfter, INT32 iImage, Node *pNode)
CTreeItemID AddItemToNewTreeControl (CTreeItemID hParentItem, CTreeItemID hInsAfter, Node *pNodeToAdd, BOOL bAddChildren=TRUE)
BOOL InitialiseNewTreeControl (void)
INT32 GetImageForNode (Node *pNode)
BOOL GetInfoFromTreeItem (CTreeItemID hItem, Node **pNode, size_t *pChildren)
void DumpTreeTree ()
void ExpandNewTree ()
void RefreshNewTree ()

Private Attributes

StringBasem_pstrDetails
INT32 m_idxNode
INT32 m_idxAttribute
INT32 m_idxRenderableInk
INT32 m_idxRenderablePaper
INT32 m_idxInsertionNode
INT32 m_idxHiddenNode
INT32 m_idxSentinelNode
INT32 m_idxUserAttr
INT32 m_idxSetProperty

Static Private Attributes

static BOOL s_bShowHiddenNodes
static BOOL s_bSelectionOnly
static BOOL s_bExpandClicked

Detailed Description

Definition at line 111 of file dbugtree.h.


Constructor & Destructor Documentation

DebugTreeDlg::DebugTreeDlg  ) 
 

DebugTreeDlg::~DebugTreeDlg  ) 
 


Member Function Documentation

CTreeItemID DebugTreeDlg::AddItemToNewTreeControl CTreeItemID  hParentItem,
CTreeItemID  hInsAfter,
Node pNodeToAdd,
BOOL  bAddChildren = TRUE
[private]
 

void DebugTreeDlg::AddNode Node pNode,
INT32  Index,
INT32  Depth,
BOOL  HasChildren,
BOOL  ChildrenAreDisplayed,
BOOL  IsAHiddenNode,
BOOL  IsHidden
[private]
 

CTreeItemID DebugTreeDlg::AddOneItem CTreeItemID  hParent,
const StringBase str,
CTreeItemID  hInsAfter,
INT32  iImage,
Node pNode
[private]
 

BOOL DebugTreeDlg::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 DebugTreeDlg::DeInit  )  [private]
 

INT32 DebugTreeDlg::DeleteNode INT32  Index,
BOOL  Recurse = FALSE,
INT32  Count = 0
[private]
 

INT32 DebugTreeDlg::DisplayNodesChildren Node pNode,
INT32  ListIndex,
BOOL  AddOnly = FALSE
[private]
 

void DebugTreeDlg::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.

static void DebugTreeDlg::DumpSubTree Node pSubTree,
INT32  FromParent = 0,
INT32  MaxDepth = 9999
[static]
 

void DebugTreeDlg::DumpTree  )  [private]
 

void DebugTreeDlg::DumpTreeTree  )  [private]
 

void DebugTreeDlg::ExpandNewTree  )  [private]
 

void DebugTreeDlg::ExpandTree  )  [private]
 

INT32 DebugTreeDlg::GetImageForNode Node pNode  )  [private]
 

BOOL DebugTreeDlg::GetInfoFromTreeItem CTreeItemID  hItem,
Node **  pNode,
size_t *  pChildren
[private]
 

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

void DebugTreeDlg::GetTree  )  [private]
 

INT32 DebugTreeDlg::GetTreeDepth Node pNode  )  [private]
 

BOOL DebugTreeDlg::HasChildren Node pNode  )  [private]
 

static CDlgResID DebugTreeDlg::IDD  )  [inline, static]
 

Definition at line 128 of file dbugtree.h.

00128 {return _R(IDD_NEWDEBUGTREE);}

static BOOL DebugTreeDlg::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.

void DebugTreeDlg::Initialise  )  [private]
 

Does any Operation initialisation necessary. Declares an Operation INI setting.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/10/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors:

Reimplemented from Operation.

BOOL DebugTreeDlg::InitialiseNewTreeControl void   )  [private]
 

BOOL DebugTreeDlg::IsAHiddenNode Node pNode  )  [private]
 

BOOL DebugTreeDlg::IsChildOfHiddenNode Node  )  [private]
 

MsgResult DebugTreeDlg::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.

void DebugTreeDlg::Refresh  )  [private]
 

void DebugTreeDlg::RefreshNewTree  )  [private]
 

void DebugTreeDlg::RemoveNode INT32  Index  )  [private]
 

BOOL DebugTreeDlg::ShouldBeHidden Node  )  [private]
 

void DebugTreeDlg::ShowHidden BOOL   )  [private]
 

void DebugTreeDlg::ShowNodeDebugInfo INT32  ListIndex  )  [private]
 

void DebugTreeDlg::ShowNodeDebugInfoForNode Node pNode  )  [private]
 

static void DebugTreeDlg::TweeDump BaseDocument DocToDump = NULL  )  [static]
 

void DebugTreeDlg::UpdateNode INT32  Index,
StringBase NewText
[private]
 


Member Data Documentation

INT32 DebugTreeDlg::m_idxAttribute [private]
 

Definition at line 173 of file dbugtree.h.

INT32 DebugTreeDlg::m_idxHiddenNode [private]
 

Definition at line 177 of file dbugtree.h.

INT32 DebugTreeDlg::m_idxInsertionNode [private]
 

Definition at line 176 of file dbugtree.h.

INT32 DebugTreeDlg::m_idxNode [private]
 

Definition at line 172 of file dbugtree.h.

INT32 DebugTreeDlg::m_idxRenderableInk [private]
 

Definition at line 174 of file dbugtree.h.

INT32 DebugTreeDlg::m_idxRenderablePaper [private]
 

Definition at line 175 of file dbugtree.h.

INT32 DebugTreeDlg::m_idxSentinelNode [private]
 

Definition at line 178 of file dbugtree.h.

INT32 DebugTreeDlg::m_idxSetProperty [private]
 

Definition at line 180 of file dbugtree.h.

INT32 DebugTreeDlg::m_idxUserAttr [private]
 

Definition at line 179 of file dbugtree.h.

StringBase* DebugTreeDlg::m_pstrDetails [private]
 

Definition at line 166 of file dbugtree.h.

BOOL DebugTreeDlg::s_bExpandClicked [static, private]
 

Definition at line 169 of file dbugtree.h.

BOOL DebugTreeDlg::s_bSelectionOnly [static, private]
 

Definition at line 168 of file dbugtree.h.

BOOL DebugTreeDlg::s_bShowHiddenNodes [static, private]
 

Definition at line 167 of file dbugtree.h.


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