summaryrefslogtreecommitdiff
path: root/src/gui/itemshortcutwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/itemshortcutwindow.h')
-rw-r--r--src/gui/itemshortcutwindow.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/gui/itemshortcutwindow.h b/src/gui/itemshortcutwindow.h
index 16a06b55..83bc348d 100644
--- a/src/gui/itemshortcutwindow.h
+++ b/src/gui/itemshortcutwindow.h
@@ -24,6 +24,7 @@
#define _TMW_ITEMSHORTCUTWINDOW_H
#include "window.h"
+#include "windowlistener.h"
#include "../guichanfwd.h"
@@ -34,7 +35,7 @@ class ItemShortcutContainer;
*
* \ingroup Interface
*/
-class ItemShortcutWindow : public Window
+class ItemShortcutWindow : public Window, WindowListener
{
public:
/**
@@ -52,15 +53,12 @@ class ItemShortcutWindow : public Window
*/
void logic();
- void mouseDragged(gcn::MouseEvent &event);
-
- void loadWindowState();
-
- void resetToDefaultSize();
+ /**
+ * Called whenever the window is resized.
+ */
+ void windowResized(const WindowEvent &event);
private:
- void updateWidgets(); /**< Updates widgets size/position. */
-
ItemShortcutContainer *mItems;
gcn::ScrollArea *mInvenScroll;