summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-28 11:58:33 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-28 11:58:33 +0300
commitcfc84945c9cee7d42accdad39ff387738a3d32ac (patch)
tree16715da63ecdfe3db1ae4196ecc3abad2509bc05 /src/gui
parent4e3cc7022e40d5506ca30ec9f06ef32e19d0da4c (diff)
downloadmanaplus-cfc84945c9cee7d42accdad39ff387738a3d32ac.tar.gz
manaplus-cfc84945c9cee7d42accdad39ff387738a3d32ac.tar.bz2
manaplus-cfc84945c9cee7d42accdad39ff387738a3d32ac.tar.xz
manaplus-cfc84945c9cee7d42accdad39ff387738a3d32ac.zip
Removed unused includes.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/dialogsmanager.cpp2
-rw-r--r--src/gui/popupmanager.cpp4
-rw-r--r--src/gui/popupmanager.h20
-rw-r--r--src/gui/setupinputpages.cpp2
-rw-r--r--src/gui/touchactiondata.cpp3
-rw-r--r--src/gui/widgets/characterdisplay.h1
-rw-r--r--src/gui/widgets/emoteshortcutcontainer.cpp1
-rw-r--r--src/gui/widgets/emoteshortcutcontainer.h2
-rw-r--r--src/gui/widgets/itemcontainer.cpp2
-rw-r--r--src/gui/widgets/itemcontainer.h1
-rw-r--r--src/gui/widgets/itemlinkhandler.cpp2
-rw-r--r--src/gui/widgets/itemlinkhandler.h2
-rw-r--r--src/gui/widgets/itemshortcutcontainer.cpp2
-rw-r--r--src/gui/widgets/itemshortcutcontainer.h3
-rw-r--r--src/gui/widgets/shoplistbox.cpp1
-rw-r--r--src/gui/widgets/shoplistbox.h1
-rw-r--r--src/gui/widgets/spellshortcutcontainer.cpp3
-rw-r--r--src/gui/widgets/spellshortcutcontainer.h2
-rw-r--r--src/gui/widgets/tabs/setup_input.cpp2
-rw-r--r--src/gui/widgets/tabs/setup_theme.cpp1
-rw-r--r--src/gui/widgets/tabs/setup_video.cpp1
-rw-r--r--src/gui/widgets/virtshortcutcontainer.cpp2
-rw-r--r--src/gui/widgets/virtshortcutcontainer.h1
-rw-r--r--src/gui/windowmenu.cpp1
-rw-r--r--src/gui/windows/changeemaildialog.cpp2
-rw-r--r--src/gui/windows/changepassworddialog.cpp2
-rw-r--r--src/gui/windows/charcreatedialog.cpp2
-rw-r--r--src/gui/windows/charselectdialog.cpp2
-rw-r--r--src/gui/windows/chatwindow.cpp1
-rw-r--r--src/gui/windows/editserverdialog.cpp2
-rw-r--r--src/gui/windows/equipmentwindow.h1
-rw-r--r--src/gui/windows/helpwindow.cpp1
-rw-r--r--src/gui/windows/inventorywindow.cpp4
-rw-r--r--src/gui/windows/inventorywindow.h1
-rw-r--r--src/gui/windows/itemamountwindow.cpp2
-rw-r--r--src/gui/windows/itemamountwindow.h1
-rw-r--r--src/gui/windows/minimap.cpp1
-rw-r--r--src/gui/windows/minimap.h1
-rw-r--r--src/gui/windows/ministatuswindow.h1
-rw-r--r--src/gui/windows/npcdialog.cpp1
-rw-r--r--src/gui/windows/okdialog.cpp2
-rw-r--r--src/gui/windows/okdialog.h2
-rw-r--r--src/gui/windows/outfitwindow.cpp1
-rw-r--r--src/gui/windows/registerdialog.cpp2
-rw-r--r--src/gui/windows/socialwindow.cpp2
-rw-r--r--src/gui/windows/unregisterdialog.cpp2
46 files changed, 23 insertions, 75 deletions
diff --git a/src/gui/dialogsmanager.cpp b/src/gui/dialogsmanager.cpp
index a318049c2..83fc286ca 100644
--- a/src/gui/dialogsmanager.cpp
+++ b/src/gui/dialogsmanager.cpp
@@ -25,6 +25,8 @@
#include "configuration.h"
#include "settings.h"
+#include "gui/dialogtype.h"
+
#include "gui/windows/confirmdialog.h"
#include "gui/windows/buyselldialog.h"
#include "gui/windows/buydialog.h"
diff --git a/src/gui/popupmanager.cpp b/src/gui/popupmanager.cpp
index 4c18af585..9b254746e 100644
--- a/src/gui/popupmanager.cpp
+++ b/src/gui/popupmanager.cpp
@@ -24,14 +24,10 @@
#include "sdlshared.h"
-#include "gui/viewport.h"
-
#include "gui/popups/beingpopup.h"
#include "gui/popups/popupmenu.h"
#include "gui/popups/textpopup.h"
-#include "utils/delete2.h"
-
#include "debug.h"
PopupManager *popupManager = nullptr;
diff --git a/src/gui/popupmanager.h b/src/gui/popupmanager.h
index bf0f1c804..c34934798 100644
--- a/src/gui/popupmanager.h
+++ b/src/gui/popupmanager.h
@@ -23,28 +23,8 @@
#ifndef GUI_POPUPMANAGER_H
#define GUI_POPUPMANAGER_H
-#include "being/actortype.h"
-
-#include <string>
-#include <vector>
-
#include "localconsts.h"
-class ActorSprite;
-class Button;
-class Being;
-class BeingPopup;
-class ChatTab;
-class FloorItem;
-class Item;
-class MapItem;
-class PopupMenu;
-class ProgressBar;
-class TextCommand;
-class TextField;
-class TextPopup;
-class Window;
-
class PopupManager final
{
public:
diff --git a/src/gui/setupinputpages.cpp b/src/gui/setupinputpages.cpp
index d4674a702..8536d8295 100644
--- a/src/gui/setupinputpages.cpp
+++ b/src/gui/setupinputpages.cpp
@@ -23,8 +23,6 @@
#include "gui/setupinputpages.h"
-#include "gui/setupactiondata.h"
-
#include "utils/gettext.h"
#include "input/pages/basic.h"
diff --git a/src/gui/touchactiondata.cpp b/src/gui/touchactiondata.cpp
index 2f970eaf8..724c48890 100644
--- a/src/gui/touchactiondata.cpp
+++ b/src/gui/touchactiondata.cpp
@@ -20,11 +20,8 @@
#include "gui/touchactiondata.h"
-#include "gui/setupactiondata.h"
-
#include "input/pages/basic.h"
#include "input/pages/chat.h"
-#include "input/pages/gui.h"
#include "input/pages/other.h"
#include "input/pages/windows.h"
diff --git a/src/gui/widgets/characterdisplay.h b/src/gui/widgets/characterdisplay.h
index 47959e365..866e3e580 100644
--- a/src/gui/widgets/characterdisplay.h
+++ b/src/gui/widgets/characterdisplay.h
@@ -32,7 +32,6 @@
class CharSelectDialog;
class Label;
-class TextPopup;
namespace Net
{
diff --git a/src/gui/widgets/emoteshortcutcontainer.cpp b/src/gui/widgets/emoteshortcutcontainer.cpp
index c07482e1b..d76683256 100644
--- a/src/gui/widgets/emoteshortcutcontainer.cpp
+++ b/src/gui/widgets/emoteshortcutcontainer.cpp
@@ -39,7 +39,6 @@
#include "resources/db/emotedb.h"
#include "utils/stringutils.h"
-#include "utils/delete2.h"
#include "debug.h"
diff --git a/src/gui/widgets/emoteshortcutcontainer.h b/src/gui/widgets/emoteshortcutcontainer.h
index 8a2ea498e..dea9e6dec 100644
--- a/src/gui/widgets/emoteshortcutcontainer.h
+++ b/src/gui/widgets/emoteshortcutcontainer.h
@@ -26,8 +26,6 @@
#include <vector>
-class TextPopup;
-
struct EmoteSprite;
/**
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index 37e0c0ffd..54bb74596 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -52,8 +52,6 @@
#include "listeners/selectionlistener.h"
-#include "utils/delete2.h"
-
#include <algorithm>
#include "debug.h"
diff --git a/src/gui/widgets/itemcontainer.h b/src/gui/widgets/itemcontainer.h
index 3f56f8855..42b4fa036 100644
--- a/src/gui/widgets/itemcontainer.h
+++ b/src/gui/widgets/itemcontainer.h
@@ -36,7 +36,6 @@
class Image;
class Inventory;
class Item;
-class ItemPopup;
class SelectionListener;
/**
diff --git a/src/gui/widgets/itemlinkhandler.cpp b/src/gui/widgets/itemlinkhandler.cpp
index 589f8f6d1..6c04ca41f 100644
--- a/src/gui/widgets/itemlinkhandler.cpp
+++ b/src/gui/widgets/itemlinkhandler.cpp
@@ -22,7 +22,6 @@
#include "gui/widgets/itemlinkhandler.h"
-#include "gui/popupmanager.h"
#include "gui/viewport.h"
#include "gui/popups/itempopup.h"
@@ -31,7 +30,6 @@
#include "gui/windows/confirmdialog.h"
#include "gui/windows/helpwindow.h"
-#include "utils/delete2.h"
#include "utils/gettext.h"
#include "utils/stringutils.h"
diff --git a/src/gui/widgets/itemlinkhandler.h b/src/gui/widgets/itemlinkhandler.h
index c07ede9ad..956bd3df4 100644
--- a/src/gui/widgets/itemlinkhandler.h
+++ b/src/gui/widgets/itemlinkhandler.h
@@ -27,8 +27,6 @@
#include "localconsts.h"
-class ItemPopup;
-
class ItemLinkHandler final : public LinkHandler
{
public:
diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp
index df86c45ae..03242d484 100644
--- a/src/gui/widgets/itemshortcutcontainer.cpp
+++ b/src/gui/widgets/itemshortcutcontainer.cpp
@@ -33,7 +33,6 @@
#include "input/inputmanager.h"
-#include "gui/popupmanager.h"
#include "gui/viewport.h"
#include "gui/fonts/font.h"
@@ -50,7 +49,6 @@
#include "resources/image.h"
#include "resources/skillconsts.h"
-#include "utils/delete2.h"
#include "utils/stringutils.h"
#include "debug.h"
diff --git a/src/gui/widgets/itemshortcutcontainer.h b/src/gui/widgets/itemshortcutcontainer.h
index d1f959bcd..29aec0a8c 100644
--- a/src/gui/widgets/itemshortcutcontainer.h
+++ b/src/gui/widgets/itemshortcutcontainer.h
@@ -25,9 +25,6 @@
#include "gui/widgets/shortcutcontainer.h"
-class ItemPopup;
-class SpellPopup;
-
/**
* An item shortcut container. Used to quickly use items.
*
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp
index a2161d96d..f35c83663 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -27,7 +27,6 @@
#include "being/playerinfo.h"
-#include "gui/popupmanager.h"
#include "gui/viewport.h"
#include "gui/fonts/font.h"
diff --git a/src/gui/widgets/shoplistbox.h b/src/gui/widgets/shoplistbox.h
index 808528cc5..9f6d21e79 100644
--- a/src/gui/widgets/shoplistbox.h
+++ b/src/gui/widgets/shoplistbox.h
@@ -26,7 +26,6 @@
#include "gui/widgets/listbox.h"
class ShopItems;
-class ItemPopup;
/**
* A list box, meant to be used inside a scroll area. Same as the Guichan list
diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp
index 0257cea08..bbfb8f497 100644
--- a/src/gui/widgets/spellshortcutcontainer.cpp
+++ b/src/gui/widgets/spellshortcutcontainer.cpp
@@ -27,7 +27,6 @@
#include "settings.h"
#include "spellshortcut.h"
-#include "gui/popupmanager.h"
#include "gui/viewport.h"
#include "gui/fonts/font.h"
@@ -39,8 +38,6 @@
#include "resources/image.h"
-#include "utils/delete2.h"
-
#include "debug.h"
SpellShortcutContainer::SpellShortcutContainer(Widget2 *const widget,
diff --git a/src/gui/widgets/spellshortcutcontainer.h b/src/gui/widgets/spellshortcutcontainer.h
index 939e315af..b7a68d18d 100644
--- a/src/gui/widgets/spellshortcutcontainer.h
+++ b/src/gui/widgets/spellshortcutcontainer.h
@@ -25,8 +25,6 @@
#include "gui/widgets/shortcutcontainer.h"
-class SpellPopup;
-
/**
* An item shortcut container. Used to quickly use items.
*
diff --git a/src/gui/widgets/tabs/setup_input.cpp b/src/gui/widgets/tabs/setup_input.cpp
index 5185ad4eb..3c467f046 100644
--- a/src/gui/widgets/tabs/setup_input.cpp
+++ b/src/gui/widgets/tabs/setup_input.cpp
@@ -29,11 +29,11 @@
#include "input/keyboardconfig.h"
#include "input/pages/emotes.h"
-#include "input/pages/gui.h"
#include "input/pages/move.h"
#include "input/pages/outfits.h"
#include "input/pages/shortcuts.h"
+#include "gui/dialogtype.h"
#include "gui/gui.h"
#include "gui/setupinputpages.h"
diff --git a/src/gui/widgets/tabs/setup_theme.cpp b/src/gui/widgets/tabs/setup_theme.cpp
index c74a8bade..47fa7374e 100644
--- a/src/gui/widgets/tabs/setup_theme.cpp
+++ b/src/gui/widgets/tabs/setup_theme.cpp
@@ -22,6 +22,7 @@
#include "gui/widgets/tabs/setup_theme.h"
+#include "gui/dialogtype.h"
#include "gui/gui.h"
#include "gui/themeinfo.h"
diff --git a/src/gui/widgets/tabs/setup_video.cpp b/src/gui/widgets/tabs/setup_video.cpp
index 41cf19a7f..2ef45e6b6 100644
--- a/src/gui/widgets/tabs/setup_video.cpp
+++ b/src/gui/widgets/tabs/setup_video.cpp
@@ -26,6 +26,7 @@
#include "graphicsmanager.h"
+#include "gui/dialogtype.h"
#include "gui/windowmanager.h"
#include "gui/windows/okdialog.h"
diff --git a/src/gui/widgets/virtshortcutcontainer.cpp b/src/gui/widgets/virtshortcutcontainer.cpp
index 2b0353148..d786289b0 100644
--- a/src/gui/widgets/virtshortcutcontainer.cpp
+++ b/src/gui/widgets/virtshortcutcontainer.cpp
@@ -28,7 +28,6 @@
#include "being/playerinfo.h"
-#include "gui/popupmanager.h"
#include "gui/viewport.h"
#include "gui/fonts/font.h"
@@ -40,7 +39,6 @@
#include "resources/image.h"
-#include "utils/delete2.h"
#include "utils/stringutils.h"
#include "debug.h"
diff --git a/src/gui/widgets/virtshortcutcontainer.h b/src/gui/widgets/virtshortcutcontainer.h
index e740b9661..330d53171 100644
--- a/src/gui/widgets/virtshortcutcontainer.h
+++ b/src/gui/widgets/virtshortcutcontainer.h
@@ -25,7 +25,6 @@
#include "gui/widgets/shortcutcontainer.h"
-class ItemPopup;
class ShortcutBase;
/**
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp
index dfbfc5d3d..26d32bb3d 100644
--- a/src/gui/windowmenu.cpp
+++ b/src/gui/windowmenu.cpp
@@ -38,7 +38,6 @@
#include "gui/widgets/button.h"
-#include "utils/delete2.h"
#include "utils/dtor.h"
#include "utils/gettext.h"
diff --git a/src/gui/windows/changeemaildialog.cpp b/src/gui/windows/changeemaildialog.cpp
index 3df98f589..84da15ead 100644
--- a/src/gui/windows/changeemaildialog.cpp
+++ b/src/gui/windows/changeemaildialog.cpp
@@ -24,6 +24,8 @@
#include "client.h"
+#include "gui/dialogtype.h"
+
#include "gui/windows/okdialog.h"
#include "gui/widgets/button.h"
diff --git a/src/gui/windows/changepassworddialog.cpp b/src/gui/windows/changepassworddialog.cpp
index 0ec8999dc..875fb2c3d 100644
--- a/src/gui/windows/changepassworddialog.cpp
+++ b/src/gui/windows/changepassworddialog.cpp
@@ -24,6 +24,8 @@
#include "client.h"
+#include "gui/dialogtype.h"
+
#include "gui/windows/okdialog.h"
#include "gui/widgets/button.h"
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp
index 765436ffb..e1c1cd7ed 100644
--- a/src/gui/windows/charcreatedialog.cpp
+++ b/src/gui/windows/charcreatedialog.cpp
@@ -28,6 +28,8 @@
#include "input/inputaction.h"
+#include "gui/dialogtype.h"
+
#include "gui/windows/okdialog.h"
#include "gui/widgets/button.h"
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index 17e2510bb..134aa2712 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -32,6 +32,8 @@
#include "being/attributes.h"
+#include "gui/dialogtype.h"
+
#include "gui/windows/charcreatedialog.h"
#include "gui/windows/chardeleteconfirm.h"
#include "gui/windows/logindialog.h"
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index d18f28a9e..e5be2fc65 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -42,7 +42,6 @@
#include "gui/chatconsts.h"
#include "gui/focushandler.h"
#include "gui/gui.h"
-#include "gui/popupmanager.h"
#include "gui/skin.h"
#include "gui/viewport.h"
diff --git a/src/gui/windows/editserverdialog.cpp b/src/gui/windows/editserverdialog.cpp
index a89b36562..11f22fafe 100644
--- a/src/gui/windows/editserverdialog.cpp
+++ b/src/gui/windows/editserverdialog.cpp
@@ -25,6 +25,8 @@
#include "input/inputaction.h"
+#include "gui/dialogtype.h"
+
#include "gui/models/typelistmodel.h"
#include "gui/windows/okdialog.h"
diff --git a/src/gui/windows/equipmentwindow.h b/src/gui/windows/equipmentwindow.h
index b90c39d81..30fdcc366 100644
--- a/src/gui/windows/equipmentwindow.h
+++ b/src/gui/windows/equipmentwindow.h
@@ -39,7 +39,6 @@ class Button;
class Image;
class ImageSet;
class Item;
-class ItemPopup;
class PlayerBox;
struct EquipmentBox;
diff --git a/src/gui/windows/helpwindow.cpp b/src/gui/windows/helpwindow.cpp
index 91e05bcdb..d4fece698 100644
--- a/src/gui/windows/helpwindow.cpp
+++ b/src/gui/windows/helpwindow.cpp
@@ -28,7 +28,6 @@
#include "gui/gui.h"
-#include "gui/windows/didyouknowwindow.h"
#include "gui/windows/setupwindow.h"
#include "gui/widgets/button.h"
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index 3865647e0..2c38c0358 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -34,7 +34,6 @@
#include "input/inputmanager.h"
#include "gui/gui.h"
-#include "gui/popupmanager.h"
#include "gui/fonts/font.h"
@@ -43,11 +42,8 @@
#include "gui/popups/popupmenu.h"
#include "gui/popups/textpopup.h"
-#include "gui/windows/equipmentwindow.h"
#include "gui/windows/itemamountwindow.h"
-#include "gui/windows/outfitwindow.h"
#include "gui/windows/setupwindow.h"
-#include "gui/windows/shopwindow.h"
#include "gui/windows/tradewindow.h"
#include "gui/widgets/button.h"
diff --git a/src/gui/windows/inventorywindow.h b/src/gui/windows/inventorywindow.h
index 509b74390..98cac78a6 100644
--- a/src/gui/windows/inventorywindow.h
+++ b/src/gui/windows/inventorywindow.h
@@ -42,7 +42,6 @@ class ProgressBar;
class SortListModelInv;
class TabStrip;
class TextField;
-class TextPopup;
/**
* Inventory dialog.
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp
index 67dc5ee75..d7760444a 100644
--- a/src/gui/windows/itemamountwindow.cpp
+++ b/src/gui/windows/itemamountwindow.cpp
@@ -48,8 +48,6 @@
#include "gui/widgets/label.h"
#include "gui/widgets/slider.h"
-#include "utils/delete2.h"
-
#include <cmath>
#include "debug.h"
diff --git a/src/gui/windows/itemamountwindow.h b/src/gui/windows/itemamountwindow.h
index 04d08613d..d4f7fb3bc 100644
--- a/src/gui/windows/itemamountwindow.h
+++ b/src/gui/windows/itemamountwindow.h
@@ -33,7 +33,6 @@ class Icon;
class IntTextField;
class Item;
class ItemsModal;
-class ItemPopup;
class Label;
class Slider;
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp
index 31d8169d1..b3a131960 100644
--- a/src/gui/windows/minimap.cpp
+++ b/src/gui/windows/minimap.cpp
@@ -44,7 +44,6 @@
#include "resources/map/map.h"
#include "resources/map/metatile.h"
-#include "utils/delete2.h"
#include "utils/gettext.h"
#include "utils/physfstools.h"
#include "utils/sdlcheckutils.h"
diff --git a/src/gui/windows/minimap.h b/src/gui/windows/minimap.h
index becf50f7b..6556274a7 100644
--- a/src/gui/windows/minimap.h
+++ b/src/gui/windows/minimap.h
@@ -27,7 +27,6 @@
class Image;
class Map;
-class TextPopup;
/**
* Minimap window. Shows a minimap image and the name of the current map.
diff --git a/src/gui/windows/ministatuswindow.h b/src/gui/windows/ministatuswindow.h
index e97d90ed0..18acb41fb 100644
--- a/src/gui/windows/ministatuswindow.h
+++ b/src/gui/windows/ministatuswindow.h
@@ -38,7 +38,6 @@ class Graphics;
class Inventory;
class ProgressBar;
class StatusPopup;
-class TextPopup;
/**
* The player mini-status dialog.
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp
index 584776726..ef6a1b1ad 100644
--- a/src/gui/windows/npcdialog.cpp
+++ b/src/gui/windows/npcdialog.cpp
@@ -33,7 +33,6 @@
#include "being/being.h"
#include "gui/gui.h"
-#include "gui/popupmanager.h"
#include "gui/viewport.h"
#include "gui/fonts/font.h"
diff --git a/src/gui/windows/okdialog.cpp b/src/gui/windows/okdialog.cpp
index 549723e14..b6c3bfc41 100644
--- a/src/gui/windows/okdialog.cpp
+++ b/src/gui/windows/okdialog.cpp
@@ -25,6 +25,8 @@
#include "soundconsts.h"
#include "soundmanager.h"
+#include "gui/dialogtype.h"
+
#include "gui/widgets/button.h"
#include "gui/widgets/textbox.h"
diff --git a/src/gui/windows/okdialog.h b/src/gui/windows/okdialog.h
index f3fb09030..cbe3a7886 100644
--- a/src/gui/windows/okdialog.h
+++ b/src/gui/windows/okdialog.h
@@ -23,8 +23,6 @@
#ifndef GUI_WINDOWS_OKDIALOG_H
#define GUI_WINDOWS_OKDIALOG_H
-#include "gui/dialogtype.h"
-
#include "gui/widgets/window.h"
#include "listeners/actionlistener.h"
diff --git a/src/gui/windows/outfitwindow.cpp b/src/gui/windows/outfitwindow.cpp
index cc162d0ca..5a773c58d 100644
--- a/src/gui/windows/outfitwindow.cpp
+++ b/src/gui/windows/outfitwindow.cpp
@@ -33,7 +33,6 @@
#include "input/inputmanager.h"
-#include "gui/popupmanager.h"
#include "gui/viewport.h"
#include "gui/popups/popupmenu.h"
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp
index aca34dd5d..6ac30634b 100644
--- a/src/gui/windows/registerdialog.cpp
+++ b/src/gui/windows/registerdialog.cpp
@@ -30,6 +30,8 @@
#include "listeners/wrongdatanoticelistener.h"
+#include "gui/dialogtype.h"
+
#include "gui/windows/okdialog.h"
#include "gui/widgets/button.h"
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp
index 790bad68d..be5cbea11 100644
--- a/src/gui/windows/socialwindow.cpp
+++ b/src/gui/windows/socialwindow.cpp
@@ -28,6 +28,8 @@
#include "being/localplayer.h"
#include "being/playerrelations.h"
+#include "gui/dialogtype.h"
+
#include "gui/windows/confirmdialog.h"
#include "gui/windows/okdialog.h"
#include "gui/windows/setupwindow.h"
diff --git a/src/gui/windows/unregisterdialog.cpp b/src/gui/windows/unregisterdialog.cpp
index aa7c67148..0135cb7c9 100644
--- a/src/gui/windows/unregisterdialog.cpp
+++ b/src/gui/windows/unregisterdialog.cpp
@@ -24,6 +24,8 @@
#include "client.h"
+#include "gui/dialogtype.h"
+
#include "gui/windows/okdialog.h"
#include "gui/widgets/button.h"