Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ItemSelectorWindow Class Reference

#include <selectionwindow.h>

Inheritance diagram for ItemSelectorWindow:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ItemSelectorWindow (PG_Widget *parent, const PG_Rect &r, const ASCString &title, SelectionItemFactory *itemFactory)
int RunModal ()
 Enter modal mode.
void reLoad ()

Protected Member Functions

bool eventKeyDown (const SDL_KeyboardEvent *key)
 Overridable Eventhandler for a SDL_KeyboardEvent message.

Constructor & Destructor Documentation

ItemSelectorWindow::ItemSelectorWindow PG_Widget parent,
const PG_Rect r,
const ASCString title,
SelectionItemFactory itemFactory
 

Definition at line 304 of file selectionwindow.cpp.

References PG_Window::GetTitlebarHeight(), PG_Rect::Height(), PG_Rect::PG_Rect(), PG_Widget::QuitModal(), PG_ThemeWidget::SetTransparency(), ItemSelectorWidget::sigItemSelected, ItemSelectorWidget::sigQuitModal, and PG_Rect::Width().


Member Function Documentation

bool ItemSelectorWindow::eventKeyDown const SDL_KeyboardEvent *  key  )  [protected, virtual]
 

Overridable Eventhandler for a SDL_KeyboardEvent message.

This handler is called when a key changed it's state from unpressed to pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
key SDL_KeyboardEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from ASC_PG_Dialog.

Definition at line 321 of file selectionwindow.cpp.

References PG_Widget::QuitModal().

void ItemSelectorWindow::reLoad  ) 
 

Definition at line 336 of file selectionwindow.cpp.

References ItemSelectorWidget::reLoad().

Referenced by showSelectionWindow().

int ItemSelectorWindow::RunModal  )  [virtual]
 

Enter modal mode.

Reimplemented from ASC_PG_Dialog.

Definition at line 330 of file selectionwindow.cpp.

References ItemSelectorWidget::resetNamesearch(), and PG_Widget::RunModal().

Referenced by addCargo(), VehicleProduction_SelectionWindow::addProductionLine(), chooseTechnology(), GuiFunctions::ConstructBuilding::execute(), selectItemID(), CargoGuiFunctions::selectVehicle(), showUnitCargoSummary(), showUnitSummary(), and unitProductionAnalysis().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:17:51 2008 for Advanced Strategic Command by  doxygen 1.4.2