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

#include <item_amount.h>

Inheritance diagram for ItemAmountWindow:

Window

List of all members.


Detailed Description

Window used for selecting the amount of items to drop, trade or split.

Definition at line 36 of file item_amount.h.


Public Types

enum  Usage {
  TradeAdd, ItemDrop, StoreAdd, StoreRemove,
  ItemSplit
}

Public Member Functions

 ItemAmountWindow (Usage usage, Window *parent, Item *item, int maxRange=0)
 Constructor.
void action (const gcn::ActionEvent &event)
 Called when receiving actions from widget.
void resetAmount ()
 Sets default amount value.
void close ()
 Schedules the Item Amount window for deletion.

Private Attributes

gcn::Label * mItemAmountLabel
 Item amount caption.
ItemmItem
int mMax
Usage mUsage
gcn::Slider * mItemAmountSlide
 Item Amount buttons.

Member Enumeration Documentation

Enumerator:
TradeAdd 
ItemDrop 
StoreAdd 
StoreRemove 
ItemSplit 

Definition at line 39 of file item_amount.h.


Constructor & Destructor Documentation

ItemAmountWindow::ItemAmountWindow ( Usage  usage,
Window parent,
Item item,
int  maxRange = 0 
)

Constructor.

Definition at line 40 of file item_amount.cpp.


Member Function Documentation

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

Called when receiving actions from widget.

Definition at line 117 of file item_amount.cpp.

void ItemAmountWindow::resetAmount (  ) 

Sets default amount value.

Definition at line 112 of file item_amount.cpp.

void ItemAmountWindow::close (  )  [virtual]

Schedules the Item Amount window for deletion.

Reimplemented from Window.

Definition at line 175 of file item_amount.cpp.


Member Data Documentation

gcn::Label* ItemAmountWindow::mItemAmountLabel [private]

Item amount caption.

Definition at line 69 of file item_amount.h.

Definition at line 70 of file item_amount.h.

int ItemAmountWindow::mMax [private]

Definition at line 72 of file item_amount.h.

Definition at line 73 of file item_amount.h.

gcn::Slider* ItemAmountWindow::mItemAmountSlide [private]

Item Amount buttons.

Definition at line 78 of file item_amount.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