summaryrefslogtreecommitdiff
path: root/src/gui/npc_text.h
diff options
context:
space:
mode:
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