summaryrefslogtreecommitdiff
path: root/src/gui/npclistdialog.h
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2008-12-06 20:02:33 -0700
committerFate <fate-tmw@googlemail.com>2008-12-06 20:02:33 -0700
commit28fa707f1ab22e7cac8abff703d534aec3228d5c (patch)
treebc0d906aa6d414b867eda5df02520b5f707216f1 /src/gui/npclistdialog.h
parent704f58c9033599c871c176df68ffe7ac3bc8c969 (diff)
parent7b11d719316e84d97e95a32de2a74803aa18e5da (diff)
downloadmana-28fa707f1ab22e7cac8abff703d534aec3228d5c.tar.gz
mana-28fa707f1ab22e7cac8abff703d534aec3228d5c.tar.bz2
mana-28fa707f1ab22e7cac8abff703d534aec3228d5c.tar.xz
mana-28fa707f1ab22e7cac8abff703d534aec3228d5c.zip
Merge branch 'master' into statuseffects
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