diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-20 22:19:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-20 22:19:45 +0300 |
commit | 8138d0e61f633546263df94473e91d500ada9c0e (patch) | |
tree | cc0f9b2290964c017ad1c0981a429d733a406e3e /src/gui/inventorywindow.h | |
parent | 5f2ee9e2f8c8d313de85df08abdc2a7f7396995f (diff) | |
download | manaplus-8138d0e61f633546263df94473e91d500ada9c0e.tar.gz manaplus-8138d0e61f633546263df94473e91d500ada9c0e.tar.bz2 manaplus-8138d0e61f633546263df94473e91d500ada9c0e.tar.xz manaplus-8138d0e61f633546263df94473e91d500ada9c0e.zip |
Auto hide filter in invetory if window size too small.
Diffstat (limited to 'src/gui/inventorywindow.h')
-rw-r--r-- | src/gui/inventorywindow.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h index c32fd8905..5592b9449 100644 --- a/src/gui/inventorywindow.h +++ b/src/gui/inventorywindow.h @@ -45,6 +45,7 @@ class DropDown; class Item; class ItemContainer; class InventoryFilter; +class LayoutCell; class ProgressBar; class SortListModel; //class TextBox; @@ -133,6 +134,8 @@ class InventoryWindow : public Window, bool isInputFocused() const; + void widgetResized(const gcn::Event &event); + static bool isAnyInputFocused(); private: @@ -154,15 +157,20 @@ class InventoryWindow : public Window, *mSplitButton, *mOutfitButton, *mShopButton, *mStoreButton, *mRetrieveButton, *mCloseButton; - gcn::Label *mWeightLabel, *mSlotsLabel, *mFilterLabel, *mSorterLabel; + gcn::Label *mWeightLabel, *mSlotsLabel, *mFilterLabel; ProgressBar *mWeightBar, *mSlotsBar; InventoryFilter *mFilter; DropDown *mSortDropDown; SortListModel *mSortModel; TextField *mNameFilter; + LayoutCell *mSortDropDownCell; + LayoutCell *mNameFilterCell; + LayoutCell *mFilterCell; + LayoutCell *mSlotsBarCell; bool mSplit; + bool mCompactMode; }; extern InventoryWindow *inventoryWindow; |