summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/enums/gui/dialogtype.h14
-rw-r--r--src/gui/windows/okdialog.cpp4
-rw-r--r--src/gui/windows/okdialog.h4
3 files changed, 11 insertions, 11 deletions
diff --git a/src/enums/gui/dialogtype.h b/src/enums/gui/dialogtype.h
index 3a801c8eb..08e1a7ded 100644
--- a/src/enums/gui/dialogtype.h
+++ b/src/enums/gui/dialogtype.h
@@ -23,16 +23,16 @@
#ifndef ENUMS_GUI_DIALOGTYPE_H
#define ENUMS_GUI_DIALOGTYPE_H
+#include "enums/simpletypes/enumdefines.h"
+
#undef ERROR
-namespace DialogType
+enumStart(DialogType)
{
- enum Type
- {
- OK = 0,
- ERROR,
- SILENCE
- };
+ OK = 0,
+ ERROR,
+ SILENCE
}
+enumEnd(DialogType);
#endif // ENUMS_GUI_DIALOGTYPE_H
diff --git a/src/gui/windows/okdialog.cpp b/src/gui/windows/okdialog.cpp
index cdd73acc6..25a440b85 100644
--- a/src/gui/windows/okdialog.cpp
+++ b/src/gui/windows/okdialog.cpp
@@ -25,8 +25,6 @@
#include "soundconsts.h"
#include "soundmanager.h"
-#include "enums/gui/dialogtype.h"
-
#include "gui/widgets/button.h"
#include "gui/widgets/textbox.h"
@@ -37,7 +35,7 @@
OkDialog::OkDialog(const std::string &restrict title,
const std::string &restrict msg,
const std::string &restrict button,
- const int soundEvent,
+ const DialogTypeT soundEvent,
const Modal modal,
const ShowCenter showCenter,
Window *const parent,
diff --git a/src/gui/windows/okdialog.h b/src/gui/windows/okdialog.h
index 32c3c3131..6f16cc345 100644
--- a/src/gui/windows/okdialog.h
+++ b/src/gui/windows/okdialog.h
@@ -25,6 +25,8 @@
#include "gui/widgets/window.h"
+#include "enums/gui/dialogtype.h"
+
#include "enums/simpletypes/showcenter.h"
#include "listeners/actionlistener.h"
@@ -50,7 +52,7 @@ class OkDialog final : public Window,
OkDialog(const std::string &restrict title,
const std::string &restrict msg,
const std::string &restrict button,
- const int soundEvent,
+ const DialogTypeT soundEvent,
const Modal modal,
const ShowCenter showCenter,
Window *const parent,