summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.h
diff options
context:
space:
mode:
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;