Advanced Strategic Command
Public Member Functions | List of all members
PropertyDialog Class Reference

#include <common.h>

Inheritance diagram for PropertyDialog:
Inheritance graph
[legend]

Public Member Functions

 PropertyDialog (const ASCString &title)
 
 PropertyDialog (const ASCString &title, const PG_Rect &size)
 
void addBool (const ASCString &name, bool defaultValue)
 
void addInteger (const ASCString &name, int defaultValue)
 
void addIntDropdown (const ASCString &name, const StringArray &names, int defaultValue)
 
void addString (const ASCString &name, const ASCString &defaultValue)
 
std::string getString (const ASCString &name)
 
int getInteger (const ASCString &name)
 
bool getBool (const ASCString &name)
 
bool run ()
 
- Public Member Functions inherited from 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)
 
PG_Button * AddStandardButton (const ASCString &name)
 
void StandardButtonDirection (StandardButtonDirectonType dir)
 
int RunModal ()
 

Additional Inherited Members

- Public Types inherited from ASC_PG_Dialog
enum  StandardButtonDirectonType { Vertical, Horizontal }
 
- Static Public Member Functions inherited from ASC_PG_Dialog
static PG_Rect centerRectangle (const PG_Rect &rect)
 
- Protected Member Functions inherited from ASC_PG_Dialog
virtual bool closeWindow ()
 
bool quitModalLoopW (PG_Button *button, int value)
 
bool quitModalLoop (int value)
 
virtual bool eventKeyDown (const SDL_KeyboardEvent *key)
 
- Protected Attributes inherited from ASC_PG_Dialog
PG_MessageObject * caller
 

Detailed Description

Definition at line 54 of file common.h.

Constructor & Destructor Documentation

PropertyDialog::PropertyDialog ( const ASCString title)

Definition at line 95 of file common.cpp.

PropertyDialog::PropertyDialog ( const ASCString title,
const PG_Rect &  size 
)

Definition at line 100 of file common.cpp.

Member Function Documentation

void PropertyDialog::addBool ( const ASCString name,
bool  defaultValue 
)

Definition at line 106 of file common.cpp.

void PropertyDialog::addIntDropdown ( const ASCString name,
const StringArray names,
int  defaultValue 
)

Definition at line 118 of file common.cpp.

References StringArray::values.

void PropertyDialog::addInteger ( const ASCString name,
int  defaultValue 
)

Definition at line 112 of file common.cpp.

void PropertyDialog::addString ( const ASCString name,
const ASCString defaultValue 
)

Definition at line 124 of file common.cpp.

bool PropertyDialog::getBool ( const ASCString name)

Definition at line 140 of file common.cpp.

int PropertyDialog::getInteger ( const ASCString name)

Definition at line 135 of file common.cpp.

std::string PropertyDialog::getString ( const ASCString name)

Definition at line 130 of file common.cpp.

bool PropertyDialog::run ( void  )

Definition at line 145 of file common.cpp.

References ASC_PG_Dialog::RunModal().


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