diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-11 16:15:10 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-11 16:15:10 +0000 |
commit | caeba363798727f75972ce6b8625fd9754bee903 (patch) | |
tree | 619fbff5801278d5b4f98413e354ea73a87f34bc /src/gui/ok_dialog.h | |
parent | 24bf86763cdba47e9a88124a3394882667169185 (diff) | |
download | mana-client-caeba363798727f75972ce6b8625fd9754bee903.tar.gz mana-client-caeba363798727f75972ce6b8625fd9754bee903.tar.bz2 mana-client-caeba363798727f75972ce6b8625fd9754bee903.tar.xz mana-client-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.h | 13 |
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; }; |