|
|
@ -75,7 +75,8 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
|
|
/// Is the player allowed to insert items into this model? (default true)
|
|
|
|
/// Is the player allowed to insert items into this model? (default true)
|
|
|
|
virtual bool allowedToInsertItems() const;
|
|
|
|
virtual bool allowedToInsertItems() const;
|
|
|
|
virtual bool onTakeItem(const MWWorld::Ptr &item, int count);
|
|
|
|
virtual bool onDropItem(const MWWorld::Ptr &item, int count) const;
|
|
|
|
|
|
|
|
virtual bool onTakeItem(const MWWorld::Ptr &item, int count) const;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
ItemModel(const ItemModel&);
|
|
|
|
ItemModel(const ItemModel&);
|
|
|
@ -92,10 +93,12 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
|
|
bool allowedToUseItems() const;
|
|
|
|
bool allowedToUseItems() const;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual bool onDropItem(const MWWorld::Ptr &item, int count) const;
|
|
|
|
|
|
|
|
virtual bool onTakeItem(const MWWorld::Ptr &item, int count) const;
|
|
|
|
|
|
|
|
|
|
|
|
virtual MWWorld::Ptr copyItem (const ItemStack& item, size_t count, bool setNewOwner=false);
|
|
|
|
virtual MWWorld::Ptr copyItem (const ItemStack& item, size_t count, bool setNewOwner=false);
|
|
|
|
virtual void removeItem (const ItemStack& item, size_t count);
|
|
|
|
virtual void removeItem (const ItemStack& item, size_t count);
|
|
|
|
virtual ModelIndex getIndex (ItemStack item);
|
|
|
|
virtual ModelIndex getIndex (ItemStack item);
|
|
|
|
virtual bool onTakeItem(const MWWorld::Ptr &item, int count);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// @note Takes ownership of the passed pointer.
|
|
|
|
/// @note Takes ownership of the passed pointer.
|
|
|
|
void setSourceModel(ItemModel* sourceModel);
|
|
|
|
void setSourceModel(ItemModel* sourceModel);
|
|
|
|