tviewtext Class Reference

#include <dlg_box.h>

Inheritance diagram for tviewtext:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 tviewtext ()
void setparams (int xx1, int yy1, int xx2, int yy2, const char *ttxt, char clr, char bkgr)
void setpos (int xx1, int yy1, int xx2, int yy2)
void displaytext (void)
void evalcommand (const char **s)
void nextline (int einzug, const char *txtptr)
void displaysingleline (char *t)
void fillline (int x1, int x2)
void setnewlineheight (int h)
virtual ~tviewtext ()

Public Attributes

int tvt_x1
int tvt_y1
int tvt_x2
int tvt_y2
int tvt_xp
int tvt_yp
int tvt_starty
int tvt_color
int tvt_background
int tvt_dispactive
int eeinzug
int aeinzug
int tvt_maxlineheight
const char * tvt_text
char * actline
char * tvt_firstlinebuf
tgraphmodeparameters tvt_firstlinebufparm
int tvt_firstlinebufheight

Protected Types

typedef tstartpointpstartpoint

Protected Attributes

pstartpoint tvt_startpoint
int defaulttextcolor

Classes

struct  tstartpoint

Detailed Description

Definition at line 327 of file dlg_box.h.


Member Typedef Documentation

typedef tstartpoint* tviewtext::pstartpoint [protected]

Definition at line 342 of file dlg_box.h.


Constructor & Destructor Documentation

tviewtext::tviewtext (  ) 

Definition at line 2971 of file dlg_box.cpp.

References tvt_startpoint.

tviewtext::~tviewtext (  )  [virtual]

Definition at line 2977 of file dlg_box.cpp.

References tviewtext::tstartpoint::next, and tvt_startpoint.


Member Function Documentation

void tviewtext::setparams ( int  xx1,
int  yy1,
int  xx2,
int  yy2,
const char *  ttxt,
char  clr,
char  bkgr 
)

Definition at line 2665 of file dlg_box.cpp.

References activefontsettings, aeinzug, tgraphmodeparameters::byteperpix, tgraphmodeparameters::bytesperscanline, defaulttextcolor, eeinzug, tfontsettings::font, tfont::height, tgraphmodeparameters::resolutionx, tgraphmodeparameters::resolutiony, tgraphmodeparameters::scanlinelength, tgraphmodeparameters::scanlinenumber, tvt_background, tvt_color, tvt_dispactive, tvt_firstlinebufheight, tvt_firstlinebufparm, tvt_maxlineheight, tvt_startpoint, tvt_starty, tvt_text, tvt_x1, tvt_x2, tvt_y1, tvt_y2, and tgraphmodeparameters::windowstatus.

Referenced by thelpsystem::init(), and tviewanytext::init().

void tviewtext::setpos ( int  xx1,
int  yy1,
int  xx2,
int  yy2 
)

Definition at line 2657 of file dlg_box.cpp.

References tvt_x1, tvt_x2, tvt_y1, and tvt_y2.

Referenced by thelpsystem::buildgraphics(), and tviewanytext::redraw().

void tviewtext::displaytext ( void   ) 

Definition at line 2693 of file dlg_box.cpp.

References activefontsettings, actline, tviewtext::tstartpoint::aeinzug, aeinzug, tviewtext::tstartpoint::background, tfontsettings::background, bar(), tfontsettings::color, defaulttextcolor, displaysingleline(), tviewtext::tstartpoint::eeinzug, eeinzug, evalcommand(), tviewtext::tstartpoint::font, tfontsettings::font, gettextwdth(), tviewtext::tstartpoint::height, tfontsettings::height, tfont::height, tfontsettings::justify, lefttext, tfontsettings::length, tgraphmodeparameters::linearaddress, tviewtext::tstartpoint::maxlineheight, tviewtext::tstartpoint::next, nextline(), npop, npush, s1, s5, schriften, Schriften::smallarial, tviewtext::tstartpoint::textcolor, tviewtext::tstartpoint::textpointer, tvt_background, tvt_color, tvt_dispactive, tvt_firstlinebuf, tvt_firstlinebufheight, tvt_firstlinebufparm, tvt_maxlineheight, tvt_startpoint, tvt_starty, tvt_text, tvt_x1, tvt_x2, tvt_xp, tvt_y1, tvt_y2, tvt_yp, tviewtext::tstartpoint::xpos, and tviewtext::tstartpoint::ypos.

Referenced by thelpsystem::buttonpressed(), tviewanytext::buttonpressed(), tviewtextwithscrolling::checkscrolling(), thelpsystem::init(), tviewanytext::init(), tviewanytext::redraw(), and thelpsystem::run().

void tviewtext::evalcommand ( const char **  s  ) 

Definition at line 2826 of file dlg_box.cpp.

References activefontsettings, aeinzug, Schriften::arial8, atoi(), tfontsettings::background, tfontsettings::color, eeinzug, fillline(), tfontsettings::font, tfontsettings::height, tfont::height, nextline(), s3, s4, schriften, setnewlineheight(), Schriften::smallarial, strnicmp, tvt_background, tvt_color, tvt_x1, and tvt_xp.

Referenced by displaytext().

void tviewtext::nextline ( int  einzug,
const char *  txtptr 
)

Definition at line 2592 of file dlg_box.cpp.

References activefontsettings, actline, aeinzug, tviewtext::tstartpoint::aeinzug, tviewtext::tstartpoint::background, eeinzug, tviewtext::tstartpoint::eeinzug, fillline(), tfontsettings::font, tviewtext::tstartpoint::font, tfont::height, tfontsettings::height, tviewtext::tstartpoint::height, tviewtext::tstartpoint::maxlineheight, tviewtext::tstartpoint::next, tviewtext::tstartpoint::textcolor, tviewtext::tstartpoint::textpointer, tvt_background, tvt_color, tvt_dispactive, tvt_maxlineheight, tvt_startpoint, tvt_x1, tvt_x2, tvt_xp, tvt_yp, tviewtext::tstartpoint::xpos, and tviewtext::tstartpoint::ypos.

Referenced by displaytext(), and evalcommand().

void tviewtext::displaysingleline ( char *  t  ) 

Definition at line 2622 of file dlg_box.cpp.

References activefontsettings, agmp, gettextwdth(), tfontsettings::height, tfontsettings::length, npop, npush, putimageprt(), showtext2(), tvt_dispactive, tvt_firstlinebuf, tvt_firstlinebufheight, tvt_firstlinebufparm, tvt_starty, tvt_x1, tvt_x2, tvt_xp, tvt_y1, tvt_y2, and tvt_yp.

Referenced by displaytext().

void tviewtext::fillline ( int  x1,
int  x2 
)

Definition at line 2574 of file dlg_box.cpp.

References activefontsettings, bar(), tfontsettings::height, tvt_background, tvt_dispactive, tvt_maxlineheight, tvt_starty, tvt_y1, tvt_y2, and tvt_yp.

Referenced by evalcommand(), and nextline().

void tviewtext::setnewlineheight ( int  h  ) 

Definition at line 2547 of file dlg_box.cpp.

References activefontsettings, bar(), tfontsettings::font, tfont::height, tfontsettings::height, tvt_background, tvt_dispactive, tvt_maxlineheight, tvt_starty, tvt_x1, tvt_xp, tvt_y1, tvt_y2, and tvt_yp.

Referenced by evalcommand().


Member Data Documentation

int tviewtext::tvt_x1

Definition at line 357 of file dlg_box.h.

Referenced by displaysingleline(), displaytext(), evalcommand(), nextline(), setnewlineheight(), setparams(), and setpos().

int tviewtext::tvt_y1

Definition at line 357 of file dlg_box.h.

Referenced by displaysingleline(), displaytext(), fillline(), setnewlineheight(), setparams(), and setpos().

int tviewtext::tvt_x2

Definition at line 357 of file dlg_box.h.

Referenced by displaysingleline(), displaytext(), nextline(), setparams(), and setpos().

int tviewtext::tvt_y2

Definition at line 357 of file dlg_box.h.

Referenced by displaysingleline(), displaytext(), fillline(), setnewlineheight(), setparams(), and setpos().

int tviewtext::tvt_xp

Definition at line 357 of file dlg_box.h.

Referenced by displaysingleline(), displaytext(), evalcommand(), nextline(), and setnewlineheight().

int tviewtext::tvt_yp

Definition at line 357 of file dlg_box.h.

Referenced by displaysingleline(), displaytext(), fillline(), thelpsystem::init(), tviewanytext::init(), nextline(), and setnewlineheight().

int tviewtext::tvt_starty

Definition at line 357 of file dlg_box.h.

Referenced by tviewtextwithscrolling::checkscrolling(), displaysingleline(), displaytext(), fillline(), thelpsystem::init(), tviewanytext::init(), setnewlineheight(), and setparams().

int tviewtext::tvt_color

Definition at line 358 of file dlg_box.h.

Referenced by displaytext(), evalcommand(), nextline(), and setparams().

int tviewtext::tvt_background

Definition at line 358 of file dlg_box.h.

Referenced by displaytext(), evalcommand(), fillline(), nextline(), setnewlineheight(), and setparams().

int tviewtext::tvt_dispactive

Definition at line 359 of file dlg_box.h.

Referenced by displaysingleline(), displaytext(), fillline(), thelpsystem::init(), tviewanytext::init(), nextline(), setnewlineheight(), and setparams().

int tviewtext::eeinzug

Definition at line 360 of file dlg_box.h.

Referenced by displaytext(), evalcommand(), nextline(), and setparams().

int tviewtext::aeinzug

Definition at line 360 of file dlg_box.h.

Referenced by displaytext(), evalcommand(), nextline(), and setparams().

int tviewtext::tvt_maxlineheight

Definition at line 361 of file dlg_box.h.

Referenced by displaytext(), fillline(), nextline(), setnewlineheight(), and setparams().

const char* tviewtext::tvt_text

Definition at line 362 of file dlg_box.h.

Referenced by displaytext(), and setparams().

char* tviewtext::actline

Definition at line 363 of file dlg_box.h.

Referenced by displaytext(), and nextline().

char* tviewtext::tvt_firstlinebuf

Definition at line 364 of file dlg_box.h.

Referenced by displaysingleline(), and displaytext().

tgraphmodeparameters tviewtext::tvt_firstlinebufparm

Definition at line 365 of file dlg_box.h.

Referenced by displaysingleline(), displaytext(), and setparams().

int tviewtext::tvt_firstlinebufheight

Definition at line 366 of file dlg_box.h.

Referenced by displaysingleline(), displaytext(), and setparams().

pstartpoint tviewtext::tvt_startpoint [protected]

Definition at line 370 of file dlg_box.h.

Referenced by displaytext(), nextline(), setparams(), tviewtext(), and ~tviewtext().

int tviewtext::defaulttextcolor [protected]

Definition at line 371 of file dlg_box.h.

Referenced by displaytext(), and setparams().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:58 2012 for Advanced Strategic Command by  doxygen 1.5.1