Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UpgradeOperationMountDialog Class Reference
Inheritance diagram for UpgradeOperationMountDialog:
ListQuestionDialog QuestionDialog ModalDialog WindowController

Public Member Functions

virtual bool processWindowCommand (const EventCommandId &command, Control *control)
 
- Public Member Functions inherited from ListQuestionDialog
virtual void initControls (void)
 
class SimplePickergetPicker ()
 
- Public Member Functions inherited from QuestionDialog
virtual void init (const std::string &title)
 
virtual void run (void)
 
 QuestionDialog ()
 
virtual ~QuestionDialog (void)
 
- Public Member Functions inherited from ModalDialog
virtual void setCallback (ModalDialogCallback *cb, const std::string &id)
 
virtual void init (void)
 
void modalFinished (void)
 
 ModalDialog ()
 
virtual ~ModalDialog (void)
 
- Public Member Functions inherited from WindowController
virtual void draw (void)
 
virtual Windowwindow (void)
 
virtual void setWindow (Window *w)
 
 WindowController ()
 
virtual ~WindowController (void)
 

Additional Inherited Members

- Static Protected Member Functions inherited from ListQuestionDialog
static void CreateControlsForListWindow (Window *w)
 
- Protected Attributes inherited from QuestionDialog
bool m_deleteWindow
 

Detailed Description

Definition at line 3613 of file basecomputer.cpp.

Member Function Documentation

bool UpgradeOperationMountDialog::processWindowCommand ( const EventCommandId command,
Control control 
)
virtual

Reimplemented from ListQuestionDialog.

Definition at line 3621 of file basecomputer.cpp.

References ListQuestionDialog::processWindowCommand(), Picker::selectCell(), Picker::selectedCell(), and PickerCell::tag().

3622 {
3623  if (command == "Picker::NewSelection") {
3624  assert( control != NULL );
3625  Picker *picker = static_cast< Picker* > (control);
3626  PickerCell *cell = picker->selectedCell();
3627  if (cell && cell->tag() == 0)
3628  //An "unselectable" cell was selected. Turn the selection back off.
3629  picker->selectCell( NULL );
3630  return true;
3631  }
3632  //Only thing we care about is the selection changing.
3633  return ListQuestionDialog::processWindowCommand( command, control );
3634 }

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