|
OpenMW
|
A proxy item model can be used to filter or rearrange items from a source model (or even add new items to it). The neat thing is that this does not actually alter the source model. More...
#include <itemmodel.hpp>
Public Member Functions | |
| virtual | ~ProxyItemModel () |
| virtual void | copyItem (const ItemStack &item, size_t count) |
| virtual void | removeItem (const ItemStack &item, size_t count) |
| virtual ModelIndex | getIndex (ItemStack item) |
| ModelIndex | mapToSource (ModelIndex index) |
| ModelIndex | mapFromSource (ModelIndex index) |
Protected Attributes | |
| ItemModel * | mSourceModel |
A proxy item model can be used to filter or rearrange items from a source model (or even add new items to it). The neat thing is that this does not actually alter the source model.
| MWGui::ProxyItemModel::~ProxyItemModel | ( | ) | [virtual] |
| void MWGui::ProxyItemModel::copyItem | ( | const ItemStack & | item, |
| size_t | count | ||
| ) | [virtual] |
Implements MWGui::ItemModel.
| ItemModel::ModelIndex MWGui::ProxyItemModel::getIndex | ( | ItemStack | item | ) | [virtual] |
Implements MWGui::ItemModel.
| void MWGui::ProxyItemModel::removeItem | ( | const ItemStack & | item, |
| size_t | count | ||
| ) | [virtual] |
Implements MWGui::ItemModel.
Reimplemented in MWGui::PickpocketItemModel.
ItemModel* MWGui::ProxyItemModel::mSourceModel [protected] |
1.7.6.1