Advanced Strategic Command
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ASC_PG_Dialog Class Reference

Adapter class for using Paragui Dialogs in ASC. This class transfers the event control from ASC to Paragui and back. All new dialog classes should be derived from this class. More...

#include <paradialog.h>

Inherits PG_Window.

Inherited by ActionManager, AddWeatherAreaDialog, AddWindChangeDialog, AdminGameWindow, AllianceSetupWindow, AmmoTransferWindow, AuthenticationDialog, BitMapEditor, ChanceSettingsDialog, ChangePasswordDialog, ChooseTech, ConfirmExitDialog, CopyMap, EditGameOptions, EditMapParameters, EditPlayerData, EditTechAdapter, EventAreasDialog, EventEditor, EventList, EventWindChangesDialog, ExchangeGraphics, FileFindDialog, FileSelectionWindow, FontViewer, GameDialog, GameOptionsDialog, GotoPosition, ImportBI3MapDialog, IngameMessageViewer, InternalAmmoTransferWindow, ItemLocator, ItemSelectorWindow, MailOptionsDialog, MessageDialog, MessageSelectionWindow, MultiLineEditorDialog, MultiPlayerDialog, NewMap, NewMessage, NewStringChooser, OptionsDialog, PasswordDialog, PlayerSetupWindow, ProductionEditorWindow, PropertyDialog, ReplayRecorderDialog, ResourcePlacementDialog, SaveGameBaseDialog, SavegameSelectionWindow, SelectFromMap, SelectUnitSetFilter, SinglePlayerDialog, SoundSettings, StringEditor, TaskManager, UnitGuideWindow, UnitNaming, VehicleProduction_SelectionWindow, VehiclePropertyEditor, ViewFormattedText, ViewTextQuery, Weathercast, and WeatherDialog.

Public Types

enum  StandardButtonDirectonType { Vertical, Horizontal }
 

Public Member Functions

 ASC_PG_Dialog (PG_Widget *parent, const PG_Rect &r, const ASCString &windowtext, WindowFlags flags=DEFAULT, const ASCString &style="Window", int heightTitlebar=25)
 
PG_Button * AddStandardButton (const ASCString &name)
 
void StandardButtonDirection (StandardButtonDirectonType dir)
 
int RunModal ()
 

Static Public Member Functions

static PG_Rect centerRectangle (const PG_Rect &rect)
 

Protected Member Functions

virtual bool closeWindow ()
 
bool quitModalLoopW (PG_Button *button, int value)
 
bool quitModalLoop (int value)
 
virtual bool eventKeyDown (const SDL_KeyboardEvent *key)
 

Protected Attributes

PG_MessageObject * caller
 

Detailed Description

Adapter class for using Paragui Dialogs in ASC. This class transfers the event control from ASC to Paragui and back. All new dialog classes should be derived from this class.

Definition at line 127 of file paradialog.h.

Member Enumeration Documentation

Enumerator
Vertical 
Horizontal 

Definition at line 139 of file paradialog.h.

Constructor & Destructor Documentation

ASC_PG_Dialog::ASC_PG_Dialog ( PG_Widget *  parent,
const PG_Rect &  r,
const ASCString windowtext,
WindowFlags  flags = DEFAULT,
const ASCString style = "Window",
int  heightTitlebar = 25 
)

Definition at line 462 of file paradialog.cpp.

References WindowCounter::num().

Member Function Documentation

PG_Button * ASC_PG_Dialog::AddStandardButton ( const ASCString name)
PG_Rect ASC_PG_Dialog::centerRectangle ( const PG_Rect &  rect)
static

Definition at line 484 of file paradialog.cpp.

bool ASC_PG_Dialog::closeWindow ( )
protectedvirtual
bool ASC_PG_Dialog::eventKeyDown ( const SDL_KeyboardEvent *  key)
protectedvirtual
bool ASC_PG_Dialog::quitModalLoop ( int  value)
protected
bool ASC_PG_Dialog::quitModalLoopW ( PG_Button *  button,
int  value 
)
protected
int ASC_PG_Dialog::RunModal ( )

Definition at line 476 of file paradialog.cpp.

Referenced by actionManager(), adminGame(), ammoTransferWindow(), ChangeDefaultPasswordDialog::changeDefaultPasswordDialog(), ChangeMapPasswordDialog::changeMapPasswordDialog(), changeUnitPropertyDialog(), chooseSingleTechnology(), ConfirmExitDialog::confirmExitDialog(), createevent(), createNewMap(), SoundSettings::diag(), editEmailOptions(), editGameOptions(), editMap(), editPlayerData(), editpolygon(), editProduction(), editString2(), editTechAdapter(), errorMessageDialog(), eventEditor(), TargetCoordinateLocator::eventMouseButtonDown(), execaction(), ReplayGuiFunctions::ReplayRecord::execute(), GuiFunctions::BuildVehicleCommand::execute(), executeUserAction(), GameDialog::gameDialog(), GameOptionsDialog::gameOptionsDialog(), PBEMServer::getSession(), getxy_building(), help(), helpAbout(), importBI3Map(), infoMessageDialog(), internalAmmoTransferWindow(), locateItemByID(), MessageSelectionWindow::messageSelected(), MultiLineEditor(), MultiPlayerDialog::multiPlayerDialog(), new_choice_dlg(), new_chooseString(), newmessage(), newreminder(), OptionsDialog::optionsDialog(), pbpplayerstatistics(), researchinfo(), resourceAnalysis(), resourcePlacementDialog(), trunreplay::run(), PropertyDialog::run(), GotoPosition::RunModal(), UnitNaming::RunModal(), FileFindDialog::RunModal(), PasswordDialog::RunModal(), SaveGameDialog::saveGameDialog(), selectFields(), selectFile(), selectPosition(), selectSavegame(), selectunit(), selectUnitFromMap(), selectunitsetfilter(), setmapparameters(), DisplayImmediateMessage::setup(), Reinforcements::setup(), setupalliances(), setupPlayers(), showAllUnitPositions(), showCargoSummary(), showGameParameters(), showMemoryFootprint(), showPlayerTime(), ChooseTech::showPrerequisites(), showSDLInfo(), showSearchPath(), ShowNewTechnology::showTechnology(), showUnitAiProperties(), showUnitEndurance(), showUsedPackages(), SinglePlayerDialog::singlePlayerDialog(), SoundSettings::soundSettings(), taskManager(), unitGuideWindow(), unitProductionAnalysis(), viewEventInfo(), viewFont(), viewmessage(), viewmessages(), viewMiningPower(), viewterraininfo(), viewtext2(), viewtextquery(), viewUnitSetinfo(), warningMessageDialog(), weathercast(), and weatherConfigurationDialog().

void ASC_PG_Dialog::StandardButtonDirection ( StandardButtonDirectonType  dir)

Member Data Documentation

PG_MessageObject* ASC_PG_Dialog::caller
protected

Definition at line 131 of file paradialog.h.

Referenced by ChangePasswordDialog::ChangePasswordDialog(), and closeWindow().


The documentation for this class was generated from the following files: