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

#include <storagewindow.h>

Inheritance diagram for StorageWindow:

Window

List of all members.


Detailed Description

Storage dialog.

Definition at line 42 of file storagewindow.h.


Public Member Functions

 StorageWindow (int invSize=(STORAGE_SIZE-1))
 Constructor.
 ~StorageWindow ()
 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)
void addStore (Item *item, int amount)
 Add the specified ammount of the specified item to storage.
void removeStore (Item *item, int amount)
 Remove the specified ammount of the specified item from storage.
void close ()
 Closes the Storage Window, as well as telling the server that the window has been closed.

Private Attributes

ItemContainermItems
int mSlots
int mUsedSlots
gcn::Button * mStoreButton
gcn::Button * mRetrieveButton
gcn::Label * mSlotsLabel
ProgressBarmSlotsBar
int mMaxSlots
bool mItemDesc

Constructor & Destructor Documentation

StorageWindow::StorageWindow ( int  invSize = (STORAGE_SIZE - 1)  ) 

Constructor.

Definition at line 52 of file storagewindow.cpp.

StorageWindow::~StorageWindow (  ) 

Destructor.

Definition at line 96 of file storagewindow.cpp.


Member Function Documentation

void StorageWindow::logic (  ) 

Logic (updates buttons and weight information).

Definition at line 100 of file storagewindow.cpp.

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

Called when receiving actions from the widgets.

Definition at line 119 of file storagewindow.cpp.

Item * StorageWindow::getSelectedItem (  )  const

Returns the selected item.

Definition at line 184 of file storagewindow.cpp.

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

Definition at line 159 of file storagewindow.cpp.

void StorageWindow::addStore ( Item item,
int  amount 
)

Add the specified ammount of the specified item to storage.

Definition at line 189 of file storagewindow.cpp.

void StorageWindow::removeStore ( Item item,
int  amount 
)

Remove the specified ammount of the specified item from storage.

Definition at line 196 of file storagewindow.cpp.

void StorageWindow::close (  )  [virtual]

Closes the Storage Window, as well as telling the server that the window has been closed.

Reimplemented from Window.

Definition at line 203 of file storagewindow.cpp.


Member Data Documentation

Definition at line 90 of file storagewindow.h.

int StorageWindow::mSlots [private]

Definition at line 92 of file storagewindow.h.

Definition at line 93 of file storagewindow.h.

gcn::Button* StorageWindow::mStoreButton [private]

Definition at line 94 of file storagewindow.h.

gcn::Button * StorageWindow::mRetrieveButton [private]

Definition at line 94 of file storagewindow.h.

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

Definition at line 96 of file storagewindow.h.

Definition at line 98 of file storagewindow.h.

int StorageWindow::mMaxSlots [private]

Definition at line 100 of file storagewindow.h.

bool StorageWindow::mItemDesc [private]

Definition at line 102 of file storagewindow.h.


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

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