#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include <cstring>
#include <iostream>
#include "typen.h"
#include "basegfx.h"
#include "newfont.h"
#include "spfst.h"
#include "loaders.h"
#include "misc.h"
#include "events.h"
#include "stack.h"
#include "dlg_box.h"
#include "paradialog.h"
#include "widgets/textrenderer.h"
#include "dlgraph.cpp"
Include dependency graph for dlg_box.cpp:

Go to the source code of this file.
Defines | |
| #define | ppicture tpicture* |
Typedefs | |
| typedef char * | tstringa [30] |
| typedef tstringa * | pstringa |
Functions | |
| void | strrd8d (int l, char *s) |
| void | strrd8u (int l, char *s) |
| void | strrd8n (int l, char *s) |
| char * | strrrd8d (int l) |
| char * | strrrd8u (int l) |
| char * | strrrd8n (int l) |
| char | getletter (const char *s) |
| void | repaintdisplay (void) |
| int | getplayercolor (int i) |
| void | displaymessage (const char *formatstring, int num,...) |
| displays a dialog box with a message | |
| void | displaymessage (const ASCString &text, int num) |
| displays a dialog box with a message | |
| void | removemessage (void) |
| closes a message dialog box that has been opened by displaymessage() | |
| ASCString | readtextmessage (int id) |
| returns the message with the given ID from the message system. | |
| void | help (int id) |
| displays a dialogbog with the given help topic | |
| void | viewtext2 (int id) |
| displays a dialogbog with the given message | |
| int | legacy_viewtextquery (int id, const char *title, const char *s1, const char *s2) |
| int | viewtextquery (int id, const char *title, const char *s1, const char *s2) |
| int | getid (const char *title, int lval, int min, int max) |
| int | chooseString (const ASCString &title, const vector< ASCString > &entries, int defaultEntry) |
| displays a dialogbox which lets you chose one of a number of strings. | |
| pair< int, int > | chooseString (const ASCString &title, const vector< ASCString > &entries, const vector< ASCString > &buttons, int defaultEntry) |
| displays a dialogbox which lets you chose one of a number of strings. | |
| ASCString | editString (const ASCString &title, const ASCString &defaultValue) |
Variables | |
| char | strrstring [200] |
| void * | dialogtexture = NULL |
| int | actdisplayedmessage = 0 |
| long int | lastdisplayedmessageticker = 0xffffff |
| tvirtualscreenbuf | virtualscreenbuf |
| const char * | emptystring = "" |
| tdisplaymessage * | messagebox = NULL |
Definition in file dlg_box.cpp.
|
|
Definition at line 3136 of file dlg_box.cpp. Referenced by thelpsystem::done(). |
|
|
Definition at line 1746 of file dlg_box.cpp. |
|
|
Definition at line 1745 of file dlg_box.cpp. |
|
||||||||||||||||||||
|
displays a dialogbox which lets you chose one of a number of strings.
Definition at line 3803 of file dlg_box.cpp. References tstringselect::action, tstringselect::done(), tstringselect::init(), legacyEventSystemActive(), new_chooseString(), tstringselect::redline, and ChooseString::run(). |
|
||||||||||||||||
|
displays a dialogbox which lets you chose one of a number of strings.
Definition at line 3793 of file dlg_box.cpp. Referenced by chooseString(), chooseWeather(), editResearch(), editResearchPoints(), editTechAdapter(), CargoGuiFunctions::TransferUnitControl::execute(), generateTechTree(), selectunitsetfilter(), Reinforcements::setup(), SetViewSharing::setup(), ChangePlayerState::setup(), ChangeDiplomaticStatus::setup(), FieldAddressing::setup(), and EventTriggered::setup(). |
|
||||||||||||
|
displays a dialog box with a message
Definition at line 1864 of file dlg_box.cpp. References displayLogMessage(), and legacyEventSystemActive(). |
|
||||||||||||||||
|
||||||||||||
|
Definition at line 3899 of file dlg_box.cpp. References tdialogbox::done(), StringEdit::init(), StringEdit::nt, StringEdit::onCancel, StringEdit::org, StringEdit::ReturnOriginal, StringEdit::run(), and StringEdit::text. Referenced by editTechAdapter(), FileTransfer::enterfilename(), and getbipath(). |
|
||||||||||||||||||||
|
Definition at line 3706 of file dlg_box.cpp. References tdialogbox::done(), tgetid::init(), tgetid::max, tgetid::mid, tgetid::min, tgetid::nt, tgetid::onCancel, tgetid::ReturnOriginal, and tgetid::run(). Referenced by UnitPropertyEditor::buttonpressed(), editInt(), execaction(), ChangeBuildingOwner::setup(), DisplayEllipse::setup(), and ChangeGameParameter::setup(). |
|
|
Definition at line 121 of file dlg_box.cpp. Referenced by tdlgengine::addbutton(). |
|
|
Definition at line 301 of file dlg_box.cpp. References actmap. Referenced by tdialogbox::init(). |
|
|
displays a dialogbog with the given help topic
Definition at line 3290 of file dlg_box.cpp. References readtextmessage(), ASC_PG_Dialog::RunModal(), and PG_Widget::Show(). Referenced by execaction_pg(), execuseraction(), MailOptionsDialog::MailOptionsDialog(), tplayerchange::run(), and tmapgenerator::run(). |
|
||||||||||||||||||||
|
Definition at line 3357 of file dlg_box.cpp. References thelpsystem::action, thelpsystem::done(), tviewtextquery::init(), and thelpsystem::run(). Referenced by viewtextquery(). |
|
|
returns the message with the given ID from the message system. This system spans the helpfiles and the message files associated with the maps Definition at line 3052 of file dlg_box.cpp. References actmap, displayLogMessage(), tfindfile::getnextname(), GameMap::PreferredFilenames::mapname, GameMap::preferredFileNames, tnstream::reading, tnstream::readTextString(), s1, and strrr(). Referenced by execaction(), help(), helpAbout(), thelpsystem::init(), MailOptionsDialog::MailOptionsDialog(), viewtext2(), viewtextmessage(), and ViewTextQuery::ViewTextQuery(). |
|
|
closes a message dialog box that has been opened by displaymessage()
Definition at line 1974 of file dlg_box.cpp. References tdialogbox::boxstatus, and tdialogbox::done(). Referenced by k_loadmap(). |
|
|
|
|
||||||||||||
|
Definition at line 55 of file dlg_box.cpp. |
|
||||||||||||
|
Definition at line 65 of file dlg_box.cpp. |
|
||||||||||||
|
Definition at line 60 of file dlg_box.cpp. |
|
|
Definition at line 71 of file dlg_box.cpp. References itoa(), minmalq, and strrstring. Referenced by displaywindspeed(). |
|
|
Definition at line 85 of file dlg_box.cpp. References itoa(), minmalq, and strrstring. |
|
|
Definition at line 78 of file dlg_box.cpp. References itoa(), minmalq, and strrstring. |
|
|
displays a dialogbog with the given message
Definition at line 3300 of file dlg_box.cpp. References readtextmessage(), ASC_PG_Dialog::RunModal(), and PG_Widget::Show(). Referenced by gamethread(), and next_turn(). |
|
||||||||||||||||||||
|
Definition at line 3398 of file dlg_box.cpp. References legacy_viewtextquery(), legacyEventSystemActive(), ASC_PG_Dialog::RunModal(), and PG_Widget::Show(). Referenced by authenticateUser(), and changePassword(). |
|
|
Definition at line 95 of file dlg_box.cpp. Referenced by infomessage(). |
|
|
Definition at line 93 of file dlg_box.cpp. Referenced by tdialogbox::paintsurface2(). |
|
|
Definition at line 467 of file dlg_box.cpp. Referenced by tdlgengine::addbutton(). |
|
|
Definition at line 96 of file dlg_box.cpp. Referenced by infomessage(). |
|
|
Definition at line 3413 of file dlg_box.cpp. |
|
|
Definition at line 53 of file dlg_box.cpp. Referenced by strrrd8d(), strrrd8n(), and strrrd8u(). |
|
|
Definition at line 99 of file dlg_box.cpp. Referenced by gamethread(), and main(). |
1.4.2