summaryrefslogtreecommitdiff
path: root/src/gui/windows/okdialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-16 17:21:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-16 17:21:24 +0300
commit396b3e298b21677ebe3c6f5c2f5b837ac25625f2 (patch)
tree01cfca3609db046afebe5c9e11ba0a5a803e378f /src/gui/windows/okdialog.h
parente50013d92b22faeffb8711d07a8f344ab71e9e57 (diff)
downloadmanaverse-396b3e298b21677ebe3c6f5c2f5b837ac25625f2.tar.gz
manaverse-396b3e298b21677ebe3c6f5c2f5b837ac25625f2.tar.bz2
manaverse-396b3e298b21677ebe3c6f5c2f5b837ac25625f2.tar.xz
manaverse-396b3e298b21677ebe3c6f5c2f5b837ac25625f2.zip
Move dialog type into separate file.
Diffstat (limited to 'src/gui/windows/okdialog.h')
-rw-r--r--src/gui/windows/okdialog.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/gui/windows/okdialog.h b/src/gui/windows/okdialog.h
index b8236dfbc..5017207cd 100644
--- a/src/gui/windows/okdialog.h
+++ b/src/gui/windows/okdialog.h
@@ -23,20 +23,15 @@
#ifndef GUI_WINDOWS_OKDIALOG_H
#define GUI_WINDOWS_OKDIALOG_H
-#include "localconsts.h"
+#include "gui/dialogtype.h"
#include "gui/widgets/window.h"
#include "listeners/actionlistener.h"
-class TextBox;
+#include "localconsts.h"
-enum
-{
- DIALOG_OK = 0,
- DIALOG_ERROR,
- DIALOG_SILENCE
-};
+class TextBox;
/**
* An 'Ok' button dialog.
@@ -54,8 +49,10 @@ class OkDialog final : public Window,
*/
OkDialog(const std::string &restrict title,
const std::string &restrict msg,
- const int soundEvent = DIALOG_OK, const bool modal = true,
- const bool showCenter = true, Window *const parent = nullptr,
+ const int soundEvent = DialogType::OK,
+ const bool modal = true,
+ const bool showCenter = true,
+ Window *const parent = nullptr,
const int minWidth = 260);
A_DELETE_COPY(OkDialog)