summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-15 22:45:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-15 22:45:17 +0300
commite3ec854f275cc6f79129bbdd3129be277100908f (patch)
tree0fe087ce12daa09d1942d9d1c9fde9d9d63f24aa
parent884ab3c2ab1d308866649b01faf0dc95d76809c5 (diff)
downloadplus-e3ec854f275cc6f79129bbdd3129be277100908f.tar.gz
plus-e3ec854f275cc6f79129bbdd3129be277100908f.tar.bz2
plus-e3ec854f275cc6f79129bbdd3129be277100908f.tar.xz
plus-e3ec854f275cc6f79129bbdd3129be277100908f.zip
Move some listeners classes into listeners directory.
-rw-r--r--src/CMakeLists.txt6
-rw-r--r--src/Makefile.am6
-rw-r--r--src/being/localplayer.h2
-rw-r--r--src/client.h2
-rw-r--r--src/configuration.cpp3
-rw-r--r--src/depricatedevent.cpp3
-rw-r--r--src/eventsmanager.h2
-rw-r--r--src/gui/theme.h2
-rw-r--r--src/gui/viewport.h3
-rw-r--r--src/gui/widgets/avatarlistbox.h2
-rw-r--r--src/gui/windowmenu.h2
-rw-r--r--src/gui/windows/botcheckerwindow.h2
-rw-r--r--src/gui/windows/chatwindow.h4
-rw-r--r--src/gui/windows/inventorywindow.h3
-rw-r--r--src/gui/windows/killstats.h2
-rw-r--r--src/gui/windows/ministatuswindow.h3
-rw-r--r--src/gui/windows/npcdialog.h2
-rw-r--r--src/gui/windows/statuswindow.h2
-rw-r--r--src/gui/windows/whoisonline.h2
-rw-r--r--src/listeners/configlistener.h (renamed from src/configlistener.h)6
-rw-r--r--src/listeners/depricatedlistener.cpp (renamed from src/depricatedlistener.cpp)2
-rw-r--r--src/listeners/depricatedlistener.h (renamed from src/depricatedlistener.h)6
-rw-r--r--src/map.h3
-rw-r--r--src/maplayer.h3
-rw-r--r--src/soundmanager.h2
-rw-r--r--src/touchmanager.h2
26 files changed, 42 insertions, 35 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 65570ee7b..042ed6af6 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -607,7 +607,7 @@ SET(SRCS
commands.h
being/compoundsprite.cpp
being/compoundsprite.h
- configlistener.h
+ listeners/configlistener.h
configuration.cpp
configuration.h
debug.h
@@ -615,8 +615,8 @@ SET(SRCS
defaults.h
depricatedevent.cpp
depricatedevent.h
- depricatedlistener.cpp
- depricatedlistener.h
+ listeners/depricatedlistener.cpp
+ listeners/depricatedlistener.h
dragdrop.h
effectmanager.cpp
effectmanager.h
diff --git a/src/Makefile.am b/src/Makefile.am
index 7fe7a5e2e..4aa93893f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -732,7 +732,7 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \
commands.h \
being/compoundsprite.cpp \
being/compoundsprite.h \
- configlistener.h \
+ listeners/configlistener.h \
configuration.cpp \
configuration.h \
debug.h \
@@ -740,8 +740,8 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \
defaults.h \
depricatedevent.cpp \
depricatedevent.h \
- depricatedlistener.cpp \
- depricatedlistener.h \
+ listeners/depricatedlistener.cpp \
+ listeners/depricatedlistener.h \
dragdrop.h \
dropshortcut.cpp \
dropshortcut.h \
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index 1bbf7dcc8..16c317bab 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -23,7 +23,7 @@
#ifndef BEING_LOCALPLAYER_H
#define BEING_LOCALPLAYER_H
-#include "depricatedlistener.h"
+#include "listeners/depricatedlistener.h"
#include "being/actorspritelistener.h"
#include "being/being.h"
diff --git a/src/client.h b/src/client.h
index c26e91eae..f020087ea 100644
--- a/src/client.h
+++ b/src/client.h
@@ -23,7 +23,7 @@
#ifndef CLIENT_H
#define CLIENT_H
-#include "configlistener.h"
+#include "listeners/configlistener.h"
#include "net/serverinfo.h"
diff --git a/src/configuration.cpp b/src/configuration.cpp
index d4b9f122b..7d6fc43fd 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -22,9 +22,10 @@
#include "configuration.h"
-#include "configlistener.h"
#include "logger.h"
+#include "listeners/configlistener.h"
+
#include "utils/paths.h"
#include "debug.h"
diff --git a/src/depricatedevent.cpp b/src/depricatedevent.cpp
index 8d021e2f3..fc499c47b 100644
--- a/src/depricatedevent.cpp
+++ b/src/depricatedevent.cpp
@@ -21,9 +21,10 @@
#include "depricatedevent.h"
-#include "depricatedlistener.h"
#include "variabledata.h"
+#include "listeners/depricatedlistener.h"
+
#include "debug.h"
DepricatedListenMap DepricatedEvent::mBindings;
diff --git a/src/eventsmanager.h b/src/eventsmanager.h
index 5433a83fb..e54c4dee4 100644
--- a/src/eventsmanager.h
+++ b/src/eventsmanager.h
@@ -21,7 +21,7 @@
#ifndef EVENTSMANAGER_H
#define EVENTSMANAGER_H
-#include "configlistener.h"
+#include "listeners/configlistener.h"
#include <string>
diff --git a/src/gui/theme.h b/src/gui/theme.h
index b40be2881..826902004 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -25,7 +25,7 @@
#ifndef GUI_THEME_H
#define GUI_THEME_H
-#include "configlistener.h"
+#include "listeners/configlistener.h"
#include "render/graphics.h"
diff --git a/src/gui/viewport.h b/src/gui/viewport.h
index 7e18d8395..9adaa6c18 100644
--- a/src/gui/viewport.h
+++ b/src/gui/viewport.h
@@ -23,9 +23,10 @@
#ifndef GUI_VIEWPORT_H
#define GUI_VIEWPORT_H
-#include "configlistener.h"
#include "position.h"
+#include "listeners/configlistener.h"
+
#include "gui/widgets/windowcontainer.h"
#include "gui/base/mouselistener.hpp"
diff --git a/src/gui/widgets/avatarlistbox.h b/src/gui/widgets/avatarlistbox.h
index 46e5c8dea..ec384368c 100644
--- a/src/gui/widgets/avatarlistbox.h
+++ b/src/gui/widgets/avatarlistbox.h
@@ -24,7 +24,7 @@
#include "avatar.h"
-#include "configlistener.h"
+#include "listeners/configlistener.h"
#include "gui/widgets/listbox.h"
diff --git a/src/gui/windowmenu.h b/src/gui/windowmenu.h
index bf8298b75..f6838115c 100644
--- a/src/gui/windowmenu.h
+++ b/src/gui/windowmenu.h
@@ -23,7 +23,7 @@
#ifndef GUI_WINDOWMENU_H
#define GUI_WINDOWMENU_H
-#include "configlistener.h"
+#include "listeners/configlistener.h"
#include "gui/widgets/container.h"
#include "gui/widgets/button.h"
diff --git a/src/gui/windows/botcheckerwindow.h b/src/gui/windows/botcheckerwindow.h
index e7c9ecbb0..1346862d2 100644
--- a/src/gui/windows/botcheckerwindow.h
+++ b/src/gui/windows/botcheckerwindow.h
@@ -23,7 +23,7 @@
#ifndef GUI_BOTCHECKERWINDOW_H
#define GUI_BOTCHECKERWINDOW_H
-#include "configlistener.h"
+#include "listeners/configlistener.h"
#include "gui/widgets/window.h"
diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h
index d20f68ecc..6678eac28 100644
--- a/src/gui/windows/chatwindow.h
+++ b/src/gui/windows/chatwindow.h
@@ -23,9 +23,9 @@
#ifndef GUI_WINDOWS_CHATWINDOW_H
#define GUI_WINDOWS_CHATWINDOW_H
-#include "depricatedlistener.h"
+#include "listeners/depricatedlistener.h"
-#include "configlistener.h"
+#include "listeners/configlistener.h"
#include "gui/widgets/window.h"
diff --git a/src/gui/windows/inventorywindow.h b/src/gui/windows/inventorywindow.h
index da6e56a77..c0289e70d 100644
--- a/src/gui/windows/inventorywindow.h
+++ b/src/gui/windows/inventorywindow.h
@@ -24,7 +24,8 @@
#define GUI_WINDOWS_INVENTORYWINDOW_H
#include "inventory.h"
-#include "depricatedlistener.h"
+
+#include "listeners/depricatedlistener.h"
#include "gui/widgets/window.h"
diff --git a/src/gui/windows/killstats.h b/src/gui/windows/killstats.h
index 181e43a51..46dbf842b 100644
--- a/src/gui/windows/killstats.h
+++ b/src/gui/windows/killstats.h
@@ -25,7 +25,7 @@
#include "gui/base/actionlistener.hpp"
-#include "depricatedlistener.h"
+#include "listeners/depricatedlistener.h"
#include "gui/widgets/window.h"
diff --git a/src/gui/windows/ministatuswindow.h b/src/gui/windows/ministatuswindow.h
index 7748f51d1..5fccae02e 100644
--- a/src/gui/windows/ministatuswindow.h
+++ b/src/gui/windows/ministatuswindow.h
@@ -24,7 +24,8 @@
#define GUI_WINDOWS_MINISTATUSWINDOW_H
#include "inventory.h"
-#include "depricatedlistener.h"
+
+#include "listeners/depricatedlistener.h"
#include "gui/widgets/popup.h"
diff --git a/src/gui/windows/npcdialog.h b/src/gui/windows/npcdialog.h
index 21c3f93e5..8646e5365 100644
--- a/src/gui/windows/npcdialog.h
+++ b/src/gui/windows/npcdialog.h
@@ -23,7 +23,7 @@
#ifndef GUI_WINDOWS_NPCDIALOG_H
#define GUI_WINDOWS_NPCDIALOG_H
-#include "configlistener.h"
+#include "listeners/configlistener.h"
#include "gui/widgets/extendedlistmodel.h"
#include "gui/widgets/window.h"
diff --git a/src/gui/windows/statuswindow.h b/src/gui/windows/statuswindow.h
index 5e100b64e..c9efe6edd 100644
--- a/src/gui/windows/statuswindow.h
+++ b/src/gui/windows/statuswindow.h
@@ -23,7 +23,7 @@
#ifndef GUI_WINDOWS_STATUSWINDOW_H
#define GUI_WINDOWS_STATUSWINDOW_H
-#include "depricatedlistener.h"
+#include "listeners/depricatedlistener.h"
#include "gui/widgets/window.h"
diff --git a/src/gui/windows/whoisonline.h b/src/gui/windows/whoisonline.h
index da5ab010d..d60805983 100644
--- a/src/gui/windows/whoisonline.h
+++ b/src/gui/windows/whoisonline.h
@@ -23,7 +23,7 @@
#ifndef GUI_WINDOWS_WHOISONLINE_H
#define GUI_WINDOWS_WHOISONLINE_H
-#include "configlistener.h"
+#include "listeners/configlistener.h"
#include "gui/widgets/linkhandler.h"
#include "gui/widgets/window.h"
diff --git a/src/configlistener.h b/src/listeners/configlistener.h
index 3de898692..757d24bfc 100644
--- a/src/configlistener.h
+++ b/src/listeners/configlistener.h
@@ -20,8 +20,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef CONFIGLISTENER_H
-#define CONFIGLISTENER_H
+#ifndef LISTENERS_CONFIGLISTENER_H
+#define LISTENERS_CONFIGLISTENER_H
#include <string>
@@ -47,4 +47,4 @@ class ConfigListener
virtual void optionChanged(const std::string &name) = 0;
};
-#endif // CONFIGLISTENER_H
+#endif // LISTENERS_CONFIGLISTENER_H
diff --git a/src/depricatedlistener.cpp b/src/listeners/depricatedlistener.cpp
index 0cd473852..c853c028d 100644
--- a/src/depricatedlistener.cpp
+++ b/src/listeners/depricatedlistener.cpp
@@ -19,7 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "depricatedlistener.h"
+#include "listeners/depricatedlistener.h"
#include "debug.h"
diff --git a/src/depricatedlistener.h b/src/listeners/depricatedlistener.h
index 52596b70f..175eec74a 100644
--- a/src/depricatedlistener.h
+++ b/src/listeners/depricatedlistener.h
@@ -19,8 +19,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef DEPRICATEDLISTENER_H
-#define DEPRICATEDLISTENER_H
+#ifndef LISTENERS_DEPRICATEDLISTENER_H
+#define LISTENERS_DEPRICATEDLISTENER_H
#include "depricatedevent.h"
@@ -37,4 +37,4 @@ class DepricatedListener
const DepricatedEvent &event) = 0;
};
-#endif // DEPRICATEDLISTENER_H
+#endif // LISTENERS_DEPRICATEDLISTENER_H
diff --git a/src/map.h b/src/map.h
index 26303da7a..d33857415 100644
--- a/src/map.h
+++ b/src/map.h
@@ -23,12 +23,13 @@
#ifndef MAP_H
#define MAP_H
-#include "configlistener.h"
#include "position.h"
#include "properties.h"
#include "being/actor.h"
+#include "listeners/configlistener.h"
+
#include "render/renderers.h"
#include <string>
diff --git a/src/maplayer.h b/src/maplayer.h
index dcfdb991e..88db82214 100644
--- a/src/maplayer.h
+++ b/src/maplayer.h
@@ -23,10 +23,11 @@
#ifndef MAPLAYER_H
#define MAPLAYER_H
-#include "configlistener.h"
#include "position.h"
#include "main.h"
+#include "listeners/configlistener.h"
+
#include "being/actor.h"
#include <string>
diff --git a/src/soundmanager.h b/src/soundmanager.h
index 9eb1ea8a2..9a09f383d 100644
--- a/src/soundmanager.h
+++ b/src/soundmanager.h
@@ -25,7 +25,7 @@
#include <SDL_mixer.h>
-#include "configlistener.h"
+#include "listeners/configlistener.h"
#include <string>
diff --git a/src/touchmanager.h b/src/touchmanager.h
index e203da69f..6419c4b17 100644
--- a/src/touchmanager.h
+++ b/src/touchmanager.h
@@ -23,7 +23,7 @@
#include "resources/image.h"
-#include "configlistener.h"
+#include "listeners/configlistener.h"
#include "input/keydata.h"