Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

pawsDocumentView Class Reference

#include <pawstextbox.h>

List of all members.

Public Member Functions

void Draw ()
 Draw the content include text and pictures.
 pawsDocumentView ()
 pawsDocumentView (const pawsDocumentView &origin)
void Resize ()
 Resize a widget based on it's parent's size.
void SetText (const char *text)
 Set the content that would be displayed in the view.
virtual ~pawsDocumentView ()

Protected Member Functions

void OrganizeContent (const char *text)
 Organize the content to display in the view.
unsigned int ProcessPictureInfo (iDocumentNode *node)
 Process the <content type="pic"></content> node in the xml.

Protected Attributes

csArray< PictureInfopicsInfo
 Hold all the info parse from xml document.

Detailed Description

Definition at line 1022 of file pawstextbox.h.


Constructor & Destructor Documentation

pawsDocumentView::pawsDocumentView ( )
pawsDocumentView::pawsDocumentView ( const pawsDocumentView origin)
virtual pawsDocumentView::~pawsDocumentView ( ) [virtual]

Member Function Documentation

void pawsDocumentView::Draw ( ) [virtual]

Draw the content include text and pictures.

Reimplemented from pawsMultiLineTextBox.

void pawsDocumentView::OrganizeContent ( const char *  text) [protected]

Organize the content to display in the view.

Organize the content to display in the view. Text should be in the form of xml style

Parameters:
textThe xml content defined what to be display in the view
unsigned int pawsDocumentView::ProcessPictureInfo ( iDocumentNode *  node) [protected]

Process the <content type="pic"></content> node in the xml.

Process the <content type="pic"></content> node in the xml

Parameters:
nodeA <content type="pic"></content> node
Returns:
How many pictures are defined to be displayed in a row in this node
void pawsDocumentView::Resize ( ) [virtual]

Resize a widget based on it's parent's size.

Reimplemented from pawsMultiLineTextBox.

void pawsDocumentView::SetText ( const char *  text)

Set the content that would be displayed in the view.

Set the content that would be displayed in the view. The text should be in form of xml style as following: <Contents> <Content type="pic" align="0" padding="5 5 5 5" width="32" height="32" src="ButtonSpeak;/paws/real_skin/mouse.png;ButtonOpen;"></Content> <Content type="text">text content</Content> <Content type="pic" align="2" padding="5 5 5 5" width="32" height="32" src="ButtonConstruct;/paws/real_skin/mouse.png;ButtonBanking;"></Content> </Contents>

Parameters:
textThe xml content defined what to be display in the view

Reimplemented from pawsMultiLineTextBox.


Member Data Documentation

Hold all the info parse from xml document.

Definition at line 1066 of file pawstextbox.h.


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