summaryrefslogtreecommitdiff
path: root/src/gui/ok_dialog.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-11 16:15:10 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-11 16:15:10 +0000
commitcaeba363798727f75972ce6b8625fd9754bee903 (patch)
tree619fbff5801278d5b4f98413e354ea73a87f34bc /src/gui/ok_dialog.h
parent24bf86763cdba47e9a88124a3394882667169185 (diff)
downloadMana-caeba363798727f75972ce6b8625fd9754bee903.tar.gz
Mana-caeba363798727f75972ce6b8625fd9754bee903.tar.bz2
Mana-caeba363798727f75972ce6b8625fd9754bee903.tar.xz
Mana-caeba363798727f75972ce6b8625fd9754bee903.zip
Implemented parent relationship for Window class and converted more ok dialogs
to the OkDialog class.
Diffstat (limited to 'src/gui/ok_dialog.h')
-rw-r--r--src/gui/ok_dialog.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/ok_dialog.h b/src/gui/ok_dialog.h
index ad0359b1..95ae52da 100644
--- a/src/gui/ok_dialog.h
+++ b/src/gui/ok_dialog.h
@@ -42,6 +42,14 @@ class OkDialog : public Window, public gcn::ActionListener {
OkDialog(const std::string &title, const std::string &msg);
/**
+ * Constructor with parent reference.
+ *
+ * @see Window::Window
+ */
+ OkDialog(Window *window, const std::string &title,
+ const std::string &msg);
+
+ /**
* Destructor.
*/
~OkDialog();
@@ -52,6 +60,11 @@ class OkDialog : public Window, public gcn::ActionListener {
void action(const std::string& eventId);
private:
+ /**
+ * Initializes the dialog.
+ */
+ void init(const std::string &msg);
+
gcn::Label *userLabel;
gcn::Button *okButton;
};