Advanced Strategic Command
Public Member Functions | Protected Member Functions | List of all members
EditTechAdapter Class Reference
Inheritance diagram for EditTechAdapter:
Inheritance graph

Public Member Functions

 EditTechAdapter (Player &my_player)
- 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 ()

Protected Member Functions

bool handleButtonClick (PG_Button *button)
bool ok ()
bool cancel ()
bool add ()
bool remove ()
bool eventKeyDown (const SDL_KeyboardEvent *key)
- Protected Member Functions inherited from ASC_PG_Dialog
virtual bool closeWindow ()
bool quitModalLoopW (PG_Button *button, int value)
bool quitModalLoop (int value)

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 Attributes inherited from ASC_PG_Dialog
PG_MessageObject * caller

Detailed Description

Definition at line 168 of file edittechadapter.cpp.

Constructor & Destructor Documentation

EditTechAdapter::EditTechAdapter ( Player my_player)

Member Function Documentation

bool EditTechAdapter::add ( )
bool EditTechAdapter::cancel ( )

Definition at line 233 of file edittechadapter.cpp.

Referenced by EditTechAdapter().

bool EditTechAdapter::eventKeyDown ( const SDL_KeyboardEvent *  key)

Reimplemented from ASC_PG_Dialog.

Definition at line 256 of file edittechadapter.cpp.

References ok().

bool EditTechAdapter::handleButtonClick ( PG_Button *  button)

Definition at line 221 of file edittechadapter.cpp.

bool EditTechAdapter::ok ( )

Definition at line 226 of file edittechadapter.cpp.

References Player::research, and Research::setPredefinedTechAdapter().

Referenced by EditTechAdapter(), and eventKeyDown().

bool EditTechAdapter::remove ( )

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