Planeshift
|
#include <pawstextbox.h>
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< PictureInfo > | picsInfo |
Hold all the info parse from xml document. |
Definition at line 1022 of file pawstextbox.h.
pawsDocumentView::pawsDocumentView | ( | ) |
pawsDocumentView::pawsDocumentView | ( | const pawsDocumentView & | origin | ) |
virtual pawsDocumentView::~pawsDocumentView | ( | ) | [virtual] |
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
text | The xml content defined what to be display in the view |
Process the <content type="pic"></content> node in the xml.
Process the <content type="pic"></content> node in the xml
node | A <content type="pic"></content> 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>
text | The xml content defined what to be display in the view |
Reimplemented from pawsMultiLineTextBox.
csArray<PictureInfo> pawsDocumentView::picsInfo [protected] |
Hold all the info parse from xml document.
Definition at line 1066 of file pawstextbox.h.