diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-03 20:09:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-03 20:09:53 +0300 |
commit | 602fd127d09c995bc5470218c862b2cebfc558d5 (patch) | |
tree | 6937760eb81a234c2aaf9c7494f6bce02176a2f5 /src/gui/windows/buydialog.h | |
parent | fef6ebca9c454f99d44e950c4628270b124c445f (diff) | |
download | mv-602fd127d09c995bc5470218c862b2cebfc558d5.tar.gz mv-602fd127d09c995bc5470218c862b2cebfc558d5.tar.bz2 mv-602fd127d09c995bc5470218c862b2cebfc558d5.tar.xz mv-602fd127d09c995bc5470218c862b2cebfc558d5.zip |
Add filter into buy dialogs.
Diffstat (limited to 'src/gui/windows/buydialog.h')
-rw-r--r-- | src/gui/windows/buydialog.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/windows/buydialog.h b/src/gui/windows/buydialog.h index a96e0ff28..504a63154 100644 --- a/src/gui/windows/buydialog.h +++ b/src/gui/windows/buydialog.h @@ -38,6 +38,7 @@ class IntTextField; class Label; class ScrollArea; class Slider; +class TextField; /** * The buy dialog. @@ -149,6 +150,8 @@ class BuyDialog final : public Window, private: void updateSlider(const int selectedItem); + void applyNameFilter(const std::string &filter); + typedef std::list<BuyDialog*> DialogList; static DialogList instances; @@ -167,6 +170,8 @@ class BuyDialog final : public Window, ShopItems *mShopItems; SortListModelBuy *mSortModel; DropDown *mSortDropDown; + TextField *mFilterTextField; + Label *mFilterLabel; int mNpcId; int mMoney; |