Advanced Strategic Command
Classes | Typedefs | Functions | Variables
dialog.h File Reference

Interface for all the dialog boxes used by the game and the mapeditor. More...

#include <sigc++/sigc++.h>
#include "ascstring.h"
#include "dlg_box.h"
#include "password.h"
#include "typen.h"
#include "actions/actionresult.h"
Include dependency graph for dialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tviewanytext
 
class  tparagraph
 
class  tmessagedlg
 
class  MultilineEdit
 

Typedefs

typedef class tparagraphpparagraph
 

Functions

void displaymessage2 (const char *formatstring,...)
 displays a message in the status line of ASC More...
 
void dispmessage2 (int id, const char *st=NULL)
 displays a message in the message line More...
 
void dispmessage2 (const ActionResult &result)
 
Uint8 mix3colors (int p1, int p2, int p3)
 
Uint8 mix2colors (int a, int b)
 
Uint8 mix4colors (int a, int b, int c, int d)
 
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 viewUnitSetinfo (void)
 
int choice_dlg (const ASCString &title, const ASCString &leftButton, const ASCString &rightButton)
 
void selectgraphicset (void)
 
int editInt (const ASCString &title, int defaultValue, int minValue=0, int maxValue=maxint)
 
void displayActionError (const ActionResult &result, const ASCString &additionalInfo="")
 

Variables

const int dbluedark = 248
 

Detailed Description

Interface for all the dialog boxes used by the game and the mapeditor.

Definition in file dialog.h.

Typedef Documentation

typedef class tparagraph* pparagraph

Definition at line 104 of file dialog.h.

Function Documentation

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 displaymessage2 ( const char *  formatstring,
  ... 
)

displays a message in the status line of ASC

Definition at line 544 of file asc-mainscreen.cpp.

void dispmessage2 ( int  id,
const char *  st = NULL 
)

displays a message in the message line

Definition at line 472 of file dialog.cpp.

References displaymessage2(), and getmessage().

void dispmessage2 ( const ActionResult result)
int editInt ( const ASCString title,
int  defaultValue,
int  minValue = 0,
int  maxValue = maxint 
)
Uint8 mix2colors ( int  a,
int  b 
)
Uint8 mix3colors ( int  p1,
int  p2,
int  p3 
)
Uint8 mix4colors ( int  a,
int  b,
int  c,
int  d 
)
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 viewUnitSetinfo ( void  )

Variable Documentation

const int dbluedark = 248

Definition at line 37 of file dialog.h.