diff options
author | Fate <fate-tmw@googlemail.com> | 2008-12-06 19:50:57 -0700 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2008-12-06 19:50:57 -0700 |
commit | 483941ef2a4faef54865b3ce2e316cb32ed8cf64 (patch) | |
tree | a542f040a80497eca957c36adbfb490ed419b02b /src/gui/npc_text.h | |
parent | 617fb41e21710856c1451058481e5df3756fb355 (diff) | |
parent | 416e28057f5a6073a2ef44f296ed1c8bc1280bf6 (diff) | |
download | mana-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/npc_text.h')
-rw-r--r-- | src/gui/npc_text.h | 22 |
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 |