summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-09 00:47:31 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-09 00:47:57 +0300
commite72f26151bca6c5a73d0377e385c0f7dd7cab3aa (patch)
tree6960f1846e0258a5f3658cae6e2f40f643074e3f /src/gui/inventorywindow.h
parentf1c17766c66394ce875854430f8f028c0fa5b3a5 (diff)
downloadplus-e72f26151bca6c5a73d0377e385c0f7dd7cab3aa.tar.gz
plus-e72f26151bca6c5a73d0377e385c0f7dd7cab3aa.tar.bz2
plus-e72f26151bca6c5a73d0377e385c0f7dd7cab3aa.tar.xz
plus-e72f26151bca6c5a73d0377e385c0f7dd7cab3aa.zip
Add to inventory filter by letters from item names.
Diffstat (limited to 'src/gui/inventorywindow.h')
-rw-r--r--src/gui/inventorywindow.h8
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;
};