OpenMW
Public Member Functions | Protected Attributes
MWGui::ProxyItemModel Class Reference

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>

List of all members.

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

ItemModelmSourceModel

Detailed Description

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.


Constructor & Destructor Documentation


Member Function Documentation

void MWGui::ProxyItemModel::copyItem ( const ItemStack item,
size_t  count 
) [virtual]

Implements MWGui::ItemModel.

Implements MWGui::ItemModel.

void MWGui::ProxyItemModel::removeItem ( const ItemStack item,
size_t  count 
) [virtual]

Implements MWGui::ItemModel.

Reimplemented in MWGui::PickpocketItemModel.


Member Data Documentation


The documentation for this class was generated from the following files: