OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MWGui::KeyboardNavigation Class Reference

#include <keyboardnavigation.hpp>

Inheritance diagram for MWGui::KeyboardNavigation:
Collaboration diagram for MWGui::KeyboardNavigation:

Public Member Functions

 KeyboardNavigation ()
 
 ~KeyboardNavigation ()
 
bool injectKeyPress (MyGUI::KeyCode key, unsigned int text, bool repeat)
 
void saveFocus (int mode)
 
void restoreFocus (int mode)
 
void _unlinkWidget (MyGUI::Widget *widget)
 
void onFrame ()
 
void setDefaultFocus (MyGUI::Widget *window, MyGUI::Widget *defaultFocus)
 Set a key focus widget for this window, if one isn't already set. More...
 
void setModalWindow (MyGUI::Widget *window)
 
void setEnabled (bool enabled)
 

Private Member Functions

bool switchFocus (int direction, bool wrap)
 
bool selectFirstWidget ()
 
bool accept ()
 Send button press event to focused button. More...
 

Private Attributes

std::map< int, MyGUI::Widget * > mKeyFocus
 
MyGUI::Widget * mCurrentFocus
 
MyGUI::Widget * mModalWindow
 
bool mEnabled
 

Constructor & Destructor Documentation

MWGui::KeyboardNavigation::KeyboardNavigation ( )
MWGui::KeyboardNavigation::~KeyboardNavigation ( )

Member Function Documentation

void MWGui::KeyboardNavigation::_unlinkWidget ( MyGUI::Widget *  widget)
bool MWGui::KeyboardNavigation::accept ( )
private

Send button press event to focused button.

Here is the caller graph for this function:

bool MWGui::KeyboardNavigation::injectKeyPress ( MyGUI::KeyCode  key,
unsigned int  text,
bool  repeat 
)
Returns
Was the key handled by this class?

Here is the call graph for this function:

void MWGui::KeyboardNavigation::onFrame ( )

Here is the call graph for this function:

void MWGui::KeyboardNavigation::restoreFocus ( int  mode)

Here is the call graph for this function:

void MWGui::KeyboardNavigation::saveFocus ( int  mode)

Here is the call graph for this function:

bool MWGui::KeyboardNavigation::selectFirstWidget ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::KeyboardNavigation::setDefaultFocus ( MyGUI::Widget *  window,
MyGUI::Widget *  defaultFocus 
)

Set a key focus widget for this window, if one isn't already set.

Here is the call graph for this function:

void MWGui::KeyboardNavigation::setEnabled ( bool  enabled)
void MWGui::KeyboardNavigation::setModalWindow ( MyGUI::Widget *  window)
bool MWGui::KeyboardNavigation::switchFocus ( int  direction,
bool  wrap 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

MyGUI::Widget* MWGui::KeyboardNavigation::mCurrentFocus
private
bool MWGui::KeyboardNavigation::mEnabled
private
std::map<int, MyGUI::Widget*> MWGui::KeyboardNavigation::mKeyFocus
private
MyGUI::Widget* MWGui::KeyboardNavigation::mModalWindow
private

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