summaryrefslogtreecommitdiff
path: root/src/gui/item_amount.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-19 23:03:14 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-19 23:03:14 +0000
commit31df4529dfba4b5976ca11adcfcdf9a6e377ecf4 (patch)
tree3b1a2289e3f62cb8a84ddf2c611b70752532200d /src/gui/item_amount.h
parenta8c81b442f24ab3bb348b6e6d45519e65c250c54 (diff)
downloadmana-client-31df4529dfba4b5976ca11adcfcdf9a6e377ecf4.tar.gz
mana-client-31df4529dfba4b5976ca11adcfcdf9a6e377ecf4.tar.bz2
mana-client-31df4529dfba4b5976ca11adcfcdf9a6e377ecf4.tar.xz
mana-client-31df4529dfba4b5976ca11adcfcdf9a6e377ecf4.zip
Made the item amount box work with a provided item.
Diffstat (limited to 'src/gui/item_amount.h')
-rw-r--r--src/gui/item_amount.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/gui/item_amount.h b/src/gui/item_amount.h
index 5e485b6e..01004927 100644
--- a/src/gui/item_amount.h
+++ b/src/gui/item_amount.h
@@ -31,6 +31,7 @@
#include "../guichanfwd.h"
class IntTextBox;
+class Item;
#define AMOUNT_TRADE_ADD 1
#define AMOUNT_ITEM_DROP 2
@@ -46,7 +47,7 @@ class ItemAmountWindow : public Window, public gcn::ActionListener
/**
* Constructor.
*/
- ItemAmountWindow(int usage, Window *parent);
+ ItemAmountWindow(int usage, Window *parent, Item *item);
/**
* Destructor.
@@ -64,16 +65,17 @@ class ItemAmountWindow : public Window, public gcn::ActionListener
void resetAmount();
private:
- IntTextBox *itemAmountTextBox; /**< Item amount caption. */
+ IntTextBox *mItemAmountTextBox; /**< Item amount caption. */
+ Item *mItem;
/**
* Item Amount buttons.
*/
- gcn::Button *itemAmountPlusButton;
- gcn::Button *itemAmountMinusButton;
- gcn::Slider *itemAmountSlide;
- gcn::Button *itemAmountOkButton;
- gcn::Button *itemAmountCancelButton;
+ gcn::Button *mItemAmountPlusButton;
+ gcn::Button *mItemAmountMinusButton;
+ gcn::Slider *mItemAmountSlide;
+ gcn::Button *mItemAmountOkButton;
+ gcn::Button *mItemAmountCancelButton;
};
#endif /* _TMW_ITEM_AMOUNT_WINDOW_H */