Advanced Strategic Command
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
tdialogbox Class Reference

#include <dlg_box.h>

Inheritance diagram for tdialogbox:
Inheritance graph
[legend]

Public Member Functions

 tdialogbox ()
 
void init (void)
 
void buildgraphics (void)
 
virtual void changecoordinates (void)
 
virtual void run (void)
 
void done (void)
 
virtual Uint8 checkvalue (int id, void *p)
 
void editfield (pbutton pb)
 
void editfield (int id)
 
void toggleswitch (pbutton pb)
 
virtual void enablebutton (int id)
 
virtual void disablebutton (int id)
 
virtual void execbutton (pbutton pb, char mouse)
 
void showbutton (int id)
 
void hidebutton (int id)
 
void setscrollspeed (char id, int speed)
 
void rebuildtaborder (void)
 
void showtabmark (int b)
 
virtual void setclipping (void)
 
virtual void paint (void)
 
virtual void redrawall (void)
 
virtual void redrawall2 (int xx1, int yy1, int xx2, int yy2)
 
virtual int getcapabilities (void)
 
void repaintdisplay (void)
 
- Public Member Functions inherited from tdlgengine
void addbutton (const char *ltxt, int lx1, int ly1, int lx2, int ly2, int lart, int lstyle, int lid, bool enabled)
 
void addbutton (const char *ltxt, tmouserect rect1, int lart, int lstyle, int lid, bool enabled)
 
void addeingabe (int lid, void *data, int min, int max)
 
void addscrollbar (int lx1, int ly1, int lx2, int ly2, int *numberofitems, int itemsvisible, int *actitem, int lid, int keys)
 
void addscrollbar (tmouserect rec, int *numberofitems, int itemsvisible, int *actitem, int lid, int keys)
 
void addDropDown (int x1, int y1, int x2, int y2, int ID, const char **entries, int entrynum, int *pos)
 
virtual void buttonpressed (int id)
 
void clearkey (char id)
 
void addkey (int id, tkey key)
 
void addmarkedkey (int id, tkey key)
 
pbutton getbutton (int id)
 
virtual ~tdlgengine ()
 

Public Attributes

int textcolor
 
int starty
 
int ms
 
void * tp
 
int imagesaved
 
const char * title
 
int windowstyle
 
ttaborder taborder [100]
 
int tabcount
 
int markedtab
 
int disablecolor
 
int boxstatus
 
- Public Attributes inherited from tdlgengine
pbutton firstbutton
 
tkey taste
 
int prntkey
 

Static Public Attributes

static collategraphicoperationspcgo = NULL
 

Protected Member Functions

virtual void redraw (void)
 
virtual void setvirtualframebuf (void)
 
virtual void copyvirtualframebuf (void)
 
void newknopf (int xx1, int yy1, int xx2, int yy2)
 
void knopfdruck (int xx1, int yy1, int xx2, int yy2)
 
void knopf (int xx1, int yy1, int xx2, int yy2)
 
void newknopfdruck4 (int xx1, int yy1, int xx2, int yy2)
 
void newknopfdruck3 (int xx1, int yy1, int xx2, int yy2)
 
void newknopfdruck2 (int xx1, int yy1, int xx2, int yy2)
 
void newknopfdruck (int xx1, int yy1, int xx2, int yy2)
 
void rahmen (bool invers, int x1, int y1, int x2, int y2)
 
void rahmen (bool invers, tmouserect rect)
 
void rahmen3 (const char *txt, int x1, int y1, int x2, int y2, int style)
 
void bar (tmouserect rect, int color)
 
void bar (int x1, int y1, int x2, int y2, int color)
 
virtual void dispeditstring (char *st, int x1, int y1)
 
void stredit (char *s, int x1, int y1, int wdth, int max)
 
virtual int gettextwdth_stredit (char *txt, pfont font)
 
virtual void lne (int x1, int y1, char *s, int position, int einfuegen)
 
void intedit (int *st, int x1, int y1, int wdth, int min, int max)
 
void paintsurface2 (int xx1, int yy1, int xx2, int yy2)
 
void paintsurface (int xx1, int yy1, int xx2, int yy2)
 
virtual ~tdialogbox ()
 

Protected Attributes

int virtualbufoffset
 
pdialogbox next
 
pdialogbox prev
 
int dlg_mode
 
int knopfsuccessful
 
- Protected Attributes inherited from tdlgengine
int x1
 
int y1
 
int xsize
 
int ysize
 

Static Protected Attributes

static pdialogbox first = NULL
 

Additional Inherited Members

- Public Types inherited from tdlgengine
typedef tbuttonpbutton
 

Detailed Description

Definition at line 154 of file dlg_box.h.

Constructor & Destructor Documentation

tdialogbox::tdialogbox ( )
tdialogbox::~tdialogbox ( )
protectedvirtual

Member Function Documentation

void tdialogbox::bar ( tmouserect  rect,
int  color 
)
protected
void tdialogbox::bar ( int  x1,
int  y1,
int  x2,
int  y2,
int  color 
)
protected

Definition at line 542 of file dlg_box.cpp.

References bar().

void tdialogbox::buildgraphics ( void  )
void tdialogbox::changecoordinates ( void  )
virtual

Definition at line 356 of file dlg_box.cpp.

Uint8 tdialogbox::checkvalue ( int  id,
void *  p 
)
virtual

Reimplemented in MirrorMap, and ResizeMap.

Definition at line 1644 of file dlg_box.cpp.

Referenced by editfield().

void tdialogbox::copyvirtualframebuf ( void  )
protectedvirtual
void tdialogbox::disablebutton ( int  id)
virtual
void tdialogbox::dispeditstring ( char *  st,
int  x1,
int  y1 
)
protectedvirtual

Definition at line 1989 of file dlg_box.cpp.

References showtext2().

Referenced by intedit(), and stredit().

void tdialogbox::done ( void  )
void tdialogbox::editfield ( pbutton  pb)
void tdialogbox::editfield ( int  id)
void tdialogbox::enablebutton ( int  id)
virtual
void tdialogbox::execbutton ( pbutton  pb,
char  mouse 
)
virtual
int tdialogbox::getcapabilities ( void  )
virtual

Reimplemented in EditAiParam, and tviewanytext.

Definition at line 180 of file dlg_box.cpp.

int tdialogbox::gettextwdth_stredit ( char *  txt,
pfont  font 
)
protectedvirtual

Definition at line 2220 of file dlg_box.cpp.

References gettextwdth().

Referenced by stredit().

void tdialogbox::hidebutton ( int  id)
void tdialogbox::init ( void  )
void tdialogbox::intedit ( int *  st,
int  x1,
int  y1,
int  wdth,
int  min,
int  max 
)
protected
void tdialogbox::knopf ( int  xx1,
int  yy1,
int  xx2,
int  yy2 
)
protected

Definition at line 122 of file dlgraph.cpp.

References paintsurface2(), and rahmen().

Referenced by redraw().

void tdialogbox::knopfdruck ( int  xx1,
int  yy1,
int  xx2,
int  yy2 
)
protected
void tdialogbox::lne ( int  x1,
int  y1,
char *  s,
int  position,
int  einfuegen 
)
protectedvirtual

Definition at line 2226 of file dlg_box.cpp.

References activefontsettings, tfontsettings::font, gettextwdth(), tfont::height, xorline(), and tdlgengine::y1.

Referenced by intedit(), and stredit().

void tdialogbox::newknopf ( int  xx1,
int  yy1,
int  xx2,
int  yy2 
)
protected

Definition at line 180 of file dlgraph.cpp.

References paintsurface2(), and rahmen().

Referenced by enablebutton().

void tdialogbox::newknopfdruck ( int  xx1,
int  yy1,
int  xx2,
int  yy2 
)
protected
void tdialogbox::newknopfdruck2 ( int  xx1,
int  yy1,
int  xx2,
int  yy2 
)
protected
void tdialogbox::newknopfdruck3 ( int  xx1,
int  yy1,
int  xx2,
int  yy2 
)
protected

Definition at line 260 of file dlgraph.cpp.

References getimage(), imagesize(), malloc(), putimage(), and rahmen().

Referenced by execbutton().

void tdialogbox::newknopfdruck4 ( int  xx1,
int  yy1,
int  xx2,
int  yy2 
)
protected

Definition at line 283 of file dlgraph.cpp.

References getimage(), imagesize(), malloc(), putimage(), and rahmen().

Referenced by execbutton().

void tdialogbox::paint ( void  )
virtual

Definition at line 292 of file dlg_box.cpp.

References agmp, copyvirtualframebuf(), hgmp, next, redraw(), and setvirtualframebuf().

Referenced by buildgraphics(), redrawall(), redrawall2(), and run().

void tdialogbox::paintsurface ( int  xx1,
int  yy1,
int  xx2,
int  yy2 
)
protected

Definition at line 2501 of file dlg_box.cpp.

References paintsurface2(), tdlgengine::x1, and tdlgengine::y1.

Referenced by enablebutton().

void tdialogbox::paintsurface2 ( int  xx1,
int  yy1,
int  xx2,
int  yy2 
)
protected

Definition at line 2492 of file dlg_box.cpp.

References bar(), dialogtexture, lightgray, and puttexture().

Referenced by disablebutton(), enablebutton(), execbutton(), knopf(), newknopf(), and paintsurface().

void tdialogbox::rahmen ( bool  invers,
int  x1,
int  y1,
int  x2,
int  y2 
)
protected
void tdialogbox::rahmen ( bool  invers,
tmouserect  rect 
)
protected

Definition at line 116 of file dlgraph.cpp.

References rahmen(), tmouserect::x1, tmouserect::x2, tmouserect::y1, and tmouserect::y2.

void tdialogbox::rahmen3 ( const char *  txt,
int  x1,
int  y1,
int  x2,
int  y2,
int  style 
)
protected
void tdialogbox::rebuildtaborder ( void  )
void tdialogbox::redraw ( void  )
protectedvirtual
void tdialogbox::redrawall ( void  )
virtual

Definition at line 224 of file dlg_box.cpp.

References paint(), prev, and repaintDisplay.

void tdialogbox::redrawall2 ( int  xx1,
int  yy1,
int  xx2,
int  yy2 
)
virtual
void tdialogbox::repaintdisplay ( void  )

Definition at line 188 of file dlg_box.cpp.

void tdialogbox::run ( void  )
virtual

Reimplemented in StringEdit, ChooseString, tgetid, thelpsystem, MirrorMap, EditArchivalInformation, tdisplaymessage, tminestrength, tres, EditAiParam, StringSelector, tchoosezoomlevel, ResizeMap, tbi3preferences, BuildingValues, tchoice_dlg, tplayerselall, tstringselect, tchoosetechlevel, tplayerchange, tresearchinfo, MultilineEdit, tmessagedlg, PlayListSelector, ttributepayments, tviewanytext, tputresourcesdlg, and tmapgenerator.

Definition at line 1477 of file dlg_box.cpp.

References tdlgengine::tbutton::active, agmp, ct_invvalue, ct_shift_tab, ct_tab, cto_invvalue, dlg_mode, execbutton(), tdlgengine::firstbutton, getkeysyms(), getmousestatus(), tdlgengine::tbutton::id, tdlgengine::ttaborder::id, tdlgengine::tbutton::key, tdlgengine::tbutton::keynum, keypress(), tdlgengine::tbutton::markedkey, tdlgengine::tbutton::markedkeynum, markedtab, mouseparams, mousevisible(), tdlgengine::tbutton::next, paint(), pcgo, prev, tdlgengine::prntkey, releasetimeslice(), repaintDisplay, tgraphmodeparameters::resolutionx, tgraphmodeparameters::resolutiony, showtabmark(), tdlgengine::tbutton::status, tabcount, taborder, tdlgengine::taste, tmousesettings::taste, tmousesettings::x, tdlgengine::x1, tdlgengine::tbutton::x1, tdlgengine::tbutton::x2, xorrectangle(), tdlgengine::xsize, tmousesettings::y, tdlgengine::y1, tdlgengine::tbutton::y1, tdlgengine::tbutton::y2, and tdlgengine::ysize.

Referenced by tmapgenerator::run(), tputresourcesdlg::run(), tviewanytext::run(), ttributepayments::run(), tmessagedlg::run(), tresearchinfo::run(), tplayerchange::run(), tchoosetechlevel::run(), tstringselect::run(), tplayerselall::run(), tgiveunitawaydlg::run(), tchoice_dlg::run(), BuildingValues::run(), tbi3preferences::run(), ResizeMap::run(), tchoosezoomlevel::run(), EditAiParam::run(), tres::run(), tminestrength::run(), tdisplaymessage::run(), EditArchivalInformation::run(), MirrorMap::run(), thelpsystem::run(), tgetid::run(), and StringEdit::run().

void tdialogbox::setclipping ( void  )
virtual

Definition at line 254 of file dlg_box.cpp.

References bar(), next, tdlgengine::x1, tdlgengine::xsize, tdlgengine::y1, and tdlgengine::ysize.

void tdialogbox::setscrollspeed ( char  id,
int  speed 
)
void tdialogbox::setvirtualframebuf ( void  )
protectedvirtual
void tdialogbox::showbutton ( int  id)
virtual
void tdialogbox::showtabmark ( int  b)

Definition at line 1470 of file dlg_box.cpp.

References taborder, tdlgengine::x1, xorrectangle(), and tdlgengine::y1.

Referenced by rebuildtaborder(), and run().

void tdialogbox::stredit ( char *  s,
int  x1,
int  y1,
int  wdth,
int  max 
)
protected
void tdialogbox::toggleswitch ( pbutton  pb)

Member Data Documentation

int tdialogbox::boxstatus
int tdialogbox::disablecolor

Definition at line 167 of file dlg_box.h.

Referenced by disablebutton(), and init().

int tdialogbox::dlg_mode
protected

Definition at line 206 of file dlg_box.h.

Referenced by buildgraphics(), init(), run(), tdialogbox(), and ~tdialogbox().

pdialogbox tdialogbox::first = NULL
staticprotected

Definition at line 204 of file dlg_box.h.

Referenced by done(), execbutton(), tdialogbox(), and ~tdialogbox().

int tdialogbox::imagesaved

Definition at line 161 of file dlg_box.h.

Referenced by buildgraphics(), done(), and init().

int tdialogbox::knopfsuccessful
protected

Definition at line 214 of file dlg_box.h.

Referenced by execbutton(), knopfdruck(), newknopfdruck(), and newknopfdruck2().

int tdialogbox::markedtab

Definition at line 166 of file dlg_box.h.

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

int tdialogbox::ms

Definition at line 159 of file dlg_box.h.

Referenced by buildgraphics(), copyvirtualframebuf(), done(), and tstringselect::run().

pdialogbox tdialogbox::next
protected

Definition at line 202 of file dlg_box.h.

Referenced by paint(), setclipping(), and tdialogbox().

collategraphicoperations * tdialogbox::pcgo = NULL
static
pdialogbox tdialogbox::prev
protected

Definition at line 203 of file dlg_box.h.

Referenced by redrawall(), redrawall2(), run(), tdialogbox(), and ~tdialogbox().

int tdialogbox::starty
int tdialogbox::tabcount

Definition at line 165 of file dlg_box.h.

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

ttaborder tdialogbox::taborder[100]

Definition at line 164 of file dlg_box.h.

Referenced by init(), rebuildtaborder(), run(), and showtabmark().

int tdialogbox::textcolor
const char* tdialogbox::title
void* tdialogbox::tp

Definition at line 160 of file dlg_box.h.

Referenced by buildgraphics(), and done().

int tdialogbox::virtualbufoffset
protected

Definition at line 201 of file dlg_box.h.

Referenced by tdialogbox().

int tdialogbox::windowstyle

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