#include <selectionwindow.h>
Inheritance diagram for ItemSelectorWidget:

Public Member Functions | |
| ItemSelectorWidget (PG_Widget *parent, const PG_Rect &r, SelectionItemFactory *itemFactory) | |
| void | constrainNames (bool constrain) |
| int | getItemNum () const |
| void | reLoad (bool show=false) |
| void | resetNamesearch () |
| ~ItemSelectorWidget () | |
Public Attributes | |
| SigC::Signal1< void, const SelectionWidget * > | sigItemSelected |
| SigC::Signal1< void, ASCString > | nameEntered |
| SigC::Signal0< bool > | sigQuitModal |
Protected Member Functions | |
| bool | moveSelection (int amount) |
| bool | eventKeyDown (const SDL_KeyboardEvent *key) |
| Overridable Eventhandler for a SDL_KeyboardEvent message. | |
| void | itemSelected (const SelectionWidget *w, bool mouse) |
| void | markItem (const SelectionWidget *w) |
| bool | isItemMarked (const SelectionWidget *w) |
| bool | locateObject (const ASCString &name) |
| bool | nameMatch (const SelectionWidget *selection, const ASCString &name) |
|
||||||||||||||||
|
Definition at line 225 of file selectionwindow.cpp. References SelectionItemFactory::getDefaultItem(), PG_Rect::Height(), markItem(), PG_Rect::PG_Rect(), reLoad(), PG_Widget::SetTransparency(), and PG_Rect::Width(). |
|
|
Definition at line 297 of file selectionwindow.cpp. |
|
|
Definition at line 240 of file selectionwindow.cpp. Referenced by FileSelectionWindow::FileSelectionWindow(). |
|
|
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.
Reimplemented from PG_MessageObject. Definition at line 90 of file selectionwindow.cpp. References PG_Widget::GetText(), itemSelected(), locateObject(), moveSelection(), nameEntered, nameMatch(), PG_LineEdit::SendBackspace(), and PG_LineEdit::SendChar(). |
|
|
Definition at line 126 of file selectionwindow.h. Referenced by ChooseTech::ok(). |
|
|
Definition at line 182 of file selectionwindow.cpp. |
|
||||||||||||
|
Definition at line 168 of file selectionwindow.cpp. References SelectionItemFactory::itemSelected(), sigItemSelected, and PG_Widget::Update(). Referenced by eventKeyDown(), and reLoad(). |
|
|
Definition at line 187 of file selectionwindow.cpp. References markItem(), nameMatch(), PG_ScrollWidget::ScrollToWidget(), and PG_Widget::Update(). Referenced by eventKeyDown(). |
|
|
Definition at line 175 of file selectionwindow.cpp. References SelectionItemFactory::itemMarked(). Referenced by ItemSelectorWidget(), locateObject(), and reLoad(). |
|
|
Definition at line 54 of file selectionwindow.cpp. References resetNamesearch(), PG_ScrollWidget::ScrollToWidget(), and PG_Widget::Update(). Referenced by eventKeyDown(). |
|
||||||||||||
|
Definition at line 200 of file selectionwindow.cpp. References SelectionWidget::getName(), and ASCString::toLower(). Referenced by eventKeyDown(), and locateObject(). |
|
|
|
Definition at line 292 of file selectionwindow.cpp. References PG_LineEdit::SetText(). Referenced by moveSelection(), and ItemSelectorWindow::RunModal(). |
|
|
Definition at line 122 of file selectionwindow.h. Referenced by eventKeyDown(), and FileSelectionWindow::FileSelectionWindow(). |
|
|
Definition at line 121 of file selectionwindow.h. Referenced by itemSelected(), and ItemSelectorWindow::ItemSelectorWindow(). |
|
|
Definition at line 123 of file selectionwindow.h. Referenced by FileSelectionWindow::FileSelectionWindow(), ItemSelectorWindow::ItemSelectorWindow(), MessageSelectionWindow::MessageSelectionWindow(), and VehicleProduction_SelectionWindow::VehicleProduction_SelectionWindow(). |
1.4.2