#include <paradialog.h>
Inheritance diagram for ASC_PG_Dialog:

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 | quitModalLoop (int value) |
| virtual bool | eventKeyDown (const SDL_KeyboardEvent *key) |
Protected Attributes | |
| PG_MessageObject * | caller |
Definition at line 125 of file paradialog.h.
| bool ASC_PG_Dialog::closeWindow | ( | ) | [protected, virtual] |
Reimplemented in VehicleProduction_SelectionWindow, ResourcePlacementDialog, ChanceSettingsDialog, EventAreasDialog, and EventWindChangesDialog.
Definition at line 554 of file paradialog.cpp.
References caller.
Referenced by ChangePasswordDialog::ChangePasswordDialog(), VehicleProduction_SelectionWindow::closeWindow(), eventKeyDown(), and SoundSettings::SoundSettings().
| bool ASC_PG_Dialog::quitModalLoop | ( | int | value | ) | [protected] |
Definition at line 519 of file paradialog.cpp.
Referenced by ResourcePlacementDialog::buttonErrorOkEvent(), SoundSettings::buttonEvent(), ResourcePlacementDialog::buttonEvent(), ChanceSettingsDialog::closeWindow(), EventWindChangesDialog::closeWindow(), EventAreasDialog::closeWindow(), ResourcePlacementDialog::closeWindow(), IngameMessageViewer::eventKeyDown(), MessageDialog::eventKeyDown(), SavegameSelectionWindow::fileNameSelected(), FileSelectionWindow::fileNameSelected(), MessageDialog::handleButton(), MultiLineEditorDialog::MultiLineEditorDialog(), VehicleProduction_SelectionWindow::produce(), StringEditor::StringEditor(), and ViewTextQuery::ViewTextQuery().
| bool ASC_PG_Dialog::eventKeyDown | ( | const SDL_KeyboardEvent * | key | ) | [protected, virtual] |
Reimplemented in AmmoTransferWindow, ChooseTech, EditTechAdapter, SelectFromMap, InternalAmmoTransferWindow, MessageDialog, ItemSelectorWindow, VehicleProduction_SelectionWindow, SelectUnitSetFilter, GameDialog, IngameMessageViewer, and ViewFormattedText.
Definition at line 510 of file paradialog.cpp.
References closeWindow().
Referenced by IngameMessageViewer::eventKeyDown(), and SelectFromMap::eventKeyDown().
| PG_Button * ASC_PG_Dialog::AddStandardButton | ( | const ASCString & | name | ) |
Definition at line 495 of file paradialog.cpp.
References Vertical.
Referenced by ActionManager::ActionManager(), ChooseTech::ChooseTech(), EditPlayerData::EditPlayerData(), EditTechAdapter::EditTechAdapter(), EventEditor::EventEditor(), GotoPosition::GotoPosition(), ImportBI3MapDialog::ImportBI3MapDialog(), ItemLocator::ItemLocator(), MailOptionsDialog::MailOptionsDialog(), MultiLineEditorDialog::MultiLineEditorDialog(), NewMap::NewMap(), NewMessage::NewMessage(), NewStringChooser::NewStringChooser(), SelectUnitSetFilter::SelectUnitSetFilter(), StringEditor::StringEditor(), TaskManager::TaskManager(), and UnitNaming::UnitNaming().
| void ASC_PG_Dialog::StandardButtonDirection | ( | StandardButtonDirectonType | dir | ) |
Definition at line 490 of file paradialog.cpp.
Referenced by ActionManager::ActionManager(), EditPlayerData::EditPlayerData(), MailOptionsDialog::MailOptionsDialog(), NewMap::NewMap(), and TaskManager::TaskManager().
| int ASC_PG_Dialog::RunModal | ( | ) |
Reimplemented in GotoPosition, FileFindDialog, PasswordDialog, ItemSelectorWindow, and UnitNaming.
Definition at line 455 of file paradialog.cpp.
Referenced by actionManager(), adminGame(), ammoTransferWindow(), ChangeDefaultPasswordDialog::changeDefaultPasswordDialog(), ChangeMapPasswordDialog::changeMapPasswordDialog(), chooseSingleTechnology(), ConfirmExitDialog::confirmExitDialog(), createevent(), createNewMap(), SoundSettings::diag(), editEmailOptions(), editGameOptions(), editMap(), editpolygon(), editProduction(), editString2(), editTechAdapter(), errorMessageDialog(), eventEditor(), TargetCoordinateLocator::eventMouseButtonDown(), execaction(), ReplayGuiFunctions::ReplayRecord::execute(), GuiFunctions::BuildVehicleCommand::execute(), 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(), UnitNaming::RunModal(), PasswordDialog::RunModal(), FileFindDialog::RunModal(), GotoPosition::RunModal(), SaveGameDialog::saveGameDialog(), selectFields(), selectFile(), selectPosition(), selectSavegame(), selectunit(), selectUnitFromMap(), selectunitsetfilter(), setmapparameters(), Reinforcements::setup(), DisplayImmediateMessage::setup(), setupalliances(), setupPlayers(), showAllUnitPositions(), showCargoSummary(), showGameParameters(), showPlayerTime(), ChooseTech::showPrerequisites(), showSDLInfo(), showSearchPath(), showUnitAiProperties(), showUnitEndurance(), showUsedPackages(), SinglePlayerDialog::singlePlayerDialog(), SoundSettings::soundSettings(), taskManager(), unitGuideWindow(), unitProductionAnalysis(), viewFont(), viewmessage(), viewmessages(), viewtext2(), viewtextquery(), viewUnitSetinfo(), warningMessageDialog(), weathercast(), and weatherConfigurationDialog().
| PG_Rect ASC_PG_Dialog::centerRectangle | ( | const PG_Rect & | rect | ) | [static] |
Definition at line 463 of file paradialog.cpp.
PG_MessageObject* ASC_PG_Dialog::caller [protected] |
Definition at line 129 of file paradialog.h.
Referenced by ChangePasswordDialog::ChangePasswordDialog(), and closeWindow().
1.5.1