diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-09 00:47:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-09 00:47:57 +0300 |
commit | e72f26151bca6c5a73d0377e385c0f7dd7cab3aa (patch) | |
tree | 6960f1846e0258a5f3658cae6e2f40f643074e3f /src/gui/inventorywindow.h | |
parent | f1c17766c66394ce875854430f8f028c0fa5b3a5 (diff) | |
download | mv-e72f26151bca6c5a73d0377e385c0f7dd7cab3aa.tar.gz mv-e72f26151bca6c5a73d0377e385c0f7dd7cab3aa.tar.bz2 mv-e72f26151bca6c5a73d0377e385c0f7dd7cab3aa.tar.xz mv-e72f26151bca6c5a73d0377e385c0f7dd7cab3aa.zip |
Add to inventory filter by letters from item names.
Diffstat (limited to 'src/gui/inventorywindow.h')
-rw-r--r-- | src/gui/inventorywindow.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h index c07b5b0e1..14a53a179 100644 --- a/src/gui/inventorywindow.h +++ b/src/gui/inventorywindow.h @@ -47,7 +47,8 @@ class ItemContainer; class InventoryFilter; class ProgressBar; class SortListModel; -class TextBox; +//class TextBox; +class TextField; /** * Inventory dialog. @@ -130,6 +131,10 @@ class InventoryWindow : public Window, void updateButtons(Item *item = 0); + bool isInputFocused() const; + + static bool isAnyInputFocused(); + private: /** * Updates the weight bar. @@ -155,6 +160,7 @@ class InventoryWindow : public Window, InventoryFilter *mFilter; DropDown *mSortDropDown; SortListModel *mSortModel; + TextField *mNameFilter; bool mSplit; }; |