tviewanytext Class Reference

#include <dialog.h>

Inheritance diagram for tviewanytext:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void init (const char *title, const char *text, int xx1=50, int yy1=50, int xxsize=360, int yysize=360)
virtual void run (void)
virtual void buttonpressed (int id)
void redraw (void)
int getcapabilities (void)
void repaintscrollbar (void)

Public Attributes

const char * txt
char ok
char scrollbarvisible
char action
int textstart
int rightspace

Detailed Description

Definition at line 60 of file dialog.h.


Member Function Documentation

void tviewanytext::init ( const char *  title,
const char *  text,
int  xx1 = 50,
int  yy1 = 50,
int  xxsize = 360,
int  yysize = 360 
)

Definition at line 920 of file dialog.cpp.

References action, tdlgengine::addbutton(), tdlgengine::addkey(), tdlgengine::addscrollbar(), black, tdialogbox::buildgraphics(), ct_enter, ct_esc, ct_space, dblue, tviewtext::displaytext(), dlg_in3d, tdialogbox::init(), rightspace, scrollbarvisible, tviewtext::setparams(), tdialogbox::setscrollspeed(), tdialogbox::starty, tviewtextwithscrolling::textsizey, tviewtextwithscrolling::textsizeycomplete, textstart, tdialogbox::title, tviewtext::tvt_dispactive, tviewtext::tvt_starty, tviewtext::tvt_yp, txt, tdialogbox::windowstyle, tdlgengine::x1, tdlgengine::xsize, tdlgengine::y1, and tdlgengine::ysize.

Referenced by executeUserAction(), tloadBImap::LoadFromFile(), UnitTypeTransformation::run(), and viewVisibilityStatistics().

void tviewanytext::run ( void   )  [virtual]

Reimplemented from tdialogbox.

Definition at line 1009 of file dialog.cpp.

References action, tviewtextwithscrolling::checkscrolling(), mousevisible(), tdlgengine::prntkey, tdialogbox::run(), and txt.

Referenced by executeUserAction(), tloadBImap::LoadFromFile(), UnitTypeTransformation::run(), viewjournal(), and viewVisibilityStatistics().

void tviewanytext::buttonpressed ( int  id  )  [virtual]

Reimplemented from tdlgengine.

Definition at line 999 of file dialog.cpp.

References action, tdlgengine::buttonpressed(), and tviewtext::displaytext().

void tviewanytext::redraw ( void   )  [virtual]

Reimplemented from tdialogbox.

Definition at line 975 of file dialog.cpp.

References activefontsettings, tfontsettings::background, black, tfontsettings::color, dblue, tviewtext::displaytext(), tfontsettings::font, tfontsettings::height, tfontsettings::justify, lefttext, tfontsettings::length, linesshown, tdialogbox::rahmen(), tdialogbox::redraw(), rightspace, schriften, tviewtext::setpos(), Schriften::smallarial, tviewtextwithscrolling::textsizey, textstart, tdlgengine::x1, tdlgengine::xsize, tdlgengine::y1, and tdlgengine::ysize.

int tviewanytext::getcapabilities ( void   )  [inline, virtual]

Reimplemented from tdialogbox.

Definition at line 76 of file dialog.h.

void tviewanytext::repaintscrollbar ( void   )  [virtual]

Implements tviewtextwithscrolling.

Definition at line 969 of file dialog.cpp.

References tdialogbox::enablebutton().


Member Data Documentation

const char* tviewanytext::txt

Definition at line 62 of file dialog.h.

Referenced by init(), and run().

char tviewanytext::ok

Definition at line 63 of file dialog.h.

char tviewanytext::scrollbarvisible

Definition at line 65 of file dialog.h.

Referenced by init().

char tviewanytext::action

Definition at line 66 of file dialog.h.

Referenced by buttonpressed(), init(), and run().

int tviewanytext::textstart

Definition at line 69 of file dialog.h.

Referenced by init(), and redraw().

int tviewanytext::rightspace

Definition at line 70 of file dialog.h.

Referenced by init(), and redraw().


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