ManaPlus
|
#include <extendednamesmodel.h>
Public Member Functions | |
ExtendedNamesModel () | |
~ExtendedNamesModel () | |
int | getNumberOfElements () |
std::string | getElementAt (int i) |
const Image * | getImageAt (int i) |
StringVect & | getNames () |
std::vector< Image * > & | getImages () |
size_t | size () |
void | add (const std::string &str) |
void | clear () |
Public Member Functions inherited from ExtendedListModel | |
ExtendedListModel () | |
Public Member Functions inherited from ListModel | |
ListModel () | |
virtual | ~ListModel () |
Protected Attributes | |
StringVect | mNames |
std::vector< Image * > | mImages |
Definition at line 29 of file extendednamesmodel.h.
ExtendedNamesModel::ExtendedNamesModel | ( | ) |
Definition at line 29 of file extendednamesmodel.cpp.
ExtendedNamesModel::~ExtendedNamesModel | ( | ) |
Definition at line 35 of file extendednamesmodel.cpp.
References clear().
|
inline |
Definition at line 53 of file extendednamesmodel.h.
References mNames.
Referenced by MailWindow::addMail(), MailWindow::refreshMailNames(), and MailWindow::removeMail().
void ExtendedNamesModel::clear | ( | ) |
Definition at line 60 of file extendednamesmodel.cpp.
References FOR_EACH, mImages, and mNames.
Referenced by MailWindow::clear(), QuestsWindow::rebuild(), MailWindow::refreshMailNames(), MailWindow::removeMail(), and ~ExtendedNamesModel().
|
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 extendednamesmodel.cpp.
References CAST_SIZE, getNumberOfElements(), and mNames.
|
virtual |
|
inline |
Definition at line 47 of file extendednamesmodel.h.
References mImages.
Referenced by QuestsWindow::rebuild().
|
inline |
Definition at line 44 of file extendednamesmodel.h.
References mNames.
Referenced by QuestsWindow::rebuild().
|
virtual |
Gets the number of elements in the list.
Implements ListModel.
Definition at line 40 of file extendednamesmodel.cpp.
References CAST_S32, and mNames.
Referenced by getElementAt().
|
inline |
|
protected |
Definition at line 60 of file extendednamesmodel.h.
Referenced by clear(), getImageAt(), and getImages().
|
protected |
Definition at line 59 of file extendednamesmodel.h.
Referenced by add(), clear(), getElementAt(), getNames(), getNumberOfElements(), and size().