diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-18 15:04:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-18 15:04:39 +0300 |
commit | 8fdbbe936fc0bb99b0c3d851b7a5b522514ba2b9 (patch) | |
tree | 5b3b4c986e5d9847b1766af2db45ae270f8b3382 /src/gui/popupmenu.h | |
parent | 59dc4ad66d2552ae1809555abd3c1e0faf99209f (diff) | |
download | manaplus-8fdbbe936fc0bb99b0c3d851b7a5b522514ba2b9.tar.gz manaplus-8fdbbe936fc0bb99b0c3d851b7a5b522514ba2b9.tar.bz2 manaplus-8fdbbe936fc0bb99b0c3d851b7a5b522514ba2b9.tar.xz manaplus-8fdbbe936fc0bb99b0c3d851b7a5b522514ba2b9.zip |
improve popupmenu class.
Diffstat (limited to 'src/gui/popupmenu.h')
-rw-r--r-- | src/gui/popupmenu.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/popupmenu.h b/src/gui/popupmenu.h index d3682f68e..de52c9c17 100644 --- a/src/gui/popupmenu.h +++ b/src/gui/popupmenu.h @@ -116,7 +116,8 @@ class PopupMenu final : public Popup, public LinkHandler void showPopup(const int x, const int y, std::vector<ActorSprite*> &beings); - void showPlayerPopup(const int x, const int y, std::string nick); + void showPlayerPopup(const int x, const int y, + const std::string &nick); /** * Shows the floor item related popup menu at the specified @@ -149,7 +150,8 @@ class PopupMenu final : public Popup, public LinkHandler void showSpellPopup(const int x, const int y, TextCommand *const cmd); - void showAttackMonsterPopup(int x, int y, std::string name, int type); + void showAttackMonsterPopup(int x, int y, const std::string &name, + int type); void showPickupItemPopup(int x, int y, std::string name); @@ -168,9 +170,9 @@ class PopupMenu final : public Popup, public LinkHandler void showChangePos(const int x, const int y); - void showPopup(const int x, const int y, gcn::ListModel *model); + void showPopup(const int x, const int y, gcn::ListModel *const model); - void showTextFieldPopup(int x, int y, TextField *input); + void showTextFieldPopup(int x, int y, TextField *const input); void showLinkPopup(const int x, const int y, const std::string &link); @@ -185,7 +187,7 @@ class PopupMenu final : public Popup, public LinkHandler void clear(); private: - void addPlayerRelation(std::string name); + void addPlayerRelation(const std::string &name); void addFollow(); |