Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <modaldialog.h>
Public Member Functions | |
virtual void | setCallback (ModalDialogCallback *cb, const std::string &id) |
virtual void | init (void) |
virtual void | run (void) |
virtual bool | processWindowCommand (const EventCommandId &command, Control *control) |
void | modalFinished (void) |
ModalDialog () | |
virtual | ~ModalDialog (void) |
![]() | |
virtual void | draw (void) |
virtual Window * | window (void) |
virtual void | setWindow (Window *w) |
WindowController () | |
virtual | ~WindowController (void) |
Protected Attributes | |
std::string | m_callbackId |
ModalDialogCallback * | m_callback |
int | m_result |
![]() | |
Window * | m_window |
bool | m_deleteOnWindowClose |
Definition at line 53 of file modaldialog.h.
ModalDialog::ModalDialog | ( | ) |
Definition at line 66 of file modaldialog.cpp.
|
inlinevirtual |
Definition at line 72 of file modaldialog.h.
|
inlinevirtual |
Implements WindowController.
Definition at line 60 of file modaldialog.h.
Referenced by QuestionDialog::init().
void ModalDialog::modalFinished | ( | void | ) |
Definition at line 48 of file modaldialog.cpp.
References Window::close(), globalEventManager(), m_callback, m_callbackId, WindowController::m_deleteOnWindowClose, m_result, ModalDialogCallback::modalDialogResult(), EventManager::removeResponder(), and WindowController::window().
Referenced by ListQuestionDialog::processWindowCommand().
|
virtual |
Reimplemented from WindowController.
Reimplemented in UpgradeOperationMountDialog, and ListQuestionDialog.
Definition at line 60 of file modaldialog.cpp.
References WindowController::processWindowCommand().
Referenced by ListQuestionDialog::processWindowCommand().
|
virtual |
Reimplemented from WindowController.
Reimplemented in QuestionDialog.
Definition at line 41 of file modaldialog.cpp.
References WindowController::run(), EventResponder::setModal(), and WindowController::window().
Referenced by QuestionDialog::run().
|
virtual |
Definition at line 34 of file modaldialog.cpp.
References m_callback, and m_callbackId.
Referenced by BaseComputer::BuyUpgradeOperation::selectMount(), BaseComputer::SellUpgradeOperation::selectMount(), showListQuestion(), and showYesNoQuestion().
|
protected |
Definition at line 78 of file modaldialog.h.
Referenced by modalFinished(), and setCallback().
|
protected |
Definition at line 77 of file modaldialog.h.
Referenced by modalFinished(), and setCallback().
|
protected |
Definition at line 79 of file modaldialog.h.
Referenced by modalFinished(), and ListQuestionDialog::processWindowCommand().