summaryrefslogtreecommitdiff
path: root/src/gui/ok_dialog.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-25 20:36:09 +0000
committerIra Rice <irarice@gmail.com>2008-10-25 20:36:09 +0000
commit0288225cf876d787a29f5b1d4e5885cc1d759e6f (patch)
tree1aad1fc53a8ca36893fcd7b11ecb8d125e9fd3a8 /src/gui/ok_dialog.h
parentcd7415bd8ec7f9dc1ec91edbe052df97a7f644bf (diff)
downloadmana-client-0288225cf876d787a29f5b1d4e5885cc1d759e6f.tar.gz
mana-client-0288225cf876d787a29f5b1d4e5885cc1d759e6f.tar.bz2
mana-client-0288225cf876d787a29f5b1d4e5885cc1d759e6f.tar.xz
mana-client-0288225cf876d787a29f5b1d4e5885cc1d759e6f.zip
Made the ok dialogue use code that's similar to the speech bubble, so
that it can take advantage of the text box's wrapping code.
Diffstat (limited to 'src/gui/ok_dialog.h')
-rw-r--r--src/gui/ok_dialog.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/ok_dialog.h b/src/gui/ok_dialog.h
index 47a0c780..426da538 100644
--- a/src/gui/ok_dialog.h
+++ b/src/gui/ok_dialog.h
@@ -26,6 +26,9 @@
#include <guichan/actionlistener.hpp>
+#include "button.h"
+#include "scrollarea.h"
+#include "textbox.h"
#include "window.h"
#include "../guichanfwd.h"
@@ -45,10 +48,17 @@ class OkDialog : public Window, public gcn::ActionListener {
OkDialog(const std::string &title, const std::string &msg,
Window *parent = NULL);
+ unsigned int getNumRows();
+
/**
* Called when receiving actions from the widgets.
*/
void action(const gcn::ActionEvent &event);
+
+ private:
+ TextBox *mTextBox;
+ ScrollArea *mTextArea;
+ gcn::Button *okButton;
};
#endif