summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-14 23:23:30 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-14 23:36:38 +0300
commitbf9bccc30a186e338f96c230a4f63cc924c77bd8 (patch)
treee46dbc2f022842982d89164ee598e1bcf827aa39 /src/gui/popupmenu.h
parentfb0f86589ae9e2d582383cea43e0a391e8d4739d (diff)
downloadmanaplus-bf9bccc30a186e338f96c230a4f63cc924c77bd8.tar.gz
manaplus-bf9bccc30a186e338f96c230a4f63cc924c77bd8.tar.bz2
manaplus-bf9bccc30a186e338f96c230a4f63cc924c77bd8.tar.xz
manaplus-bf9bccc30a186e338f96c230a4f63cc924c77bd8.zip
Add ability to add comments to any players.
Diffstat (limited to 'src/gui/popupmenu.h')
-rw-r--r--src/gui/popupmenu.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/popupmenu.h b/src/gui/popupmenu.h
index 976e3e5d2..50d86ff37 100644
--- a/src/gui/popupmenu.h
+++ b/src/gui/popupmenu.h
@@ -65,6 +65,24 @@ class RenameListener : public gcn::ActionListener
TextDialog *mDialog;
};
+class PlayerListener : public gcn::ActionListener
+{
+ public:
+ PlayerListener();
+
+ void action(const gcn::ActionEvent &event);
+
+ void setNick(std::string name)
+ { mNick = name; }
+
+ void setDialog(TextDialog *dialog)
+ { mDialog = dialog; }
+
+ private:
+ std::string mNick;
+ TextDialog *mDialog;
+};
+
/**
* Window showing popup menu.
*/
@@ -149,6 +167,7 @@ class PopupMenu : public Popup, public LinkHandler
TextCommand *mSpell;
Window *mWindow;
RenameListener mRenameListener;
+ PlayerListener mPlayerListener;
TextDialog *mDialog;
Button *mButton;
std::string mNick;