summaryrefslogtreecommitdiff
path: root/src/gui/npc_text.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-01-20 10:09:59 +0000
committerIra Rice <irarice@gmail.com>2009-01-20 13:22:09 -0700
commit6498f9a6b140385b1614fe59abc4f5981d050050 (patch)
tree479398be96aeeb35c5a961724c0ccf04f6f4e435 /src/gui/npc_text.h
parent2805d11b7fa5cfc8a6e1dc739cf40f1aacef2232 (diff)
downloadmana-client-6498f9a6b140385b1614fe59abc4f5981d050050.tar.gz
mana-client-6498f9a6b140385b1614fe59abc4f5981d050050.tar.bz2
mana-client-6498f9a6b140385b1614fe59abc4f5981d050050.tar.xz
mana-client-6498f9a6b140385b1614fe59abc4f5981d050050.zip
Switch the NPC text dialog over to a BrowserBox
Diffstat (limited to 'src/gui/npc_text.h')
-rw-r--r--src/gui/npc_text.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/gui/npc_text.h b/src/gui/npc_text.h
index 75968fa9..90b15abd 100644
--- a/src/gui/npc_text.h
+++ b/src/gui/npc_text.h
@@ -26,13 +26,10 @@
#include <guichan/actionlistener.hpp>
-#include "button.h"
#include "scrollarea.h"
#include "window.h"
-#include "../guichanfwd.h"
-
-class TextBox;
+class BrowserBox;
/**
* The npc text dialog.
@@ -50,16 +47,14 @@ class NpcTextDialog : public Window, public gcn::ActionListener
NpcTextDialog();
/**
- * Called when resizing the window.
- *
- * @param event The calling event
+ * Called when receiving actions from the widgets.
*/
- void widgetResized(const gcn::Event &event);
+ void action(const gcn::ActionEvent &event);
/**
- * Called when receiving actions from the widgets.
+ * Clears the text shown in the dialog.
*/
- void action(const gcn::ActionEvent &event);
+ void clearText();
/**
* Sets the text shows in the dialog.
@@ -79,9 +74,7 @@ class NpcTextDialog : public Window, public gcn::ActionListener
private:
gcn::Button *okButton;
gcn::ScrollArea *scrollArea;
- TextBox *mTextBox;
-
- std::string mText;
+ BrowserBox *mBrowserBox;
};
#endif // _TMW_NPC_TEXT_H