summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/inventorywindow.h')
-rw-r--r--src/gui/inventorywindow.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h
index 0ddd13f7..2ea59001 100644
--- a/src/gui/inventorywindow.h
+++ b/src/gui/inventorywindow.h
@@ -26,6 +26,7 @@
#include "listener.h"
#include "gui/widgets/window.h"
+#include "gui/widgets/textfield.h"
#include "net/inventoryhandler.h"
@@ -107,6 +108,10 @@ class InventoryWindow : public Window,
*/
void updateButtons();
+ bool isInputFocused() const;
+
+ static bool isAnyInputFocused();
+
void slotsChanged(Inventory* inventory);
bool isMainInventory() { return mInventory->isMainInventory(); }
@@ -126,12 +131,14 @@ class InventoryWindow : public Window,
Inventory *mInventory;
ItemContainer *mItems;
+ TextField *mFilterText;
+
std::string mWeight, mSlots;
gcn::Button *mUseButton, *mEquipButton, *mDropButton, *mSplitButton,
*mOutfitButton, *mStoreButton, *mRetrieveButton;
- gcn::Label *mWeightLabel, *mSlotsLabel;
+ gcn::Label *mWeightLabel, *mSlotsLabel, *mFilterLabel;
ProgressBar *mWeightBar, *mSlotsBar;