Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TNode Class Reference

Implements a node of the outline. More...

#include <outline.h>

List of all members.

Public Methods

 TNode (char *aText)
 TNode (char *aText, TNode *aChildren, TNode *aNext, Boolean initialState=True)
virtual ~TNode ()

Public Attributes

TNode* next
char* text
TNode* childList
Boolean expanded


Detailed Description

TOutline objects use records of type TNode to hold the lists of linked strings that form the outline.
See also:
TOutlineViewer

Definition at line 33 of file outline.h.


Constructor & Destructor Documentation

TNode::TNode ( char * aText ) [inline]
 

Creates a node for an outline list.

Definition at line 73 of file outline.h.

TNode::TNode ( char * aText,
TNode * aChildren,
TNode * aNext,
Boolean initialState = True ) [inline]
 

Creates a node for an outline list. Sets the new node's text, childList, and next fields to `aText', `aChildren', and `aNext', respectively.

Definition at line 78 of file outline.h.

TNode::~TNode ( ) [inline, virtual]
 

Disposes of an outline node.

Definition at line 85 of file outline.h.


Member Data Documentation

TNode * TNode::childList
 

Field childList points to the first in a list of subordinate nodes, or holds 0 if there are no items subordinate to the node.

Definition at line 65 of file outline.h.

Boolean TNode::expanded
 

Field expanded is True if the outline view shows the subordinate views listed in childList or False if the subordinate nodes are hidden.

Definition at line 70 of file outline.h.

TNode * TNode::next
 

Field next points to the next node at the same outline level as the current node.

Definition at line 55 of file outline.h.

char * TNode::text
 

Each node record holds the text for that item in the outline in its text field.

Definition at line 60 of file outline.h.


The documentation for this class was generated from the following file:
Generated at Sat Sep 22 20:19:29 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001