1 #ifndef MGUI_Inventory_H
2 #define MGUI_Inventory_H
7 #include "../mwworld/ptr.hpp"
21 class InventoryPreview;
68 void cycle(
bool next);
103 std::auto_ptr<MWRender::InventoryPreview>
mPreview;
112 void sellItem(MyGUI::Widget* sender,
int count);
113 void dragItem(MyGUI::Widget* sender,
int count);
134 #endif // Inventory_H
Definition: inventorywindow.hpp:37
void onPinToggled()
Definition: inventorywindow.cpp:434
TradeItemModel * getTradeModel()
Definition: inventorywindow.cpp:186
Wrapper class that constructs and provides access to the most commonly used resource subsystems...
Definition: resourcesystem.hpp:24
MyGUI::Button * mFilterApparel
Definition: inventorywindow.hpp:91
void updateItemView()
Definition: inventorywindow.cpp:332
void onItemSelectedFromSourceModel(int index)
Definition: inventorywindow.cpp:207
The base class that all item models should derive from.
Definition: itemmodel.hpp:43
void updatePreviewSize()
Definition: inventorywindow.cpp:399
Definition: itemview.hpp:11
An item model that allows 'borrowing' items from another item model. Used for previewing barter offer...
Definition: tradeitemmodel.hpp:13
void cycle(bool next)
Cycle to previous/next weapon.
Definition: inventorywindow.cpp:649
MyGUI::Button * mFilterMagic
Definition: inventorywindow.hpp:92
void onFrame()
Definition: inventorywindow.cpp:566
MyGUI::TextBox * mArmorRating
Definition: inventorywindow.hpp:83
bool mTrading
Definition: inventorywindow.hpp:105
void updateArmorRating()
Definition: inventorywindow.cpp:391
InventoryWindow(DragAndDrop *dragAndDrop, osg::Group *parent, Resource::ResourceSystem *resourceSystem)
Definition: inventorywindow.cpp:59
MyGUI::Button * mFilterAll
Definition: inventorywindow.hpp:89
Definition: draganddrop.hpp:17
void setGuiMode(GuiMode mode)
Definition: inventorywindow.cpp:141
void updatePlayer()
Definition: inventorywindow.cpp:120
void adjustPanes()
Definition: inventorywindow.cpp:109
std::auto_ptr< MyGUI::ITexture > mPreviewTexture
Definition: inventorywindow.hpp:102
void dragItem(MyGUI::Widget *sender, int count)
Definition: inventorywindow.cpp:301
GuiMode mGuiMode
Definition: inventorywindow.hpp:97
MyGUI::Button * mFilterMisc
Definition: inventorywindow.hpp:93
int mLastXSize
Definition: inventorywindow.hpp:99
std::auto_ptr< MWRender::InventoryPreview > mPreview
Definition: inventorywindow.hpp:103
Definition: windowpinnablebase.hpp:10
SortFilterItemModel * getSortFilterModel()
Definition: inventorywindow.cpp:181
MyGUI::Widget * mLeftPane
Definition: inventorywindow.hpp:86
void onAvatarClicked(MyGUI::Widget *_sender)
Definition: inventorywindow.cpp:500
void onTitleDoubleClicked()
Definition: inventorywindow.cpp:439
Definition: sortfilteritemmodel.hpp:9
void onFilterChanged(MyGUI::Widget *_sender)
Definition: inventorywindow.cpp:410
void notifyContentChanged()
Definition: inventorywindow.cpp:586
int mLastYSize
Definition: inventorywindow.hpp:100
MWGui::ItemView * mItemView
Definition: inventorywindow.hpp:77
void dirtyPreview()
Definition: inventorywindow.cpp:579
MWWorld::Ptr mPtr
Definition: inventorywindow.hpp:75
int mSelectedItem
Definition: inventorywindow.hpp:73
void onItemSelected(int index)
Definition: inventorywindow.cpp:202
MyGUI::Widget * mAvatar
Definition: inventorywindow.hpp:81
MyGUI::Widget * mRightPane
Definition: inventorywindow.hpp:87
void updateEncumbranceBar()
Definition: inventorywindow.cpp:556
MWWorld::Ptr getAvatarSelectedItem(int x, int y)
Definition: inventorywindow.cpp:535
MWWorld::Ptr mSkippedToEquip
Definition: inventorywindow.hpp:95
void ensureSelectedItemUnequipped(int count)
Unequips count items from mSelectedItem, if it is equipped, and then updates mSelectedItem in case th...
Definition: inventorywindow.cpp:268
GuiMode
Definition: mode.hpp:6
Widgets::MWDynamicStat * mEncumbranceBar
Definition: inventorywindow.hpp:84
void setTrading(bool trading)
start trading, disables item drag&drop
Definition: inventorywindow.cpp:574
MyGUI::Button * mFilterWeapon
Definition: inventorywindow.hpp:90
TradeItemModel * mTradeModel
Definition: inventorywindow.hpp:79
void rebuildAvatar()
Definition: inventorywindow.cpp:698
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
void onBackgroundSelected()
Definition: inventorywindow.cpp:196
SortFilterItemModel * mSortModel
Definition: inventorywindow.hpp:78
ItemModel * getModel()
Definition: inventorywindow.cpp:191
DragAndDrop * mDragAndDrop
Definition: inventorywindow.hpp:71
void sellItem(MyGUI::Widget *sender, int count)
Definition: inventorywindow.cpp:308
void pickUpObject(MWWorld::Ptr object)
Definition: inventorywindow.cpp:597
virtual void open()
Notify that window has been made visible.
Definition: inventorywindow.cpp:341
void onWindowResize(MyGUI::Window *_sender)
Definition: inventorywindow.cpp:353
MyGUI::ImageBox * mAvatarImage
Definition: inventorywindow.hpp:82
void useItem(const MWWorld::Ptr &ptr)
Definition: inventorywindow.cpp:445