diff options
author | Blue <bluesansdouze@gmail.com> | 2009-05-08 20:32:31 +0200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-08 12:38:39 -0600 |
commit | c587af8bf7ef422765e8a8cdcdb6b4b1aadeb51f (patch) | |
tree | 4382607d33f5cffe3a1f5bfc44fe593f13228986 /src/gui/itemamount.h | |
parent | 2fdfb7b8eb9987620628d68d2193a0ae4de7fa40 (diff) | |
download | mana-c587af8bf7ef422765e8a8cdcdb6b4b1aadeb51f.tar.gz mana-c587af8bf7ef422765e8a8cdcdb6b4b1aadeb51f.tar.bz2 mana-c587af8bf7ef422765e8a8cdcdb6b4b1aadeb51f.tar.xz mana-c587af8bf7ef422765e8a8cdcdb6b4b1aadeb51f.zip |
Item image on item amount windows
Adds the item's image with the popup on the amount selector window.
Diffstat (limited to 'src/gui/itemamount.h')
-rw-r--r-- | src/gui/itemamount.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui/itemamount.h b/src/gui/itemamount.h index 312b9fc3..214f8b6b 100644 --- a/src/gui/itemamount.h +++ b/src/gui/itemamount.h @@ -29,13 +29,16 @@ class IntTextField; class Item; +class ItemPopup; +class Icon; /** * Window used for selecting the amount of items to drop, trade or split. * * \ingroup Interface */ -class ItemAmountWindow : public Window, public gcn::ActionListener, +class ItemAmountWindow : public Window, + public gcn::ActionListener, public gcn::KeyListener { public: @@ -57,6 +60,10 @@ class ItemAmountWindow : public Window, public gcn::ActionListener, */ void resetAmount(); + // MouseListener + void mouseMoved(gcn::MouseEvent &event); + void mouseExited(gcn::MouseEvent &event); + /** * Schedules the Item Amount window for deletion. */ @@ -78,9 +85,11 @@ class ItemAmountWindow : public Window, public gcn::ActionListener, IntTextField *mItemAmountTextField; /**< Item amount caption. */ Item *mItem; + Icon *mItemIcon; int mMax; Usage mUsage; + ItemPopup *mItemPopup; /** * Item Amount buttons. |