summaryrefslogtreecommitdiff
path: root/src/gui/windows/statuswindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-27 16:24:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-27 16:24:12 +0300
commita6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0 (patch)
treebd1e6b6a1cdb42b5e6d4489158d438fe8c05f533 /src/gui/windows/statuswindow.h
parentaf0ae4d0b7c56d540639bb1f4ba7cc458ec718c1 (diff)
downloadmv-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.tar.gz
mv-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.tar.bz2
mv-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.tar.xz
mv-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.zip
Add StatListener.
Diffstat (limited to 'src/gui/windows/statuswindow.h')
-rw-r--r--src/gui/windows/statuswindow.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/windows/statuswindow.h b/src/gui/windows/statuswindow.h
index 11aa2ad05..797e7647f 100644
--- a/src/gui/windows/statuswindow.h
+++ b/src/gui/windows/statuswindow.h
@@ -27,7 +27,7 @@
#include "listeners/actionlistener.h"
#include "listeners/attributelistener.h"
-#include "listeners/depricatedlistener.h"
+#include "listeners/statlistener.h"
#include <map>
@@ -45,8 +45,8 @@ class VertContainer;
*/
class StatusWindow final : public Window,
public ActionListener,
- public DepricatedListener,
- public AttributeListener
+ public AttributeListener,
+ public StatListener
{
public:
/**
@@ -56,9 +56,6 @@ class StatusWindow final : public Window,
A_DELETE_COPY(StatusWindow)
- void processEvent(const Channels channel,
- const DepricatedEvent &event) override;
-
void setPointsNeeded(const int id, const int needed);
void addAttribute(const int id, const std::string &restrict name,
@@ -92,6 +89,10 @@ class StatusWindow final : public Window,
const int oldVal,
const int newVal) override final;
+ void statChanged(const int id,
+ const int oldVal1,
+ const int oldVal2) override final;
+
private:
static std::string translateLetter(const char *const letters);
static std::string translateLetter2(std::string letters);