OpenMW
Public Member Functions | Private Member Functions | Private Attributes
MWGui::InventoryWindow Class Reference

#include <inventorywindow.hpp>

List of all members.

Public Member Functions

 InventoryWindow (DragAndDrop *dragAndDrop)
virtual void open ()
void doRenderUpdate ()
void setTrading (bool trading)
 start trading, disables item drag&drop
void onFrame ()
void pickUpObject (MWWorld::Ptr object)
int getPlayerGold ()
MyGUI::IntCoord getAvatarScreenCoord ()
MWWorld::Ptr getAvatarSelectedItem (int x, int y)
void rebuildAvatar ()
TradeItemModel * getTradeModel ()
ItemModel * getModel ()
void updateItemView ()
void updatePlayer ()
void setGuiMode (GuiMode mode)

Private Member Functions

void onItemSelected (int index)
void onItemSelectedFromSourceModel (int index)
void onBackgroundSelected ()
void sellItem (MyGUI::Widget *sender, int count)
void dragItem (MyGUI::Widget *sender, int count)
void onWindowResize (MyGUI::Window *_sender)
void onFilterChanged (MyGUI::Widget *_sender)
void onAvatarClicked (MyGUI::Widget *_sender)
void onPinToggled ()
void updateEncumbranceBar ()
void notifyContentChanged ()
void adjustPanes ()

Private Attributes

DragAndDrop * mDragAndDrop
bool mPreviewDirty
size_t mSelectedItem
MWWorld::Ptr mPtr
MWGui::ItemView * mItemView
SortFilterItemModel * mSortModel
TradeItemModel * mTradeModel
MyGUI::Widget * mAvatar
MyGUI::ImageBox * mAvatarImage
MyGUI::TextBox * mArmorRating
Widgets::MWDynamicStat * mEncumbranceBar
MyGUI::Widget * mLeftPane
MyGUI::Widget * mRightPane
MyGUI::Button * mFilterAll
MyGUI::Button * mFilterWeapon
MyGUI::Button * mFilterApparel
MyGUI::Button * mFilterMagic
MyGUI::Button * mFilterMisc
GuiMode mGuiMode
int mLastXSize
int mLastYSize
MWRender::InventoryPreview mPreview
bool mTrading

Constructor & Destructor Documentation


Member Function Documentation

void MWGui::InventoryWindow::dragItem ( MyGUI::Widget *  sender,
int  count 
) [private]
void MWGui::InventoryWindow::onAvatarClicked ( MyGUI::Widget *  _sender) [private]
void MWGui::InventoryWindow::onFilterChanged ( MyGUI::Widget *  _sender) [private]
void MWGui::InventoryWindow::onItemSelected ( int  index) [private]
void MWGui::InventoryWindow::onPinToggled ( ) [private, virtual]
void MWGui::InventoryWindow::onWindowResize ( MyGUI::Window *  _sender) [private]
void MWGui::InventoryWindow::open ( ) [virtual]

Reimplemented from MWGui::WindowBase.

void MWGui::InventoryWindow::sellItem ( MyGUI::Widget *  sender,
int  count 
) [private]
void MWGui::InventoryWindow::setTrading ( bool  trading)

start trading, disables item drag&drop


Member Data Documentation

MyGUI::TextBox* MWGui::InventoryWindow::mArmorRating [private]
MyGUI::Widget* MWGui::InventoryWindow::mAvatar [private]
MyGUI::ImageBox* MWGui::InventoryWindow::mAvatarImage [private]
MyGUI::Button* MWGui::InventoryWindow::mFilterAll [private]
MyGUI::Button* MWGui::InventoryWindow::mFilterApparel [private]
MyGUI::Button* MWGui::InventoryWindow::mFilterMagic [private]
MyGUI::Button* MWGui::InventoryWindow::mFilterMisc [private]
MyGUI::Button* MWGui::InventoryWindow::mFilterWeapon [private]
MyGUI::Widget* MWGui::InventoryWindow::mLeftPane [private]
MyGUI::Widget* MWGui::InventoryWindow::mRightPane [private]

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