diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-05 18:29:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-05 18:29:07 +0300 |
commit | 71fd4e8d3255e15c16a4f4b51c87222c661a5b33 (patch) | |
tree | 3942aec29f33b5ea2aa2e353451e10648f1bbb82 /src/gui/widgets/window.h | |
parent | 45460ca58b3cbf6d92fe3cac1311bbfc9d00e841 (diff) | |
download | manaplus-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.gz manaplus-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.bz2 manaplus-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.xz manaplus-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.zip |
Add strong typed bool type for modal bool flag.
Diffstat (limited to 'src/gui/widgets/window.h')
-rw-r--r-- | src/gui/widgets/window.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h index d04b16cdf..2b2bdb261 100644 --- a/src/gui/widgets/window.h +++ b/src/gui/widgets/window.h @@ -66,6 +66,8 @@ #ifndef GUI_WIDGETS_WINDOW_H #define GUI_WIDGETS_WINDOW_H +#include "enums/simpletypes.h" + #include "listeners/mouselistener.h" #include "listeners/widgetlistener.h" @@ -105,7 +107,7 @@ class Window notfinal : public BasicContainer2, * @param skin The location where the window's skin XML can be found. */ explicit Window(const std::string &caption = "Window", - const bool modal = false, + const Modal modal = Modal_false, Window *const parent = nullptr, std::string skin = ""); @@ -448,7 +450,7 @@ class Window notfinal : public BasicContainer2, /** * Allows the windows modal status to change */ - void setModal(const bool modal); + void setModal(const Modal modal); Rect getWindowArea() const A_WARN_UNUSED; @@ -691,8 +693,8 @@ class Window notfinal : public BasicContainer2, int mResizeHandles; int mOldResizeHandles; Font *mCaptionFont; + Modal mModal; /**< Window is modal */ bool mShowTitle; /**< Window has a title bar */ - bool mModal; /**< Window is modal */ bool mCloseWindowButton; /**< Window has a close button */ bool mDefaultVisible; /**< Window's default visibility */ bool mSaveVisible; /**< Window will save visibility */ |