diff options
author | Ira Rice <irarice@gmail.com> | 2008-10-25 20:36:09 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-10-25 20:36:09 +0000 |
commit | 0288225cf876d787a29f5b1d4e5885cc1d759e6f (patch) | |
tree | 1aad1fc53a8ca36893fcd7b11ecb8d125e9fd3a8 /src/gui/ok_dialog.h | |
parent | cd7415bd8ec7f9dc1ec91edbe052df97a7f644bf (diff) | |
download | mana-0288225cf876d787a29f5b1d4e5885cc1d759e6f.tar.gz mana-0288225cf876d787a29f5b1d4e5885cc1d759e6f.tar.bz2 mana-0288225cf876d787a29f5b1d4e5885cc1d759e6f.tar.xz mana-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.h | 10 |
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 |