summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.h
diff options
context:
space:
mode:
authorJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-14 05:59:52 +0000
committerJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-14 05:59:52 +0000
commit0601642d8b3aa2c7aa365e27aa3ef2459553c3fd (patch)
treee2c4a93c3aca4b35b69857b17b722c3260b4c3d1 /src/gui/inventorywindow.h
parent68f069fea3182c6d5720df03f1d63de38f14c31d (diff)
downloadmana-client-0601642d8b3aa2c7aa365e27aa3ef2459553c3fd.tar.gz
mana-client-0601642d8b3aa2c7aa365e27aa3ef2459553c3fd.tar.bz2
mana-client-0601642d8b3aa2c7aa365e27aa3ef2459553c3fd.tar.xz
mana-client-0601642d8b3aa2c7aa365e27aa3ef2459553c3fd.zip
mantis_id:129 - Inventory Window Slots Added.
Diffstat (limited to 'src/gui/inventorywindow.h')
-rw-r--r--src/gui/inventorywindow.h31
1 files changed, 28 insertions, 3 deletions
diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h
index b153bb39..450d6565 100644
--- a/src/gui/inventorywindow.h
+++ b/src/gui/inventorywindow.h
@@ -25,6 +25,9 @@
#define _TMW_INVENTORYWINDOW_H
#include <guichan/actionlistener.hpp>
+#include <guichan/keylistener.hpp>
+
+#include <guichan/widgets/checkbox.hpp>
#include "window.h"
#include "selectionlistener.h"
@@ -39,7 +42,10 @@ class ItemContainer;
*
* \ingroup Interface
*/
-class InventoryWindow : public Window, gcn::ActionListener, SelectionListener
+class InventoryWindow : public Window,
+ public gcn::ActionListener,
+ public gcn::KeyListener,
+ public SelectionListener
{
public:
/**
@@ -48,6 +54,11 @@ class InventoryWindow : public Window, gcn::ActionListener, SelectionListener
InventoryWindow();
/**
+ * Destructor.
+ */
+ ~InventoryWindow();
+
+ /**
* Logic (updates buttons and weight information).
*/
void logic();
@@ -57,8 +68,21 @@ class InventoryWindow : public Window, gcn::ActionListener, SelectionListener
*/
void action(const gcn::ActionEvent &event);
+ /**
+ * Handles the mouse clicks.
+ */
void mouseClicked(gcn::MouseEvent &event);
+ /**
+ * Handles the key presses.
+ */
+ void keyPressed(gcn::KeyEvent &event);
+
+ /**
+ * Handles the key releases.
+ */
+ void keyReleased(gcn::KeyEvent &event);
+
Item* getItem();
/**
@@ -75,8 +99,9 @@ class InventoryWindow : public Window, gcn::ActionListener, SelectionListener
ItemContainer *mItems;
- gcn::Button *mUseButton, *mDropButton;
- gcn::ScrollArea *mInvenScroll;
+ gcn::Button *mUseButton, *mDropButton; /**< Use, Drop Item Buttons. */
+ gcn::CheckBox *mSplitBox; /**< Split item checkbox. */
+ gcn::ScrollArea *mInvenScroll; /**< Inventory Scroll Area. */
gcn::Label *mItemNameLabel;
gcn::Label *mItemDescriptionLabel;
gcn::Label *mItemEffectLabel;