summaryrefslogtreecommitdiff
path: root/src/gui/itemshortcutwindow.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-28 00:01:38 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-28 00:01:38 +0000
commit55786731e0517efdc123d4e8245b2aa94fa55cbe (patch)
tree17d64454f3daeb9f55241e8c9a95b5671f2da023 /src/gui/itemshortcutwindow.h
parent76291862ce0e26040f251bc4764539d8ff6634a0 (diff)
downloadmana-client-55786731e0517efdc123d4e8245b2aa94fa55cbe.tar.gz
mana-client-55786731e0517efdc123d4e8245b2aa94fa55cbe.tar.bz2
mana-client-55786731e0517efdc123d4e8245b2aa94fa55cbe.tar.xz
mana-client-55786731e0517efdc123d4e8245b2aa94fa55cbe.zip
Made buy dialog resizable and added a WindowListener class for listening for
window resize and move events.
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;