diff options
author | Ira Rice <irarice@gmail.com> | 2008-11-01 03:36:47 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-11-01 03:36:47 +0000 |
commit | 81299ca9acc39dec62e1e504781721ad0db0d471 (patch) | |
tree | 7732a30d6b3bf57582f3cababceb8d7b4045be0d /src/gui/npclistdialog.h | |
parent | d433f836a690199a89781a1c7f694620e7a1ad27 (diff) | |
download | mana-81299ca9acc39dec62e1e504781721ad0db0d471.tar.gz mana-81299ca9acc39dec62e1e504781721ad0db0d471.tar.bz2 mana-81299ca9acc39dec62e1e504781721ad0db0d471.tar.xz mana-81299ca9acc39dec62e1e504781721ad0db0d471.zip |
Made NPC dialogues resizeable.
Diffstat (limited to 'src/gui/npclistdialog.h')
-rw-r--r-- | src/gui/npclistdialog.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gui/npclistdialog.h b/src/gui/npclistdialog.h index a96fd766..4e9d4b3b 100644 --- a/src/gui/npclistdialog.h +++ b/src/gui/npclistdialog.h @@ -30,6 +30,8 @@ #include <guichan/actionlistener.hpp> #include <guichan/listmodel.hpp> +#include "button.h" +#include "scrollarea.h" #include "window.h" #include "../guichanfwd.h" @@ -51,6 +53,18 @@ class NpcListDialog : public Window, public gcn::ActionListener, NpcListDialog(); /** + * Called when resizing the window + * + * @param event The calling event + */ + void widgetResized(const gcn::Event &event); + + /** + * Redraws the window + */ + void draw(); + + /** * Called when receiving actions from the widgets. */ void @@ -84,6 +98,9 @@ class NpcListDialog : public Window, public gcn::ActionListener, private: gcn::ListBox *mItemList; + ScrollArea *scrollArea; + Button *okButton; + Button *cancelButton; std::vector<std::string> mItems; }; |