ManaPlus
|
#include <skillmodel.h>
Public Member Functions | |
SkillModel () | |
SkillInfo * | getSkillAt (const int i) const |
std::string | getElementAt (int i) |
int | getNumberOfElements () |
void | addSkill (SkillInfo *const info) |
void | updateVisibilities () |
Public Member Functions inherited from ListModel | |
ListModel () | |
virtual | ~ListModel () |
Private Attributes | |
SkillList | mSkills |
SkillList | mVisibleSkills |
Definition at line 35 of file skillmodel.h.
SkillModel::SkillModel | ( | ) |
Definition at line 32 of file skillmodel.cpp.
|
inline |
Definition at line 49 of file skillmodel.h.
References Actions::info(), and mSkills.
Referenced by SkillDialog::addSkill(), and SkillDialog::loadSkill().
|
virtual |
Gets an element at a certain index in the list.
i | An index in the list. |
Implements ListModel.
Definition at line 46 of file skillmodel.cpp.
References getSkillAt(), and Actions::info().
|
inlinevirtual |
Gets the number of elements in the list.
Implements ListModel.
Definition at line 46 of file skillmodel.h.
References CAST_S32, and mVisibleSkills.
Referenced by SkillListBox::draw(), SkillRectangleListBox::draw(), SkillRectangleListBox::getSelectedInfo(), SkillRectangleListBox::getSelectionByEvent(), SkillListBox::getSkillByEvent(), SkillRectangleListBox::getSkillByEvent(), SkillRectangleListBox::setSelected(), and SkillRectangleListBox::SkillRectangleListBox().
SkillInfo * SkillModel::getSkillAt | ( | const int | i | ) | const |
Definition at line 39 of file skillmodel.cpp.
References CAST_S32, and mVisibleSkills.
Referenced by SkillListBox::draw(), SkillRectangleListBox::draw(), getElementAt(), SkillRectangleListBox::getSelectedInfo(), SkillRectangleListBox::getSelectionByEvent(), SkillListBox::getSkillByEvent(), SkillRectangleListBox::getSkillByEvent(), SkillListBox::mousePressed(), SkillRectangleListBox::mousePressed(), and SkillRectangleListBox::SkillRectangleListBox().
void SkillModel::updateVisibilities | ( | ) |
Definition at line 54 of file skillmodel.cpp.
References FOR_EACH, mSkills, mVisibleSkills, and Visible_true.
Referenced by SkillDialog::addSkill(), SkillDialog::loadXmlFile(), SkillInfo::update(), SkillDialog::updateModels(), and SkillDialog::updateModelsHidden().
|
private |
Definition at line 55 of file skillmodel.h.
Referenced by addSkill(), and updateVisibilities().
|
private |
Definition at line 56 of file skillmodel.h.
Referenced by getNumberOfElements(), getSkillAt(), and updateVisibilities().