diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-27 14:50:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-27 14:50:47 +0300 |
commit | 744b6e62e1252ca50445b21f671ad8d81dd28ea1 (patch) | |
tree | 79adc9663a740ed471e33c97932ce6b28de11377 /src/gui/windows/inventorywindow.h | |
parent | 2ee2f8b060e4fe88feeeba5508189c916e55a70d (diff) | |
download | manaplus-744b6e62e1252ca50445b21f671ad8d81dd28ea1.tar.gz manaplus-744b6e62e1252ca50445b21f671ad8d81dd28ea1.tar.bz2 manaplus-744b6e62e1252ca50445b21f671ad8d81dd28ea1.tar.xz manaplus-744b6e62e1252ca50445b21f671ad8d81dd28ea1.zip |
Add AttributeListener.
Diffstat (limited to 'src/gui/windows/inventorywindow.h')
-rw-r--r-- | src/gui/windows/inventorywindow.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/windows/inventorywindow.h b/src/gui/windows/inventorywindow.h index 10e1e21e2..538d9a47d 100644 --- a/src/gui/windows/inventorywindow.h +++ b/src/gui/windows/inventorywindow.h @@ -25,11 +25,10 @@ #include "inventory.h" -#include "listeners/depricatedlistener.h" - #include "gui/widgets/window.h" #include "listeners/actionlistener.h" +#include "listeners/attributelistener.h" #include "listeners/keylistener.h" #include "listeners/selectionlistener.h" @@ -54,7 +53,7 @@ class InventoryWindow final : public Window, public KeyListener, public SelectionListener, public InventoryListener, - public DepricatedListener + public AttributeListener { public: /** @@ -137,9 +136,6 @@ class InventoryWindow final : public Window, void updateDropButton(); - void processEvent(const Channels channel, - const DepricatedEvent &event) override final; - void updateButtons(const Item *item = nullptr); bool isInputFocused() const A_WARN_UNUSED; @@ -154,6 +150,10 @@ class InventoryWindow final : public Window, void unsetInventory(); + void attributeChanged(const int id, + const int oldVal, + const int newVal) override final; + static bool isAnyInputFocused(); private: |