![]() |
ManaPlus
|
#include <namesmodel.h>
Public Member Functions | |
| 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 () |
Protected Attributes | |
| StringVect | mNames |
Definition at line 31 of file namesmodel.h.
| NamesModel::NamesModel | ( | ) |
Definition at line 30 of file namesmodel.cpp.
| NamesModel::~NamesModel | ( | ) |
Definition at line 36 of file namesmodel.cpp.
|
inline |
Definition at line 53 of file namesmodel.h.
References mNames.
Referenced by TextSelectDialog::addText(), Setup_Visual::Setup_Visual(), and EmoteWindow::show().
|
inline |
| void NamesModel::fillFromArray | ( | const char *const *const | arr, |
| const std::size_t | size | ||
| ) |
Definition at line 52 of file namesmodel.cpp.
References mNames.
Referenced by EmoteWindow::postInit(), Setup_Misc::Setup_Misc(), Setup_Perfomance::Setup_Perfomance(), Setup_Players::Setup_Players(), Setup_Touch::Setup_Touch(), and Setup_Visual::Setup_Visual().
| void NamesModel::fillFromVector | ( | const StringVect & | vect | ) |
Definition at line 61 of file namesmodel.cpp.
|
virtual |
Gets an element at a certain index in the list.
| i | An index in the list. |
Implements ListModel.
Definition at line 45 of file namesmodel.cpp.
References CAST_SIZE, getNumberOfElements(), and mNames.
Referenced by TextSelectDialog::action().
|
inline |
Definition at line 44 of file namesmodel.h.
References mNames.
Referenced by Setup_Joystick::action(), and Setup_Joystick::Setup_Joystick().
|
virtual |
Gets the number of elements in the list.
Implements ListModel.
Definition at line 40 of file namesmodel.cpp.
References CAST_S32, and mNames.
Referenced by TextSelectDialog::action(), and getElementAt().
|
inline |
Definition at line 47 of file namesmodel.h.
References mNames.
Referenced by TextSelectDialog::action(), and Setup_Joystick::Setup_Joystick().
|
protected |
Definition at line 62 of file namesmodel.h.
Referenced by add(), clear(), fillFromArray(), fillFromVector(), FontsModel::FontsModel(), getElementAt(), getNames(), getNumberOfElements(), size(), SoundsModel::SoundsModel(), ThemesModel::ThemesModel(), and TouchActionsModel::TouchActionsModel().