summaryrefslogtreecommitdiff
path: root/src/gui/npc_text.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/npc_text.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/npc_text.h')
-rw-r--r--src/gui/npc_text.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/gui/npc_text.h b/src/gui/npc_text.h
index 2c9771d3..76161f88 100644
--- a/src/gui/npc_text.h
+++ b/src/gui/npc_text.h
@@ -45,18 +45,23 @@ class NpcTextDialog : public Window, public gcn::ActionListener
NpcTextDialog();
/**
+ * 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);
/**
* Sets the text shows in the dialog.
*
* @param string The new text.
*/
- void
- setText(const std::string &string);
+ void setText(const std::string &string);
/**
* Adds the text to the text shows in the dialog. Also adds a newline
@@ -64,11 +69,14 @@ class NpcTextDialog : public Window, public gcn::ActionListener
*
* @param string The text to add.
*/
- void
- addText(const std::string &string);
+ void addText(const std::string &string);
private:
+ gcn::Button *okButton;
+ gcn::ScrollArea *scrollArea;
TextBox *mTextBox;
+
+ std::string mText;
};
-#endif
+#endif // _TMW_NPC_TEXT_H