Advanced Strategic Command
Classes | Macros | Functions
dialog.cpp File Reference

Many many dialog boxes used by the game and the mapeditor. More...

#include <stdio.h>
#include <cstring>
#include <ctype.h>
#include <stdlib.h>
#include <stdarg.h>
#include "typen.h"
#include "buildingtype.h"
#include "vehicletype.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 "dialog.h"
#include "sgstream.h"
#include "attack.h"
#include "gameoptions.h"
#include "errors.h"
#include "itemrepository.h"
#include "mapdisplay.h"
#include "graphicset.h"
#include "viewcalculation.h"
#include "paradialog.h"
#include "cannedmessages.h"
#include "dialogs/messagedialog.h"
#include "dialogs/fileselector.h"
#include "widgets/textrenderer.h"
#include "unitset.h"
#include "spfst-legacy.h"
Include dependency graph for dialog.cpp:

Go to the source code of this file.

Classes

class  tchoice_dlg
 
class  tbi3preferences
 
class  ResizeMap
 
class  tchoosezoomlevel
 

Macros

#define markedlettercolor   red
 
#define klickconst   100
 
#define delayconst   10
 
#define blocksize   256
 

Functions

void dispmessage2 (const ActionResult &result)
 
void dispmessage2 (int id, const char *st)
 displays a message in the message line More...
 
int legacy_choice_dlg (const char *title, const char *s1, const char *s2,...)
 
int choice_dlg (const ASCString &title, const ASCString &leftButton, const ASCString &rightButton)
 
void unpack_date (unsigned short packed, int &day, int &month, int &year)
 
void unpack_time (unsigned short packed, int &sec, int &min, int &hour)
 
void viewVisibilityStatistics ()
 
void bi3preferences (void)
 the dialog box for setting up how to load bi3 graphics and maps. Since ASC now uses its own graphics, this dialog is not used any more. More...
 
void resizemap (void)
 a dialog box that lets a user resize the active map. Should only be used in the mapeditor More...
 
void choosezoomlevel (void)
 
void showbdtbits (void)
 
void appendTerrainBits (char *text, const TerrainBits *bdt)
 
void viewUnitSetinfo (void)
 
void selectgraphicset (void)
 
int editInt (const ASCString &title, int defaultValue, int minValue, int maxValue)
 
void displayActionError (const ActionResult &result, const ASCString &additionalInfo)
 

Detailed Description

Many many dialog boxes used by the game and the mapeditor.

Definition in file dialog.cpp.

Macro Definition Documentation

#define blocksize   256
#define delayconst   10

Definition at line 463 of file dialog.cpp.

#define klickconst   100

Definition at line 462 of file dialog.cpp.

#define markedlettercolor   red

Definition at line 64 of file dialog.cpp.

Function Documentation

void appendTerrainBits ( char *  text,
const TerrainBits bdt 
)

Definition at line 1352 of file dialog.cpp.

References terrainProperty, and terrainPropertyNum.

void bi3preferences ( void  )

the dialog box for setting up how to load bi3 graphics and maps. Since ASC now uses its own graphics, this dialog is not used any more.

Definition at line 1124 of file dialog.cpp.

References tdialogbox::done(), tbi3preferences::init(), and tbi3preferences::run().

Referenced by executeUserAction().

int choice_dlg ( const ASCString title,
const ASCString leftButton,
const ASCString rightButton 
)
void choosezoomlevel ( void  )
void displayActionError ( const ActionResult result,
const ASCString additionalInfo 
)
void dispmessage2 ( const ActionResult result)
void dispmessage2 ( int  id,
const char *  st 
)

displays a message in the message line

Definition at line 472 of file dialog.cpp.

References displaymessage2(), and getmessage().

int editInt ( const ASCString title,
int  defaultValue,
int  minValue,
int  maxValue 
)
int legacy_choice_dlg ( const char *  title,
const char *  s1,
const char *  s2,
  ... 
)
void resizemap ( void  )

a dialog box that lets a user resize the active map. Should only be used in the mapeditor

Definition at line 1256 of file dialog.cpp.

References displaymap(), tdialogbox::done(), ResizeMap::init(), and ResizeMap::run().

Referenced by execaction().

void selectgraphicset ( void  )
void showbdtbits ( void  )
void unpack_date ( unsigned short  packed,
int &  day,
int &  month,
int &  year 
)

Definition at line 631 of file dialog.cpp.

void unpack_time ( unsigned short  packed,
int &  sec,
int &  min,
int &  hour 
)

Definition at line 645 of file dialog.cpp.

void viewUnitSetinfo ( void  )
void viewVisibilityStatistics ( )

Definition at line 874 of file dialog.cpp.

References tdialogbox::done(), tviewanytext::init(), and tviewanytext::run().