![]() |
ManaPlus
|
#include <touchactionmodel.h>
Public Member Functions | |
| TouchActionsModel () | |
| InputActionT | getActionFromSelection (const int sel) const |
| int | getSelectionFromAction (const InputActionT action) const |
Public Member Functions inherited from NamesModel | |
| NamesModel () | |
| ~NamesModel () | |
| int | getNumberOfElements () |
| std::string | getElementAt (int i) |
| StringVect & | getNames () |
| size_t | size () const |
| void | clear () |
| void | add (const std::string &str) |
| void | fillFromArray (const char *const *const arr, const std::size_t size) |
| void | fillFromVector (const StringVect &vect) |
Public Member Functions inherited from ListModel | |
| ListModel () | |
| virtual | ~ListModel () |
Private Attributes | |
| std::vector< InputActionT > | mActionId |
| std::map< InputActionT, int > | mActionToSelection |
Additional Inherited Members | |
Protected Attributes inherited from NamesModel | |
| StringVect | mNames |
Definition at line 31 of file touchactionmodel.h.
| TouchActionsModel::TouchActionsModel | ( | ) |
Definition at line 49 of file touchactionmodel.cpp.
References SetupActionData::actionId, data, FOR_EACH, mActionId, mActionToSelection, NamesModel::mNames, SetupActionData::name, touchActionData, touchActionDataSize, and touchActionSorter.
| InputActionT TouchActionsModel::getActionFromSelection | ( | const int | sel | ) | const |
Definition at line 78 of file touchactionmodel.cpp.
References mActionId, and InputAction::NO_VALUE.
Referenced by SetupActionDropDown::fromWidget().
| int TouchActionsModel::getSelectionFromAction | ( | const InputActionT | action | ) | const |
Definition at line 85 of file touchactionmodel.cpp.
References mActionToSelection.
Referenced by SetupActionDropDown::createControls(), and SetupActionDropDown::toWidget().
|
private |
Definition at line 43 of file touchactionmodel.h.
Referenced by getActionFromSelection(), and TouchActionsModel().
|
private |
Definition at line 44 of file touchactionmodel.h.
Referenced by getSelectionFromAction(), and TouchActionsModel().