summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-14 15:36:21 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-14 15:36:21 +0300
commit5781d238e97689be482c5ac691143ce35e3e278e (patch)
treec5e362c2e7ebbef874dadb6a2d22a1733d16efdd /src/gui/popups/popupmenu.h
parent653087c6ffd0f5f4245f6f3a2e18d4e7129070c0 (diff)
downloadplus-5781d238e97689be482c5ac691143ce35e3e278e.tar.gz
plus-5781d238e97689be482c5ac691143ce35e3e278e.tar.bz2
plus-5781d238e97689be482c5ac691143ce35e3e278e.tar.xz
plus-5781d238e97689be482c5ac691143ce35e3e278e.zip
Move playerlistener into separate file.
Diffstat (limited to 'src/gui/popups/popupmenu.h')
-rw-r--r--src/gui/popups/popupmenu.h25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/gui/popups/popupmenu.h b/src/gui/popups/popupmenu.h
index fbbb69cd0..1fc124b16 100644
--- a/src/gui/popups/popupmenu.h
+++ b/src/gui/popups/popupmenu.h
@@ -27,6 +27,7 @@
#include "gui/widgets/popup.h"
#include "listeners/actionlistener.h"
+#include "listeners/playerlistener.h"
#include "listeners/renamelistener.h"
#include "localconsts.h"
@@ -47,30 +48,6 @@ class TextField;
class ProgressBar;
class Window;
-class PlayerListener : public ActionListener
-{
- public:
- PlayerListener();
-
- A_DELETE_COPY(PlayerListener)
-
- void action(const ActionEvent &event) override final;
-
- void setNick(const std::string &name)
- { mNick = name; }
-
- void setDialog(TextDialog *const dialog)
- { mDialog = dialog; }
-
- void setType(const int type)
- { mType = type; }
-
- private:
- std::string mNick;
- TextDialog *mDialog;
- int mType;
-};
-
/**
* Window showing popup menu.
*/