#include <sortfilteritemmodel.hpp>
MWGui::SortFilterItemModel::SortFilterItemModel |
( |
ItemModel * |
sourceModel | ) |
|
void MWGui::SortFilterItemModel::addDragItem |
( |
const MWWorld::Ptr & |
dragItem, |
|
|
size_t |
count |
|
) |
| |
Dragged items are not displayed.
void MWGui::SortFilterItemModel::clearDragItems |
( |
| ) |
|
bool MWGui::SortFilterItemModel::filterAccepts |
( |
const ItemStack & |
item | ) |
|
size_t MWGui::SortFilterItemModel::getItemCount |
( |
| ) |
|
|
virtual |
The number of items in the model, this specifies the range of indices you can pass to the getItem function (but this range is only valid until the next call to update())
Implements MWGui::ItemModel.
void MWGui::SortFilterItemModel::setCategory |
( |
int |
category | ) |
|
void MWGui::SortFilterItemModel::setFilter |
( |
int |
filter | ) |
|
void MWGui::SortFilterItemModel::setSortByType |
( |
bool |
sort | ) |
|
|
inline |
void MWGui::SortFilterItemModel::update |
( |
| ) |
|
|
virtual |
Rebuild the item model, this will invalidate existing model indices.
Implements MWGui::ItemModel.
const int MWGui::SortFilterItemModel::Category_All = 255 |
|
static |
const int MWGui::SortFilterItemModel::Category_Apparel = (1<<2) |
|
static |
const int MWGui::SortFilterItemModel::Category_Magic = (1<<4) |
|
static |
const int MWGui::SortFilterItemModel::Category_Misc = (1<<3) |
|
static |
const int MWGui::SortFilterItemModel::Category_Weapon = (1<<1) |
|
static |
const int MWGui::SortFilterItemModel::Filter_OnlyChargedSoulstones = (1<<3) |
|
static |
const int MWGui::SortFilterItemModel::Filter_OnlyEnchantable = (1<<2) |
|
static |
const int MWGui::SortFilterItemModel::Filter_OnlyEnchanted = (1<<1) |
|
static |
const int MWGui::SortFilterItemModel::Filter_OnlyIngredients = (1<<0) |
|
static |
const int MWGui::SortFilterItemModel::Filter_OnlyRechargable = (1<<6) |
|
static |
const int MWGui::SortFilterItemModel::Filter_OnlyRepairable = (1<<5) |
|
static |
const int MWGui::SortFilterItemModel::Filter_OnlyUsableItems = (1<<4) |
|
static |
int MWGui::SortFilterItemModel::mCategory |
|
private |
std::vector<std::pair<MWWorld::Ptr, size_t> > MWGui::SortFilterItemModel::mDragItems |
|
private |
int MWGui::SortFilterItemModel::mFilter |
|
private |
std::vector<ItemStack> MWGui::SortFilterItemModel::mItems |
|
private |
bool MWGui::SortFilterItemModel::mSortByType |
|
private |
The documentation for this class was generated from the following files: