summaryrefslogtreecommitdiff
path: root/src/gui/widgets/statuswindowattrs.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-29 21:42:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-29 22:43:38 +0300
commit3411edb5d3ae07d247421e4b8f7936a22b7b4027 (patch)
tree63685d0979938a42a62b3f0a880663bb06f4e8ca /src/gui/widgets/statuswindowattrs.h
parent390e5da0f9ecc4407aa7d4bcba1af5730db56271 (diff)
downloadmanaplus-3411edb5d3ae07d247421e4b8f7936a22b7b4027.tar.gz
manaplus-3411edb5d3ae07d247421e4b8f7936a22b7b4027.tar.bz2
manaplus-3411edb5d3ae07d247421e4b8f7936a22b7b4027.tar.xz
manaplus-3411edb5d3ae07d247421e4b8f7936a22b7b4027.zip
Convert Attributes enum into strong typed enum.
Diffstat (limited to 'src/gui/widgets/statuswindowattrs.h')
-rw-r--r--src/gui/widgets/statuswindowattrs.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/widgets/statuswindowattrs.h b/src/gui/widgets/statuswindowattrs.h
index ee336c616..7359a1a86 100644
--- a/src/gui/widgets/statuswindowattrs.h
+++ b/src/gui/widgets/statuswindowattrs.h
@@ -23,6 +23,8 @@
#ifndef GUI_WIDGETS_STATUSWINDOWATTRS_H
#define GUI_WIDGETS_STATUSWINDOWATTRS_H
+#include "enums/being/attributes.h"
+
#include "gui/widgets/container.h"
#include "gui/widgets/label.h"
@@ -66,11 +68,11 @@ class AttrDisplay notfinal : public Container
protected:
AttrDisplay(const Widget2 *const widget,
- const int id,
+ const AttributesT id,
const std::string &restrict name,
const std::string &restrict shortName);
- const int mId;
+ const AttributesT mId;
const std::string mName;
const std::string mShortName;
@@ -83,7 +85,8 @@ class DerDisplay final : public AttrDisplay
{
public:
DerDisplay(const Widget2 *const widget,
- const int id, const std::string &restrict name,
+ const AttributesT id,
+ const std::string &restrict name,
const std::string &restrict shortName);
A_DELETE_COPY(DerDisplay)
@@ -97,7 +100,8 @@ class ChangeDisplay final : public AttrDisplay,
{
public:
ChangeDisplay(const Widget2 *const widget,
- const int id, const std::string &restrict name,
+ const AttributesT id,
+ const std::string &restrict name,
const std::string &restrict shortName);
A_DELETE_COPY(ChangeDisplay)