summaryrefslogtreecommitdiff
path: root/src/gui/popups/beingpopup.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-13 17:14:30 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-13 17:14:30 +0300
commitbcf122e6d80e767bd4546b183f24b46cbbea65f1 (patch)
tree4c291ea46713edd33734bb61a76442b8d592b227 /src/gui/popups/beingpopup.h
parentcdc8f4ad535d39adb89f238c6f9b2c68d71f6151 (diff)
downloadplus-bcf122e6d80e767bd4546b183f24b46cbbea65f1.tar.gz
plus-bcf122e6d80e767bd4546b183f24b46cbbea65f1.tar.bz2
plus-bcf122e6d80e767bd4546b183f24b46cbbea65f1.tar.xz
plus-bcf122e6d80e767bd4546b183f24b46cbbea65f1.zip
Simplify BeingPopup class.
Diffstat (limited to 'src/gui/popups/beingpopup.h')
-rw-r--r--src/gui/popups/beingpopup.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gui/popups/beingpopup.h b/src/gui/popups/beingpopup.h
index 8a11e1e10..f72e268ff 100644
--- a/src/gui/popups/beingpopup.h
+++ b/src/gui/popups/beingpopup.h
@@ -24,6 +24,8 @@
#include "gui/widgets/popup.h"
+#include <vector>
+
class Being;
class Label;
@@ -57,15 +59,10 @@ class BeingPopup final : public Popup
#endif
private:
+ void addLabels(const int fontHeight);
+
Label *mBeingName A_NONNULLPOINTER;
- Label *mBeingParty A_NONNULLPOINTER;
- Label *mBeingGuild A_NONNULLPOINTER;
- Label *mBeingRank A_NONNULLPOINTER;
- Label *mBeingComment A_NONNULLPOINTER;
- Label *mBeingBuyBoard A_NONNULLPOINTER;
- Label *mBeingSellBoard A_NONNULLPOINTER;
- Label *mBeingRoom A_NONNULLPOINTER;
- Label *mBeingEffects A_NONNULLPOINTER;
+ std::vector<Label*> mLabels;
};
extern BeingPopup *beingPopup;