InventoryWindow Class Reference
[User interface related classes (windows, dialogs)]

#include <inventorywindow.h>

Inheritance diagram for InventoryWindow:

Window

List of all members.


Detailed Description

Inventory dialog.

Definition at line 43 of file inventorywindow.h.


Public Member Functions

 InventoryWindow (int invSize=(INVENTORY_SIZE-2))
 Constructor.
 ~InventoryWindow ()
 Destructor.
void logic ()
 Logic (updates buttons and weight information).
void action (const gcn::ActionEvent &event)
 Called when receiving actions from the widgets.
ItemgetSelectedItem () const
 Returns the selected item.
void mouseClicked (gcn::MouseEvent &event)
 Handles the mouse clicks.
void valueChanged (const gcn::SelectionEvent &event)
 Updates labels to currently selected item.

Private Member Functions

void updateButtons ()
 Updates button states.

Private Attributes

ItemContainermItems
std::string mWeight
std::string mSlots
int mUsedSlots
int mTotalWeight
int mMaxWeight
gcn::Button * mUseButton
gcn::Button * mDropButton
gcn::Label * mWeightLabel
gcn::Label * mSlotsLabel
ProgressBarmWeightBar
ProgressBarmSlotsBar
int mMaxSlots
bool mSplit
bool mItemDesc

Constructor & Destructor Documentation

InventoryWindow::InventoryWindow ( int  invSize = (INVENTORY_SIZE - 2)  ) 

Constructor.

Definition at line 50 of file inventorywindow.cpp.

InventoryWindow::~InventoryWindow (  ) 

Destructor.

Definition at line 116 of file inventorywindow.cpp.


Member Function Documentation

void InventoryWindow::logic (  ) 

Logic (updates buttons and weight information).

Definition at line 120 of file inventorywindow.cpp.

void InventoryWindow::action ( const gcn::ActionEvent &  event  ) 

Called when receiving actions from the widgets.

Definition at line 160 of file inventorywindow.cpp.

Item * InventoryWindow::getSelectedItem (  )  const

Returns the selected item.

Definition at line 201 of file inventorywindow.cpp.

void InventoryWindow::mouseClicked ( gcn::MouseEvent &  event  ) 

Handles the mouse clicks.

Definition at line 206 of file inventorywindow.cpp.

void InventoryWindow::valueChanged ( const gcn::SelectionEvent &  event  ) 

Updates labels to currently selected item.

Definition at line 250 of file inventorywindow.cpp.

void InventoryWindow::updateButtons (  )  [private]

Updates button states.

Definition at line 265 of file inventorywindow.cpp.


Member Data Documentation

Definition at line 103 of file inventorywindow.h.

std::string InventoryWindow::mWeight [private]

Definition at line 105 of file inventorywindow.h.

std::string InventoryWindow::mSlots [private]

Definition at line 106 of file inventorywindow.h.

Definition at line 107 of file inventorywindow.h.

Definition at line 108 of file inventorywindow.h.

Definition at line 109 of file inventorywindow.h.

gcn::Button* InventoryWindow::mUseButton [private]

Definition at line 110 of file inventorywindow.h.

gcn::Button* InventoryWindow::mDropButton [private]

Definition at line 111 of file inventorywindow.h.

gcn::Label* InventoryWindow::mWeightLabel [private]

Definition at line 115 of file inventorywindow.h.

gcn::Label* InventoryWindow::mSlotsLabel [private]

Definition at line 116 of file inventorywindow.h.

Definition at line 118 of file inventorywindow.h.

Definition at line 119 of file inventorywindow.h.

Definition at line 121 of file inventorywindow.h.

bool InventoryWindow::mSplit [private]

Definition at line 123 of file inventorywindow.h.

Definition at line 124 of file inventorywindow.h.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5