summaryrefslogtreecommitdiff
path: root/src/gui/npclistdialog.h
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2008-12-06 19:50:57 -0700
committerFate <fate-tmw@googlemail.com>2008-12-06 19:50:57 -0700
commit483941ef2a4faef54865b3ce2e316cb32ed8cf64 (patch)
treea542f040a80497eca957c36adbfb490ed419b02b /src/gui/npclistdialog.h
parent617fb41e21710856c1451058481e5df3756fb355 (diff)
parent416e28057f5a6073a2ef44f296ed1c8bc1280bf6 (diff)
downloadmana-483941ef2a4faef54865b3ce2e316cb32ed8cf64.tar.gz
mana-483941ef2a4faef54865b3ce2e316cb32ed8cf64.tar.bz2
mana-483941ef2a4faef54865b3ce2e316cb32ed8cf64.tar.xz
mana-483941ef2a4faef54865b3ce2e316cb32ed8cf64.zip
Merge branch 'master' of git@gitorious.org:tmw/eathena
Diffstat (limited to 'src/gui/npclistdialog.h')
-rw-r--r--src/gui/npclistdialog.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/gui/npclistdialog.h b/src/gui/npclistdialog.h
index 0e6760f1..f548dbba 100644
--- a/src/gui/npclistdialog.h
+++ b/src/gui/npclistdialog.h
@@ -49,41 +49,46 @@ class NpcListDialog : public Window, public gcn::ActionListener,
NpcListDialog();
/**
+ * Called when resizing the window
+ *
+ * @param event The calling event
+ */
+ void widgetResized(const gcn::Event &event);
+
+ /**
* Called when receiving actions from the widgets.
*/
- void
- action(const gcn::ActionEvent &event);
+ void action(const gcn::ActionEvent &event);
/**
* Returns the number of items in the choices list.
*/
- int
- getNumberOfElements();
+ int getNumberOfElements();
/**
* Returns the name of item number i of the choices list.
*/
- std::string
- getElementAt(int i);
+ std::string getElementAt(int i);
/**
* Fills the options list for an NPC dialog.
*
* @param itemString A string with the options separated with colons.
*/
- void
- parseItems(const std::string &itemString);
+ void parseItems(const std::string &itemString);
/**
* Resets the list by removing all items.
*/
- void
- reset();
+ void reset();
private:
gcn::ListBox *mItemList;
+ gcn::ScrollArea *scrollArea;
+ gcn::Button *okButton;
+ gcn::Button *cancelButton;
std::vector<std::string> mItems;
};
-#endif
+#endif // _TMW_GUI_NPCLISTDIALOG_H