#include "newfont.h"
#include "events.h"
#include "basegfx.h"
Include dependency graph for dlg_box.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| class | tdlgengine |
| struct | tdlgengine::tbutton |
| struct | tdlgengine::ttaborder |
| class | tdialogbox |
| class | tviewtext |
| struct | tviewtext::tstartpoint |
| class | tviewtextwithscrolling |
| class | tvirtualscreenbuf |
| class | tstringselect |
Defines | |
| #define | dlg_wintitle 1 |
| #define | dlg_in3d 2 |
| #define | dlg_notitle 4 |
| #define | dlg_3dtitle 8 |
| #define | linesshown 13 |
Typedefs | |
| typedef tdialogbox * | pdialogbox |
Functions | |
| 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() | |
| void | help (int id) |
| displays a dialogbog with the given help topic | |
| void | viewtext2 (int id) |
| displays a dialogbog with the given message | |
| int | viewtextquery (int id, const char *title, const char *s1, const char *s2) |
| int | getplayercolor (int i) |
| void | strrd8u (int l, char *s) |
| void | strrd8d (int l, char *s) |
| void | strrd8n (int l, char *s) |
| char * | strrrd8u (int l) |
| char * | strrrd8d (int l) |
| char * | strrrd8n (int l) |
| ASCString | readtextmessage (int id) |
| returns the message with the given ID from the message system. | |
| int | getid (const char *title, int lval, int min, int max) |
| ASCString | editString (const ASCString &title, const ASCString &defaultValue="") |
| int | chooseString (const ASCString &title, const vector< ASCString > &entries, int defaultEntry=-1) |
| displays a dialogbox which lets you choose one of a number of strings. | |
| pair< int, int > | chooseString (const ASCString &title, const vector< ASCString > &entries, const vector< ASCString > &buttons, int defaultEntry=-1) |
| displays a dialogbox which lets you choose one of a number of strings. | |
Variables | |
| int | actdisplayedmessage |
| long | lastdisplayedmessageticker |
| tvirtualscreenbuf | virtualscreenbuf |
Definition in file dlg_box.h.
| #define dlg_3dtitle 8 |
Definition at line 35 of file dlg_box.h.
Referenced by tdialogbox::init(), and tdialogbox::redraw().
| #define dlg_in3d 2 |
Definition at line 33 of file dlg_box.h.
Referenced by tplayerselall::init(), ttributepayments::init(), tminestrength::init(), tres::init(), UnitPropertyEditor::init(), EditAiParam::init(), BuildingValues::init(), tplayerchange::init(), tmapgenerator::init(), StringEdit::init(), tgetid::init(), tstringselect::init(), thelpsystem::init(), tdialogbox::init(), tviewanytext::init(), tdialogbox::redraw(), and tshowhistoryinit().
| #define dlg_notitle 4 |
Definition at line 34 of file dlg_box.h.
Referenced by tdialogbox::buildgraphics(), tchoice_dlg::init(), and tdialogbox::redraw().
| #define dlg_wintitle 1 |
Definition at line 32 of file dlg_box.h.
Referenced by tdialogbox::buildgraphics(), and tdialogbox::redraw().
| #define linesshown 13 |
Definition at line 386 of file dlg_box.h.
Referenced by thelpsystem::buildgraphics(), and tviewanytext::redraw().
| typedef class tdialogbox* pdialogbox |
| pair<int,int> chooseString | ( | const ASCString & | title, | |
| const vector< ASCString > & | entries, | |||
| const vector< ASCString > & | buttons, | |||
| int | defaultEntry = -1 | |||
| ) |
displays a dialogbox which lets you choose one of a number of strings.
| title | the title of the dialog box | |
| entries | the list of strings | |
| buttons | the names of the buttons that are going to be displayed | |
| defaultEntry | the entry that is selected by default (-1 if none) |
Definition at line 3805 of file dlg_box.cpp.
References tstringselect::action, tstringselect::done(), tstringselect::init(), legacyEventSystemActive(), new_chooseString(), tstringselect::redline, and ChooseString::run().
| int chooseString | ( | const ASCString & | title, | |
| const vector< ASCString > & | entries, | |||
| int | defaultEntry = -1 | |||
| ) |
displays a dialogbox which lets you choose one of a number of strings.
| title | the title of the dialog box | |
| entries | the list of strings | |
| defaultEntry | the entry that is selected by default (-1 if none) |
Definition at line 3795 of file dlg_box.cpp.
References chooseString().
| void displaymessage | ( | const ASCString & | text, | |
| int | num | |||
| ) |
displays a dialog box with a message
| text | the text | |
| num | 0 normal text, the dialog box will stay visible until removemessage() is called 1 red text for error message 2 fatal error, the program will be closed 3 normal text |
Definition at line 1866 of file dlg_box.cpp.
References tdialogbox::boxstatus, displayLogMessage(), tdialogbox::done(), tdisplaymessage::init(), legacyEventSystemActive(), messagebox, and tdisplaymessage::run().
| void displaymessage | ( | const char * | formatstring, | |
| int | num, | |||
| ... | ||||
| ) |
displays a dialog box with a message
| formatstring | the text, which may contain the same format arguments as sprintf | |
| num | 0 normal text, the dialog box will stay visible until removemessage() is called 1 red text for error message 2 fatal error, the program will be closed 3 normal text |
Definition at line 1849 of file dlg_box.cpp.
References displaymessage().
Definition at line 3901 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 FileTransfer::enterfilename(), and getbipath().
| int getid | ( | const char * | title, | |
| int | lval, | |||
| int | min, | |||
| int | max | |||
| ) |
Definition at line 3708 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(), ChangeGameParameter::setup(), DisplayEllipse::setup(), and ChangeBuildingOwner::setup().
| int getplayercolor | ( | int | i | ) |
| void help | ( | int | id | ) |
displays a dialogbog with the given help topic
Definition at line 3292 of file dlg_box.cpp.
References readtextmessage(), and ASC_PG_Dialog::RunModal().
Referenced by execaction_pg(), executeUserAction(), MailOptionsDialog::MailOptionsDialog(), tmapgenerator::run(), and tplayerchange::run().
| ASCString readtextmessage | ( | int | id | ) |
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 3054 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(), and ViewTextQuery::ViewTextQuery().
| void removemessage | ( | void | ) |
closes a message dialog box that has been opened by displaymessage()
Definition at line 1976 of file dlg_box.cpp.
References tdialogbox::boxstatus, tdialogbox::done(), and messagebox.
| void strrd8d | ( | int | l, | |
| char * | s | |||
| ) |
| void strrd8n | ( | int | l, | |
| char * | s | |||
| ) |
| void strrd8u | ( | int | l, | |
| char * | s | |||
| ) |
| char* strrrd8d | ( | int | l | ) |
Definition at line 73 of file dlg_box.cpp.
References itoa(), minmalq, and strrstring.
Referenced by displaywindspeed().
| char* strrrd8n | ( | int | l | ) |
| char* strrrd8u | ( | int | l | ) |
| void viewtext2 | ( | int | id | ) |
displays a dialogbog with the given message
Definition at line 3302 of file dlg_box.cpp.
References readtextmessage(), and ASC_PG_Dialog::RunModal().
Referenced by NextTurnStrategy_AskUser::continueWhenLastPlayer(), and gamethread().
| int viewtextquery | ( | int | id, | |
| const char * | title, | |||
| const char * | s1, | |||
| const char * | s2 | |||
| ) |
Definition at line 3400 of file dlg_box.cpp.
References legacy_viewtextquery(), legacyEventSystemActive(), and ASC_PG_Dialog::RunModal().
Referenced by authenticateUser(), and changePassword().
Definition at line 101 of file dlg_box.cpp.
Referenced by gamethread(), main(), runTester(), and tdialogbox::setvirtualframebuf().
1.5.1