Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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 dependency graph for dialog.h:

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

Go to the source code of this file.

Typedefs

typedef tparagraphpparagraph

Functions

void displaymessage2 (const char *formatstring,...)
 displays a message in the status line of ASC
void dispmessage2 (int id, const char *st=NULL)
 displays a message in the message line
char mix3colors (int p1, int p2, int p3)
char mix2colors (int a, int b)
char 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.
void resizemap (void)
 a dialog box that lets a user resize the active map. Should only be used in the mapeditor
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)

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 102 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 1938 of file dialog.cpp.

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

Referenced by execuseraction().

int choice_dlg const ASCString title,
const ASCString leftButton,
const ASCString rightButton
 

displays a dialog with two buttons, to select one of them

Parameters:
title,: the message text; printf style arguments allowed
leftButton the text on the left button
rightButton the text on the right button
Returns:
1 if the left button has been pressed; 2 if the right button has been pressed

Definition at line 610 of file dialog.cpp.

References legacy_choice_dlg(), legacyEventSystemActive(), and new_choice_dlg().

Referenced by checkforreplay(), checkforvictory(), execaction_pg(), execuseraction(), execuseraction2(), CargoGuiFunctions::RecycleUnit::execute(), GuiFunctions::EndTurn::execute(), GuiFunctions::SelfDestructIcon::execute(), FileSelectionWindow::fileNameSelected(), gamethread(), generateTechTree(), mapeditorMainThread(), next_turn(), BuildingItem::place(), ObjectItem::place(), VehicleProduction_SelectionWindow::removeProductionLine(), FileTransfer::send(), tmapgenerator::setmap(), DisplayEllipse::setup(), and viewOwnReplay().

void choosezoomlevel void   ) 
 

Definition at line 2138 of file dialog.cpp.

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

void displaymessage2 const char *  formatstring,
  ...
 

displays a message in the status line of ASC

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

void dispmessage2 int  id,
const char *  st = NULL
 

displays a message in the message line

Definition at line 466 of file dialog.cpp.

References displaymessage2(), getmessage(), s1, and s2.

Referenced by GuiFunctions::AttackGui::execute(), GuiFunctions::Movement::execute(), GuiFunctions::Ascend::execute(), GuiFunctions::Descend::execute(), GuiFunctions::Attack::execute(), GuiFunctions::EnableReactionfire::execute(), GuiFunctions::RepairUnit::execute(), GuiFunctions::RefuelUnit::execute(), GuiFunctions::ConstructBuilding::execute(), giveunitaway(), tsearchdestructbuildingfields::initdestructbuilding(), putMine(), and GuiFunctions::BuildingConstruction::setBuilding().

int editInt const ASCString title,
int  defaultValue,
int  minValue = 0,
int  maxValue = maxint
 

Definition at line 2979 of file dialog.cpp.

References getid().

Referenced by editResearchPoints(), TurnPassed::setup(), ResourceTribute::setup(), WindChange::setup(), DisplayMessage::setup(), ChangeBuildingDamage::setup(), NextMap::setup(), ChangeDiplomaticStatus::setup(), ChangePlayerState::setup(), SetViewSharing::setup(), and AddResources::setup().

char mix2colors int  a,
int  b
 

char mix3colors int  p1,
int  p2,
int  p3
 

char 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 2070 of file dialog.cpp.

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

Referenced by execaction().

void selectgraphicset void   ) 
 

Definition at line 2967 of file dialog.cpp.

References actmap, displaymap(), getGraphicSetIdFromFilename(), GameMap::graphicset, and selectFile().

Referenced by execaction_pg(), and execuseraction2().

void viewUnitSetinfo void   ) 
 

Definition at line 2183 of file dialog.cpp.

References actmap, Vehicletype::description, fieldvisiblenow(), GameMap::getCursor(), GameMap::getField(), GameMap::getPlayer(), ContainerBaseType::id, LoadableItemType::location, ContainerBaseType::name, ASC_PG_Dialog::RunModal(), PG_Widget::Show(), ASCString::toString(), SingleUnitSet::unit, and unitSets.

Referenced by execaction(), and execuseraction().


Variable Documentation

const int dbluedark = 248
 

Definition at line 35 of file dialog.h.


Generated on Tue Jun 24 01:39:38 2008 for Advanced Strategic Command by  doxygen 1.4.2