summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/dialogsmanager.cpp2
-rw-r--r--src/gui/gui.cpp8
-rw-r--r--src/gui/models/skillmodel.cpp2
-rw-r--r--src/gui/popups/popupmenu.cpp7
-rw-r--r--src/gui/widgets/avatarlistbox.cpp1
-rw-r--r--src/gui/widgets/browserbox.cpp4
-rw-r--r--src/gui/widgets/button.cpp1
-rw-r--r--src/gui/widgets/desktop.cpp1
-rw-r--r--src/gui/widgets/dropdown.cpp3
-rw-r--r--src/gui/widgets/extendedlistbox.cpp4
-rw-r--r--src/gui/widgets/itemcontainer.cpp5
-rw-r--r--src/gui/widgets/itemlinkhandler.cpp2
-rw-r--r--src/gui/widgets/itemshortcutcontainer.cpp5
-rw-r--r--src/gui/widgets/layoutarray.cpp2
-rw-r--r--src/gui/widgets/playerbox.cpp2
-rw-r--r--src/gui/widgets/setupitem.cpp1
-rw-r--r--src/gui/widgets/shoplistbox.cpp2
-rw-r--r--src/gui/widgets/spellshortcutcontainer.cpp2
-rw-r--r--src/gui/widgets/tabs/chat/guildtab.cpp1
-rw-r--r--src/gui/widgets/tabs/debugwindowtabs.cpp3
-rw-r--r--src/gui/widgets/tabs/setup_audio.cpp2
-rw-r--r--src/gui/widgets/tabs/setup_colors.cpp1
-rw-r--r--src/gui/widgets/tabs/setup_theme.cpp1
-rw-r--r--src/gui/widgets/tabs/setup_touch.cpp1
-rw-r--r--src/gui/widgets/tabs/setup_video.cpp9
-rw-r--r--src/gui/widgets/virtshortcutcontainer.cpp2
-rw-r--r--src/gui/widgets/widget.cpp2
-rw-r--r--src/gui/widgets/window.cpp3
-rw-r--r--src/gui/windowmenu.cpp2
-rw-r--r--src/gui/windows/botcheckerwindow.cpp2
-rw-r--r--src/gui/windows/buydialog.cpp1
-rw-r--r--src/gui/windows/changeemaildialog.cpp4
-rw-r--r--src/gui/windows/changepassworddialog.cpp4
-rw-r--r--src/gui/windows/charcreatedialog.cpp2
-rw-r--r--src/gui/windows/charselectdialog.cpp3
-rw-r--r--src/gui/windows/chatwindow.cpp5
-rw-r--r--src/gui/windows/equipmentwindow.cpp3
-rw-r--r--src/gui/windows/inventorywindow.cpp3
-rw-r--r--src/gui/windows/itemamountwindow.cpp2
-rw-r--r--src/gui/windows/minimap.cpp1
-rw-r--r--src/gui/windows/ministatuswindow.cpp1
-rw-r--r--src/gui/windows/npcdialog.cpp1
-rw-r--r--src/gui/windows/outfitwindow.cpp5
-rw-r--r--src/gui/windows/registerdialog.cpp1
-rw-r--r--src/gui/windows/serverdialog.cpp10
-rw-r--r--src/gui/windows/setupwindow.cpp1
-rw-r--r--src/gui/windows/shopwindow.cpp39
-rw-r--r--src/gui/windows/skilldialog.cpp4
-rw-r--r--src/gui/windows/socialwindow.cpp10
-rw-r--r--src/gui/windows/statuswindow.cpp4
-rw-r--r--src/gui/windows/textcommandeditor.cpp1
-rw-r--r--src/gui/windows/tradewindow.cpp1
-rw-r--r--src/gui/windows/unregisterdialog.cpp4
-rw-r--r--src/gui/windows/updaterwindow.cpp2
-rw-r--r--src/gui/windows/whoisonline.cpp8
55 files changed, 43 insertions, 160 deletions
diff --git a/src/gui/dialogsmanager.cpp b/src/gui/dialogsmanager.cpp
index f415e2cd2..5081ed124 100644
--- a/src/gui/dialogsmanager.cpp
+++ b/src/gui/dialogsmanager.cpp
@@ -34,8 +34,6 @@
#include "gui/windows/confirmdialog.h"
#include "gui/windows/buyselldialog.h"
#include "gui/windows/buydialog.h"
-#include "gui/windows/npcdialog.h"
-#include "gui/windows/okdialog.h"
#include "gui/windows/updaterwindow.h"
#include "listeners/playerpostdeathlistener.h"
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 0578b188b..b5b1ab414 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -66,16 +66,13 @@
#include "gui/gui.h"
#include "gui/focushandler.h"
-#include "gui/palette.h"
#include "gui/sdlinput.h"
-#include "gui/theme.h"
#include "gui/viewport.h"
#include "gui/fonts/font.h"
#include "gui/widgets/window.h"
-#include "configuration.h"
#include "dragdrop.h"
#include "settings.h"
#include "touchmanager.h"
@@ -83,14 +80,9 @@
#include "listeners/focuslistener.h"
#include "listeners/guiconfiglistener.h"
#include "listeners/keylistener.h"
-#include "listeners/mouselistener.h"
#include "input/inputmanager.h"
-#include "input/keyinput.h"
-#include "input/mouseinput.h"
-#include "resources/cursor.h"
-#include "resources/image.h"
#include "resources/imageset.h"
#include "resources/resourcemanager.h"
diff --git a/src/gui/models/skillmodel.cpp b/src/gui/models/skillmodel.cpp
index 9827b78c2..8bb1bdbf8 100644
--- a/src/gui/models/skillmodel.cpp
+++ b/src/gui/models/skillmodel.cpp
@@ -24,8 +24,6 @@
#include "gui/widgets/skilldata.h"
-#include <string>
-
#include "debug.h"
SkillModel::SkillModel() :
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index f6e848ce5..bc6c1fac8 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -25,8 +25,9 @@
#include "actormanager.h"
#include "configuration.h"
#include "gamemodifiers.h"
-#include "guild.h"
+#ifdef TMWA_SUPPORT
#include "guildmanager.h"
+#endif
#include "item.h"
#include "party.h"
#include "spellmanager.h"
@@ -54,12 +55,10 @@
#include "gui/windowmenu.h"
#include "gui/widgets/button.h"
-#include "gui/widgets/browserbox.h"
#include "gui/widgets/progressbar.h"
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/textfield.h"
-#include "gui/widgets/tabs/chat/chattab.h"
#include "gui/widgets/tabs/chat/whispertab.h"
#include "net/adminhandler.h"
@@ -87,8 +86,6 @@
#include "utils/gettext.h"
#include "utils/process.h"
-#include "gui/models/listmodel.h"
-
#include "debug.h"
std::string tradePartnerName;
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index 0b41cad40..a508897d3 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -40,7 +40,6 @@
#include "gui/windows/chatwindow.h"
-#include "resources/image.h"
#include "resources/mapitemtype.h"
#include "resources/map/map.h"
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index 1657968df..4862e07a3 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -45,10 +45,6 @@
#include "utils/timer.h"
#include "utils/translation/podict.h"
-#include "gui/cliprect.h"
-
-#include "render/graphics.h"
-
#include <algorithm>
#include "debug.h"
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp
index f228df029..39b09ae0b 100644
--- a/src/gui/widgets/button.cpp
+++ b/src/gui/widgets/button.cpp
@@ -76,7 +76,6 @@
#include "gui/gui.h"
#include "gui/skin.h"
-#include "gui/rect.h"
#include "gui/fonts/font.h"
diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp
index 3f79d1531..291c77852 100644
--- a/src/gui/widgets/desktop.cpp
+++ b/src/gui/widgets/desktop.cpp
@@ -22,7 +22,6 @@
#include "gui/widgets/desktop.h"
#include "configuration.h"
-#include "main.h"
#include "gui/skin.h"
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index b9d6f096c..3977931b6 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -35,11 +35,8 @@
#include "gui/widgets/popuplist.h"
-#include "resources/image.h"
#include "resources/imagerect.h"
-#include <algorithm>
-
#include "debug.h"
int DropDown::instances = 0;
diff --git a/src/gui/widgets/extendedlistbox.cpp b/src/gui/widgets/extendedlistbox.cpp
index b9a9abf32..41400c1a6 100644
--- a/src/gui/widgets/extendedlistbox.cpp
+++ b/src/gui/widgets/extendedlistbox.cpp
@@ -26,10 +26,6 @@
#include "gui/fonts/font.h"
-#include "gui/models/listmodel.h"
-
-#include "render/graphics.h"
-
#include "debug.h"
ExtendedListBox::ExtendedListBox(const Widget2 *const widget,
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index 0bb8c50f3..9728c0e7f 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -23,8 +23,6 @@
#include "gui/widgets/itemcontainer.h"
#include "dragdrop.h"
-#include "inventory.h"
-#include "item.h"
#include "itemshortcut.h"
#include "being/playerinfo.h"
@@ -47,11 +45,8 @@
#include "utils/gettext.h"
#include "utils/stringutils.h"
-#include "resources/image.h"
#include "resources/iteminfo.h"
-#include "listeners/selectionlistener.h"
-
#include <algorithm>
#include "debug.h"
diff --git a/src/gui/widgets/itemlinkhandler.cpp b/src/gui/widgets/itemlinkhandler.cpp
index 19088782b..4cb998c69 100644
--- a/src/gui/widgets/itemlinkhandler.cpp
+++ b/src/gui/widgets/itemlinkhandler.cpp
@@ -37,8 +37,6 @@
#include "listeners/openurllistener.h"
-#include <string>
-
#include "debug.h"
namespace
diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp
index c11a83f8c..775062ce1 100644
--- a/src/gui/widgets/itemshortcutcontainer.cpp
+++ b/src/gui/widgets/itemshortcutcontainer.cpp
@@ -23,8 +23,6 @@
#include "gui/widgets/itemshortcutcontainer.h"
#include "dragdrop.h"
-#include "inventory.h"
-#include "item.h"
#include "itemshortcut.h"
#include "settings.h"
#include "spellshortcut.h"
@@ -44,9 +42,6 @@
#include "gui/windows/inventorywindow.h"
#include "gui/windows/skilldialog.h"
-#include "gui/widgets/skillinfo.h"
-
-#include "resources/image.h"
#include "resources/skillconsts.h"
#include "utils/stringutils.h"
diff --git a/src/gui/widgets/layoutarray.cpp b/src/gui/widgets/layoutarray.cpp
index 92af206fb..f025769e8 100644
--- a/src/gui/widgets/layoutarray.cpp
+++ b/src/gui/widgets/layoutarray.cpp
@@ -22,8 +22,6 @@
#include "gui/widgets/layoutarray.h"
-#include "logger.h"
-
#include "gui/widgets/layoutcell.h"
#include "gui/widgets/layouttype.h"
#include "gui/widgets/widget.h"
diff --git a/src/gui/widgets/playerbox.cpp b/src/gui/widgets/playerbox.cpp
index 4775e266f..2d07460c4 100644
--- a/src/gui/widgets/playerbox.cpp
+++ b/src/gui/widgets/playerbox.cpp
@@ -29,8 +29,6 @@
#include "gui/gui.h"
#include "gui/skin.h"
-#include "resources/image.h"
-
#include "debug.h"
PlayerBox::PlayerBox(Widget2 *const widget,
diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp
index ff1370c0b..98dadd046 100644
--- a/src/gui/widgets/setupitem.cpp
+++ b/src/gui/widgets/setupitem.cpp
@@ -21,7 +21,6 @@
#include "gui/widgets/setupitem.h"
#include "configuration.h"
-#include "main.h"
#include "soundmanager.h"
#include "gui/gui.h"
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp
index 97ace4181..b4799a218 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -38,8 +38,6 @@
#include "resources/image.h"
-#include "gui/models/listmodel.h"
-
#include "debug.h"
const int ITEM_ICON_SIZE = 32;
diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp
index 211dd6b4e..a22cb7f6e 100644
--- a/src/gui/widgets/spellshortcutcontainer.cpp
+++ b/src/gui/widgets/spellshortcutcontainer.cpp
@@ -36,8 +36,6 @@
#include "gui/windows/shortcutwindow.h"
-#include "resources/image.h"
-
#include "debug.h"
SpellShortcutContainer::SpellShortcutContainer(Widget2 *const widget,
diff --git a/src/gui/widgets/tabs/chat/guildtab.cpp b/src/gui/widgets/tabs/chat/guildtab.cpp
index 341513852..0b220594a 100644
--- a/src/gui/widgets/tabs/chat/guildtab.cpp
+++ b/src/gui/widgets/tabs/chat/guildtab.cpp
@@ -23,7 +23,6 @@
#include "gui/widgets/tabs/chat/guildtab.h"
#include "configuration.h"
-#include "guild.h"
#include "soundconsts.h"
#include "soundmanager.h"
diff --git a/src/gui/widgets/tabs/debugwindowtabs.cpp b/src/gui/widgets/tabs/debugwindowtabs.cpp
index 7c5adcd66..faccf9b2e 100644
--- a/src/gui/widgets/tabs/debugwindowtabs.cpp
+++ b/src/gui/widgets/tabs/debugwindowtabs.cpp
@@ -32,10 +32,11 @@
#include "gui/widgets/containerplacer.h"
#include "gui/widgets/label.h"
-#include "gui/widgets/layoutcell.h"
#include "gui/widgets/layouthelper.h"
+#ifdef USE_OPENGL
#include "resources/imagehelper.h"
+#endif
#include "resources/map/map.h"
diff --git a/src/gui/widgets/tabs/setup_audio.cpp b/src/gui/widgets/tabs/setup_audio.cpp
index cf278b76e..e913f611c 100644
--- a/src/gui/widgets/tabs/setup_audio.cpp
+++ b/src/gui/widgets/tabs/setup_audio.cpp
@@ -22,8 +22,6 @@
#include "gui/widgets/tabs/setup_audio.h"
-#include "main.h"
-
#include "resources/map/map.h"
#include "configuration.h"
diff --git a/src/gui/widgets/tabs/setup_colors.cpp b/src/gui/widgets/tabs/setup_colors.cpp
index b93cf3ed5..28d52db0b 100644
--- a/src/gui/widgets/tabs/setup_colors.cpp
+++ b/src/gui/widgets/tabs/setup_colors.cpp
@@ -40,7 +40,6 @@
#include "utils/gettext.h"
#include "utils/stringutils.h"
-#include <string>
#include <cmath>
#include "debug.h"
diff --git a/src/gui/widgets/tabs/setup_theme.cpp b/src/gui/widgets/tabs/setup_theme.cpp
index 47d985a3e..de4990e5c 100644
--- a/src/gui/widgets/tabs/setup_theme.cpp
+++ b/src/gui/widgets/tabs/setup_theme.cpp
@@ -43,7 +43,6 @@
#include "configuration.h"
#include "utils/delete2.h"
-#include "utils/gettext.h"
#include "debug.h"
diff --git a/src/gui/widgets/tabs/setup_touch.cpp b/src/gui/widgets/tabs/setup_touch.cpp
index bd0f17411..0a0b97728 100644
--- a/src/gui/widgets/tabs/setup_touch.cpp
+++ b/src/gui/widgets/tabs/setup_touch.cpp
@@ -20,7 +20,6 @@
#include "gui/widgets/tabs/setup_touch.h"
-#include "gui/models/namesmodel.h"
#include "gui/models/touchactionmodel.h"
#include "gui/widgets/containerplacer.h"
diff --git a/src/gui/widgets/tabs/setup_video.cpp b/src/gui/widgets/tabs/setup_video.cpp
index 696927b6b..3f88316c8 100644
--- a/src/gui/widgets/tabs/setup_video.cpp
+++ b/src/gui/widgets/tabs/setup_video.cpp
@@ -24,8 +24,6 @@
#include "configuration.h"
-#include "graphicsmanager.h"
-
#include "enums/gui/dialogtype.h"
#include "gui/windowmanager.h"
@@ -43,12 +41,13 @@
#include "gui/widgets/slider.h"
#include "gui/widgets/dropdown.h"
-#include "render/rendererslistsdl.h"
-
#include "utils/delete2.h"
-#include "utils/gettext.h"
+
+#if defined(USE_OPENGL) && !defined(ANDROID) && !defined(__APPLE__)
+#include "graphicsmanager.h"
#include "test/testmain.h"
+#endif
#include "gui/models/modelistmodel.h"
#include "gui/models/opengllistmodel.h"
diff --git a/src/gui/widgets/virtshortcutcontainer.cpp b/src/gui/widgets/virtshortcutcontainer.cpp
index b735f962e..4b03d8890 100644
--- a/src/gui/widgets/virtshortcutcontainer.cpp
+++ b/src/gui/widgets/virtshortcutcontainer.cpp
@@ -37,8 +37,6 @@
#include "gui/windows/inventorywindow.h"
-#include "resources/image.h"
-
#include "utils/stringutils.h"
#include "debug.h"
diff --git a/src/gui/widgets/widget.cpp b/src/gui/widgets/widget.cpp
index 7079f054f..667f88655 100644
--- a/src/gui/widgets/widget.cpp
+++ b/src/gui/widgets/widget.cpp
@@ -67,8 +67,6 @@
#include "gui/widgets/widget.h"
-#include "events/actionevent.h"
-
#include "gui/focushandler.h"
#include "listeners/actionlistener.h"
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index d16ce9853..82cd77a0d 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -87,9 +87,6 @@
#include "gui/widgets/containerplacer.h"
#include "gui/widgets/layout.h"
-#include "resources/cursor.h"
-#include "resources/image.h"
-
#include "utils/delete2.h"
#include "debug.h"
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp
index 1c2b21d89..7fc8be84c 100644
--- a/src/gui/windowmenu.cpp
+++ b/src/gui/windowmenu.cpp
@@ -41,8 +41,6 @@
#include "utils/dtor.h"
#include "utils/gettext.h"
-#include <string>
-
#include "debug.h"
WindowMenu *windowMenu = nullptr;
diff --git a/src/gui/windows/botcheckerwindow.cpp b/src/gui/windows/botcheckerwindow.cpp
index 8627b147f..a7fd4ea44 100644
--- a/src/gui/windows/botcheckerwindow.cpp
+++ b/src/gui/windows/botcheckerwindow.cpp
@@ -24,9 +24,7 @@
#include "gui/windows/setupwindow.h"
-#include "gui/widgets/button.h"
#include "gui/widgets/scrollarea.h"
-#include "gui/widgets/label.h"
#include "gui/widgets/guitable.h"
#include "gui/models/userstablemodel.h"
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index ce6775637..b885cc8a6 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -26,7 +26,6 @@
#include "actormanager.h"
#endif
#include "configuration.h"
-#include "shopitem.h"
#include "units.h"
#include "gui/windows/setupwindow.h"
diff --git a/src/gui/windows/changeemaildialog.cpp b/src/gui/windows/changeemaildialog.cpp
index 550e3c941..822947c22 100644
--- a/src/gui/windows/changeemaildialog.cpp
+++ b/src/gui/windows/changeemaildialog.cpp
@@ -34,15 +34,11 @@
#include "listeners/wrongdatanoticelistener.h"
-#include "net/logindata.h"
#include "net/loginhandler.h"
#include "utils/delete2.h"
#include "utils/gettext.h"
-#include <string>
-#include <sstream>
-
#include "debug.h"
ChangeEmailDialog::ChangeEmailDialog(LoginData *const data) :
diff --git a/src/gui/windows/changepassworddialog.cpp b/src/gui/windows/changepassworddialog.cpp
index 9c2abef21..049f00a5e 100644
--- a/src/gui/windows/changepassworddialog.cpp
+++ b/src/gui/windows/changepassworddialog.cpp
@@ -35,15 +35,11 @@
#include "listeners/wrongdatanoticelistener.h"
-#include "net/logindata.h"
#include "net/loginhandler.h"
#include "utils/delete2.h"
#include "utils/gettext.h"
-#include <string>
-#include <sstream>
-
#include "debug.h"
ChangePasswordDialog::ChangePasswordDialog(LoginData *const data) :
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp
index 1452433d6..cb2caed4b 100644
--- a/src/gui/windows/charcreatedialog.cpp
+++ b/src/gui/windows/charcreatedialog.cpp
@@ -23,7 +23,6 @@
#include "gui/windows/charcreatedialog.h"
#include "configuration.h"
-#include "main.h"
#include "input/inputaction.h"
@@ -49,7 +48,6 @@
#include "utils/delete2.h"
#include "utils/gettext.h"
-#include "utils/stringutils.h"
#include "debug.h"
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index adfb46d63..85a23ed64 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -31,7 +31,9 @@
#include "input/inputaction.h"
#include "listeners/charrenamelistener.h"
+#ifdef EATHENA_SUPPORT
#include "listeners/pincodelistener.h"
+#endif
#include "enums/gui/dialogtype.h"
@@ -49,7 +51,6 @@
#include "gui/widgets/containerplacer.h"
#include "net/character.h"
-#include "net/logindata.h"
#include "net/loginhandler.h"
#include "net/registrationoptions.h"
#include "net/serverfeatures.h"
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index b1c0f6982..748114b10 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -23,7 +23,6 @@
#include "gui/windows/chatwindow.h"
#include "actormanager.h"
-#include "configuration.h"
#include "game.h"
#include "guild.h"
#include "party.h"
@@ -48,7 +47,6 @@
#include "gui/popups/popupmenu.h"
-#include "gui/windows/emotewindow.h"
#include "gui/windows/setupwindow.h"
#include "gui/windows/whoisonline.h"
@@ -74,9 +72,6 @@
#include "utils/copynpaste.h"
#include "utils/delete2.h"
#include "utils/files.h"
-#include "utils/gettext.h"
-
-#include <sstream>
#include <sys/stat.h>
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp
index f26a877cf..0b5fe10f1 100644
--- a/src/gui/windows/equipmentwindow.cpp
+++ b/src/gui/windows/equipmentwindow.cpp
@@ -25,10 +25,7 @@
#include "configuration.h"
#include "dragdrop.h"
#include "graphicsvertexes.h"
-#include "inventory.h"
-#include "item.h"
-#include "being/being.h"
#include "being/localplayer.h"
#include "being/playerinfo.h"
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index a47d2a931..bf3077c1d 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -23,7 +23,6 @@
#include "gui/windows/inventorywindow.h"
#include "configuration.h"
-#include "item.h"
#include "units.h"
#include "being/playerinfo.h"
@@ -64,8 +63,6 @@
#include "utils/delete2.h"
-#include <string>
-
#include "debug.h"
InventoryWindow *inventoryWindow = nullptr;
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp
index 1369a0686..01289a4c3 100644
--- a/src/gui/windows/itemamountwindow.cpp
+++ b/src/gui/windows/itemamountwindow.cpp
@@ -22,8 +22,6 @@
#include "gui/windows/itemamountwindow.h"
-#include "item.h"
-
#include "being/playerinfo.h"
#include "input/keyboardconfig.h"
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp
index 8fcb175ef..965f1d71c 100644
--- a/src/gui/windows/minimap.cpp
+++ b/src/gui/windows/minimap.cpp
@@ -37,7 +37,6 @@
#include "gui/windows/setupwindow.h"
-#include "resources/image.h"
#include "resources/imagehelper.h"
#include "resources/resourcemanager.h"
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp
index ec2cf05b2..7051465c6 100644
--- a/src/gui/windows/ministatuswindow.cpp
+++ b/src/gui/windows/ministatuswindow.cpp
@@ -27,7 +27,6 @@
#include "inventory.h"
#include "being/localplayer.h"
-#include "being/playerinfo.h"
#include "enums/being/attributes.h"
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp
index 096ab1c39..6207a9bd7 100644
--- a/src/gui/windows/npcdialog.cpp
+++ b/src/gui/windows/npcdialog.cpp
@@ -24,7 +24,6 @@
#include "actormanager.h"
#include "configuration.h"
-#include "inventory.h"
#include "item.h"
#include "settings.h"
#include "soundconsts.h"
diff --git a/src/gui/windows/outfitwindow.cpp b/src/gui/windows/outfitwindow.cpp
index 3a0f26d64..59734edca 100644
--- a/src/gui/windows/outfitwindow.cpp
+++ b/src/gui/windows/outfitwindow.cpp
@@ -27,7 +27,6 @@
#include "emoteshortcutconsts.h"
#include "game.h"
#include "inventory.h"
-#include "item.h"
#include "being/playerinfo.h"
@@ -45,12 +44,8 @@
#include "gui/widgets/layout.h"
#include "gui/widgets/layouttype.h"
-#include "resources/image.h"
-
#include "utils/gettext.h"
-#include <vector>
-
#include "debug.h"
OutfitWindow *outfitWindow = nullptr;
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp
index fdddfec6f..8d7d84480 100644
--- a/src/gui/windows/registerdialog.cpp
+++ b/src/gui/windows/registerdialog.cpp
@@ -39,7 +39,6 @@
#include "gui/widgets/passwordfield.h"
#include "gui/widgets/radiobutton.h"
-#include "net/logindata.h"
#include "net/loginhandler.h"
#include "net/registrationoptions.h"
#include "net/serverfeatures.h"
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp
index 8afbf0e54..a5f8efb95 100644
--- a/src/gui/windows/serverdialog.cpp
+++ b/src/gui/windows/serverdialog.cpp
@@ -25,19 +25,12 @@
#include "chatlogger.h"
#include "client.h"
#include "configuration.h"
-#include "main.h"
#include "settings.h"
#include "input/inputaction.h"
#include "net/download.h"
-#include "gui/gui.h"
-
-#include "gui/fonts/font.h"
-
-#include "gui/models/serverslistmodel.h"
-
#include "gui/widgets/checkbox.h"
#include "gui/widgets/desktop.h"
#include "gui/windows/editserverdialog.h"
@@ -46,7 +39,6 @@
#include "gui/widgets/button.h"
#include "gui/widgets/label.h"
#include "gui/widgets/layout.h"
-#include "gui/widgets/listbox.h"
#include "gui/widgets/serverslistbox.h"
#include "gui/widgets/scrollarea.h"
@@ -54,8 +46,6 @@
#include "utils/gettext.h"
#include "utils/langs.h"
-#include <string>
-
#include "debug.h"
static const int MAX_SERVERLIST = 15;
diff --git a/src/gui/windows/setupwindow.cpp b/src/gui/windows/setupwindow.cpp
index 8e5c61e02..3f04d0e69 100644
--- a/src/gui/windows/setupwindow.cpp
+++ b/src/gui/windows/setupwindow.cpp
@@ -24,7 +24,6 @@
#include "configuration.h"
#include "game.h"
-#include "main.h"
#include "touchmanager.h"
#include "gui/windows/chatwindow.h"
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index 4cb922519..9a4fd7729 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -22,16 +22,24 @@
#include "gui/windows/shopwindow.h"
-#include "gui/chatconsts.h"
+#include "enums/being/attributes.h"
+#ifdef TMWA_SUPPORT
#include "gui/windows/buydialog.h"
#include "gui/windows/chatwindow.h"
#include "gui/windows/confirmdialog.h"
+#include "gui/windows/shopselldialog.h"
+#include "gui/windows/tradewindow.h"
+
+#include "gui/chatconsts.h"
+#endif
+
+#ifdef EATHENA_SUPPORT
#include "gui/windows/editdialog.h"
+#endif
+
#include "gui/windows/itemamountwindow.h"
-#include "gui/windows/shopselldialog.h"
#include "gui/windows/setupwindow.h"
-#include "gui/windows/tradewindow.h"
#include "gui/models/shopitems.h"
@@ -44,34 +52,41 @@
#include "gui/widgets/shoplistbox.h"
#include "gui/widgets/tabstrip.h"
+#ifdef EATHENA_SUPPORT
#include "listeners/shoprenamelistener.h"
+#endif
+#ifdef TMWA_SUPPORT
#include "actormanager.h"
+#include "soundmanager.h"
+#endif
#include "configuration.h"
#include "inventory.h"
-#include "item.h"
#include "settings.h"
#include "shopitem.h"
-#include "soundmanager.h"
#include "being/localplayer.h"
#include "being/playerinfo.h"
-#include "being/playerrelations.h"
-
-#include "enums/being/attributes.h"
+#ifdef TMWA_SUPPORT
+#include "being/playerrelations.h"
#include "net/chathandler.h"
+#endif
+#ifdef EATHENA_SUPPORT
#include "net/buyingstorehandler.h"
+#include "net/vendinghandler.h"
+#endif
#include "net/serverfeatures.h"
+#ifdef TMWA_SUPPORT
#include "net/tradehandler.h"
-#include "net/vendinghandler.h"
-
-#include "resources/iteminfo.h"
+#endif
#include "utils/delete2.h"
#include "utils/gettext.h"
-#include <sstream>
+#ifdef TMWA_SUPPORT
+#include "resources/iteminfo.h"
+#endif
#include <sys/stat.h>
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index 681ed348f..48ab6bba4 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -31,13 +31,10 @@
#include "enums/being/attributes.h"
-#include "gui/models/skillmodel.h"
-
#include "gui/windows/setupwindow.h"
#include "gui/windows/shortcutwindow.h"
#include "gui/widgets/button.h"
-#include "gui/widgets/skilllistbox.h"
#include "gui/widgets/label.h"
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/tabbedarea.h"
@@ -52,7 +49,6 @@
#include "utils/timer.h"
#include "resources/beingcommon.h"
-#include "resources/skillconsts.h"
#include "debug.h"
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp
index b359bc775..ad1745287 100644
--- a/src/gui/windows/socialwindow.cpp
+++ b/src/gui/windows/socialwindow.cpp
@@ -21,23 +21,17 @@
#include "gui/windows/socialwindow.h"
-#include "configuration.h"
-#include "guild.h"
+#ifdef TMWA_SUPPORT
#include "guildmanager.h"
-
-#include "being/localplayer.h"
-#include "being/playerrelations.h"
+#endif
#include "enums/gui/dialogtype.h"
-#include "gui/windows/confirmdialog.h"
#include "gui/windows/okdialog.h"
#include "gui/windows/setupwindow.h"
-#include "gui/windows/textdialog.h"
#include "gui/widgets/button.h"
#include "gui/widgets/label.h"
-#include "gui/widgets/scrollarea.h"
#include "gui/widgets/tabbedarea.h"
#include "gui/widgets/tabs/socialattacktab.h"
diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp
index d16262cc1..2c66884ae 100644
--- a/src/gui/windows/statuswindow.cpp
+++ b/src/gui/windows/statuswindow.cpp
@@ -24,15 +24,12 @@
#include "configuration.h"
#include "gamemodifiers.h"
-#include "inventory.h"
-#include "item.h"
#include "settings.h"
#include "units.h"
#include "gui/windows/chatwindow.h"
#include "being/localplayer.h"
-#include "being/playerinfo.h"
#include "enums/being/attributes.h"
@@ -41,7 +38,6 @@
#include "gui/widgets/button.h"
#include "gui/widgets/containerplacer.h"
-#include "gui/widgets/label.h"
#include "gui/widgets/layouthelper.h"
#include "gui/widgets/layouttype.h"
#include "gui/widgets/progressbar.h"
diff --git a/src/gui/windows/textcommandeditor.cpp b/src/gui/windows/textcommandeditor.cpp
index 641df6f3f..e5dbb26b7 100644
--- a/src/gui/windows/textcommandeditor.cpp
+++ b/src/gui/windows/textcommandeditor.cpp
@@ -22,7 +22,6 @@
#include "gui/windows/textcommandeditor.h"
-#include "main.h"
#include "spellmanager.h"
#include "input/keyboardconfig.h"
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp
index ef2897ccd..5d95c0a4f 100644
--- a/src/gui/windows/tradewindow.cpp
+++ b/src/gui/windows/tradewindow.cpp
@@ -23,7 +23,6 @@
#include "gui/windows/tradewindow.h"
#include "configuration.h"
-#include "inventory.h"
#include "item.h"
#include "units.h"
diff --git a/src/gui/windows/unregisterdialog.cpp b/src/gui/windows/unregisterdialog.cpp
index 9174a0a65..5dc99f720 100644
--- a/src/gui/windows/unregisterdialog.cpp
+++ b/src/gui/windows/unregisterdialog.cpp
@@ -34,15 +34,11 @@
#include "listeners/wrongdatanoticelistener.h"
-#include "net/logindata.h"
#include "net/loginhandler.h"
#include "utils/delete2.h"
#include "utils/gettext.h"
-#include <string>
-#include <sstream>
-
#include "debug.h"
UnRegisterDialog::UnRegisterDialog(LoginData *const data) :
diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp
index 59034cd80..5ea107f35 100644
--- a/src/gui/windows/updaterwindow.cpp
+++ b/src/gui/windows/updaterwindow.cpp
@@ -53,8 +53,6 @@
#include "utils/paths.h"
#include "utils/process.h"
-#include <fstream>
-
#include <sys/stat.h>
#include "debug.h"
diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp
index 7772f04b3..88e4441be 100644
--- a/src/gui/windows/whoisonline.cpp
+++ b/src/gui/windows/whoisonline.cpp
@@ -26,7 +26,9 @@
#include "configuration.h"
#include "guild.h"
#include "party.h"
+#ifdef TMWA_SUPPORT
#include "settings.h"
+#endif
#include "gui/onlineplayer.h"
#include "gui/popupmanager.h"
@@ -48,7 +50,9 @@
#include "enums/net/packettypes.h"
+#ifdef TMWA_SUPPORT
#include "net/download.h"
+#endif
#include "net/packetlimiter.h"
#include "net/playerhandler.h"
#include "net/serverfeatures.h"
@@ -56,10 +60,6 @@
#include "utils/gettext.h"
#include "utils/sdlhelper.h"
-#include <SDL_thread.h>
-#include <vector>
-#include <algorithm>
-
// Curl should be included after Guichan to avoid Windows redefinitions
#include <curl/curl.h>