paradialog.cpp File Reference

#include "global.h"
#include <SDL_image.h>
#include <signal.h>
#include <paragui.h>
#include <pgapplication.h>
#include <pgmessagebox.h>
#include <pgdropdown.h>
#include "pgbutton.h"
#include "pglabel.h"
#include "pgwindow.h"
#include "pgscrollbar.h"
#include "pgprogressbar.h"
#include "pgradiobutton.h"
#include "pgthemewidget.h"
#include "pgcheckbutton.h"
#include "pgslider.h"
#include "pglistbox.h"
#include "pgpopupmenu.h"
#include "pgmenubar.h"
#include "pgimage.h"
#include "pgrichedit.h"
#include "pgsdleventsupplier.h"
#include "pgmultilineedit.h"
#include "pgtooltiphelp.h"
#include "pglog.h"
#include "widgets/multilistbox.h"
#include "widgets/textrenderer.h"
#include "widgets/autoprogressbar.h"
#include "dialogs/messagedialog.h"
#include "paradialog.h"
#include "events.h"
#include "gameoptions.h"
#include "spfst.h"
#include "strtmesg.h"
#include "graphics/drawing.h"
#include "util/messaginghub.h"
#include "sdl/graphicsqueue.h"

Include dependency graph for paradialog.cpp:

Go to the source code of this file.

Classes

class  EventSupplier
class  ASC_PG_ScreenUpdater
class  AntiBulkHandler
class  NewStringChooser
class  MultiLineEditorDialog
class  StringEditor

Functions

void signalQuit (int i)
ASC_PG_AppgetPGApplication ()
pair< int, int > new_chooseString (const ASCString &title, const vector< ASCString > &entries, const vector< ASCString > &buttons, int defaultEntry)
 
Returns:
ButtonPressed,SelectedItem

bool MultiLineEditor (const ASCString &title, ASCString &textToEdit)
ASCString editString2 (const ASCString &title, const ASCString &defaultValue)
 uses the new dialog engine
int choiceDialog (const ASCString &text, const ASCString &button1, const ASCString &button2, const ASCString &shortLabel)

Variables

EventSupplier eventSupplier
ASC_PG_ApppgApp = NULL
ASC_PG_ScreenUpdater ascScreenUpdater


Function Documentation

int choiceDialog ( const ASCString text,
const ASCString button1,
const ASCString button2,
const ASCString shortLabel 
)

Definition at line 780 of file paradialog.cpp.

References CGameOptions::dialogAnswers, CGameOptions::Instance(), new_choice_dlg(), and CGameOptions::setChanged().

Referenced by GuiFunctions::EndTurn::execute(), CargoGuiFunctions::MoveUnitIntoInnerContainer::execute(), executeUserAction(), and FileTransfer::send().

ASCString editString2 ( const ASCString title,
const ASCString defaultValue 
)

uses the new dialog engine

Definition at line 772 of file paradialog.cpp.

References StringEditor::GetEditedText(), and ASC_PG_Dialog::RunModal().

ASC_PG_App& getPGApplication (  ) 

Definition at line 294 of file paradialog.cpp.

References pgApp.

Referenced by Maped_MainScreenWidget::eventKeyDown(), ASC_MainScreenWidget::eventKeyDown(), execaction_pg(), executeUserAction(), gamethread(), GuiDimension::getLeftIndent(), GuiDimension::getLeftOffSet(), GuiDimension::getLineEditWidth(), GuiDimension::getLineOffset(), IngameMessageViewer::Hide(), mapeditorMainThread(), MainScreenWidget::mouseScrollChecker(), trunreplay::run(), signalQuit(), and Weathercast::Weathercast().

bool MultiLineEditor ( const ASCString title,
ASCString textToEdit 
)

Definition at line 710 of file paradialog.cpp.

References MultiLineEditorDialog::GetEditedText(), and ASC_PG_Dialog::RunModal().

Referenced by DisplayImmediateMessage::setup().

pair<int,int> new_chooseString ( const ASCString title,
const vector< ASCString > &  entries,
const vector< ASCString > &  buttons,
int  defaultEntry 
)

Returns:
ButtonPressed,SelectedItem

Definition at line 686 of file paradialog.cpp.

References NewStringChooser::getButton(), NewStringChooser::getItem(), and ASC_PG_Dialog::RunModal().

Referenced by chooseString(), and selectString().

void signalQuit ( int  i  ) 

Definition at line 120 of file paradialog.cpp.

References getPGApplication(), and ASC_PG_App::Quit().

Referenced by ASC_PG_App::ASC_PG_App().


Variable Documentation

ASC_PG_ScreenUpdater ascScreenUpdater

Referenced by ASC_PG_App::ASC_PG_App().

EventSupplier eventSupplier

Referenced by ASC_PG_App::ASC_PG_App().

ASC_PG_App* pgApp = NULL

Definition at line 117 of file paradialog.cpp.

Referenced by ASC_PG_App::ASC_PG_App(), and getPGApplication().


Generated on Mon May 21 01:40:54 2012 for Advanced Strategic Command by  doxygen 1.5.1