From 396b3e298b21677ebe3c6f5c2f5b837ac25625f2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 16 May 2014 17:21:24 +0300 Subject: Move dialog type into separate file. --- src/gui/windows/okdialog.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/gui/windows/okdialog.h') 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) -- cgit v1.2.3-60-g2f50