diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-16 23:58:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-17 14:02:30 +0300 |
commit | 3f7f55d24f8adbfaa6e534734e955fb3c37792ff (patch) | |
tree | 30c90bdab5d99a6e0e75dc5ee593f641bd1ad88f /src/gui/windows | |
parent | deec925bcd6ef5ea611082263dc0a7e4904345d2 (diff) | |
download | manaverse-3f7f55d24f8adbfaa6e534734e955fb3c37792ff.tar.gz manaverse-3f7f55d24f8adbfaa6e534734e955fb3c37792ff.tar.bz2 manaverse-3f7f55d24f8adbfaa6e534734e955fb3c37792ff.tar.xz manaverse-3f7f55d24f8adbfaa6e534734e955fb3c37792ff.zip |
Remove useless includes from .h files.
Diffstat (limited to 'src/gui/windows')
31 files changed, 22 insertions, 46 deletions
diff --git a/src/gui/windows/botcheckerwindow.cpp b/src/gui/windows/botcheckerwindow.cpp index a7fd4ea44..9f1973426 100644 --- a/src/gui/windows/botcheckerwindow.cpp +++ b/src/gui/windows/botcheckerwindow.cpp @@ -24,6 +24,7 @@ #include "gui/windows/setupwindow.h" +#include "gui/widgets/button.h" #include "gui/widgets/scrollarea.h" #include "gui/widgets/guitable.h" diff --git a/src/gui/windows/botcheckerwindow.h b/src/gui/windows/botcheckerwindow.h index 64aab4bca..76f06af4c 100644 --- a/src/gui/windows/botcheckerwindow.h +++ b/src/gui/windows/botcheckerwindow.h @@ -23,8 +23,6 @@ #ifndef GUI_WINDOWS_BOTCHECKERWINDOW_H #define GUI_WINDOWS_BOTCHECKERWINDOW_H -#include "listeners/configlistener.h" - #include "gui/widgets/window.h" #include "listeners/actionlistener.h" diff --git a/src/gui/windows/changeemaildialog.cpp b/src/gui/windows/changeemaildialog.cpp index 822947c22..80ffea7ae 100644 --- a/src/gui/windows/changeemaildialog.cpp +++ b/src/gui/windows/changeemaildialog.cpp @@ -34,6 +34,7 @@ #include "listeners/wrongdatanoticelistener.h" +#include "net/logindata.h" #include "net/loginhandler.h" #include "utils/delete2.h" diff --git a/src/gui/windows/changepassworddialog.cpp b/src/gui/windows/changepassworddialog.cpp index 049f00a5e..9fe950211 100644 --- a/src/gui/windows/changepassworddialog.cpp +++ b/src/gui/windows/changepassworddialog.cpp @@ -35,6 +35,7 @@ #include "listeners/wrongdatanoticelistener.h" +#include "net/logindata.h" #include "net/loginhandler.h" #include "utils/delete2.h" diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp index 85a23ed64..9468fa29a 100644 --- a/src/gui/windows/charselectdialog.cpp +++ b/src/gui/windows/charselectdialog.cpp @@ -51,6 +51,7 @@ #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/charselectdialog.h b/src/gui/windows/charselectdialog.h index ca7d6111c..9e9871c5a 100644 --- a/src/gui/windows/charselectdialog.h +++ b/src/gui/windows/charselectdialog.h @@ -23,8 +23,6 @@ #ifndef GUI_WINDOWS_CHARSELECTDIALOG_H #define GUI_WINDOWS_CHARSELECTDIALOG_H -#include "main.h" - #include "gui/widgets/window.h" #include "net/charserverhandler.h" diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h index 7dbe104c6..3bbb40e5e 100644 --- a/src/gui/windows/chatwindow.h +++ b/src/gui/windows/chatwindow.h @@ -35,10 +35,6 @@ #include "listeners/keylistener.h" #include "listeners/statlistener.h" -#include <list> -#include <map> -#include <set> - class Button; class ChannelTab; class ChatTab; diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp index 0b5fe10f1..3320f9e1e 100644 --- a/src/gui/windows/equipmentwindow.cpp +++ b/src/gui/windows/equipmentwindow.cpp @@ -42,6 +42,8 @@ #include "gui/widgets/playerbox.h" #include "gui/widgets/tabstrip.h" +#include "render/renderers.h" + #include "resources/equipmentslots.h" #include "resources/imageset.h" diff --git a/src/gui/windows/equipmentwindow.h b/src/gui/windows/equipmentwindow.h index 27526486a..a8073b3c4 100644 --- a/src/gui/windows/equipmentwindow.h +++ b/src/gui/windows/equipmentwindow.h @@ -33,8 +33,6 @@ #include "listeners/actionlistener.h" -#include <vector> - class Being; class Button; class Image; diff --git a/src/gui/windows/helpwindow.h b/src/gui/windows/helpwindow.h index 661c7013c..b1f09b60f 100644 --- a/src/gui/windows/helpwindow.h +++ b/src/gui/windows/helpwindow.h @@ -30,9 +30,6 @@ #include "localconsts.h" -#include <map> -#include <set> - class Button; class BrowserBox; class ScrollArea; diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index bf3077c1d..568da1cc1 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -23,6 +23,7 @@ #include "gui/windows/inventorywindow.h" #include "configuration.h" +#include "item.h" #include "units.h" #include "being/playerinfo.h" diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp index 01289a4c3..7198d087a 100644 --- a/src/gui/windows/itemamountwindow.cpp +++ b/src/gui/windows/itemamountwindow.cpp @@ -22,6 +22,8 @@ #include "gui/windows/itemamountwindow.h" +#include "item.h" + #include "being/playerinfo.h" #include "input/keyboardconfig.h" @@ -44,6 +46,8 @@ #include "gui/widgets/label.h" #include "gui/widgets/slider.h" +#include "utils/gettext.h" + #include <cmath> #include "debug.h" diff --git a/src/gui/windows/killstats.cpp b/src/gui/windows/killstats.cpp index 89626598e..cd40d5d41 100644 --- a/src/gui/windows/killstats.cpp +++ b/src/gui/windows/killstats.cpp @@ -41,6 +41,10 @@ #include "utils/gettext.h" +#ifdef WIN32 +#include <sys/time.h> +#endif + #include "debug.h" KillStats *killStats = nullptr; diff --git a/src/gui/windows/logindialog.h b/src/gui/windows/logindialog.h index 593bca63d..6e53304ce 100644 --- a/src/gui/windows/logindialog.h +++ b/src/gui/windows/logindialog.h @@ -28,8 +28,6 @@ #include "listeners/actionlistener.h" #include "listeners/keylistener.h" -#include <string> - class Button; class CheckBox; class DropDown; diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp index 965f1d71c..8fcb175ef 100644 --- a/src/gui/windows/minimap.cpp +++ b/src/gui/windows/minimap.cpp @@ -37,6 +37,7 @@ #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 7051465c6..ec2cf05b2 100644 --- a/src/gui/windows/ministatuswindow.cpp +++ b/src/gui/windows/ministatuswindow.cpp @@ -27,6 +27,7 @@ #include "inventory.h" #include "being/localplayer.h" +#include "being/playerinfo.h" #include "enums/being/attributes.h" diff --git a/src/gui/windows/ministatuswindow.h b/src/gui/windows/ministatuswindow.h index 548344728..923e74696 100644 --- a/src/gui/windows/ministatuswindow.h +++ b/src/gui/windows/ministatuswindow.h @@ -31,8 +31,6 @@ #include "gui/widgets/window.h" -#include <vector> - class AnimatedSprite; class Graphics; class Inventory; diff --git a/src/gui/windows/npcdialog.h b/src/gui/windows/npcdialog.h index 72a42701b..c74721b87 100644 --- a/src/gui/windows/npcdialog.h +++ b/src/gui/windows/npcdialog.h @@ -23,18 +23,12 @@ #ifndef GUI_WINDOWS_NPCDIALOG_H #define GUI_WINDOWS_NPCDIALOG_H -#include "listeners/configlistener.h" - #include "gui/models/extendedlistmodel.h" #include "gui/widgets/window.h" -#include "utils/stringvector.h" - #include "listeners/actionlistener.h" -#include <list> - class Being; class Button; class BrowserBox; diff --git a/src/gui/windows/questswindow.h b/src/gui/windows/questswindow.h index f06e2a2ef..927b32540 100644 --- a/src/gui/windows/questswindow.h +++ b/src/gui/windows/questswindow.h @@ -29,9 +29,6 @@ #include "listeners/actionlistener.h" -#include <map> -#include <vector> - class Being; class Button; class BrowserBox; diff --git a/src/gui/windows/quitdialog.h b/src/gui/windows/quitdialog.h index 9ff6dd763..96614401f 100644 --- a/src/gui/windows/quitdialog.h +++ b/src/gui/windows/quitdialog.h @@ -28,8 +28,6 @@ #include "listeners/actionlistener.h" #include "listeners/keylistener.h" -#include <vector> - class Button; class RadioButton; diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp index 8d7d84480..fdddfec6f 100644 --- a/src/gui/windows/registerdialog.cpp +++ b/src/gui/windows/registerdialog.cpp @@ -39,6 +39,7 @@ #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.h b/src/gui/windows/serverdialog.h index f59ff4ab7..e64177591 100644 --- a/src/gui/windows/serverdialog.h +++ b/src/gui/windows/serverdialog.h @@ -35,8 +35,6 @@ #include "listeners/keylistener.h" #include "listeners/selectionlistener.h" -#include <string> - class Button; class CheckBox; class Label; diff --git a/src/gui/windows/setupwindow.h b/src/gui/windows/setupwindow.h index 53bfae9cc..d890f3f02 100644 --- a/src/gui/windows/setupwindow.h +++ b/src/gui/windows/setupwindow.h @@ -27,8 +27,6 @@ #include "listeners/actionlistener.h" -#include <list> - class Button; class Label; class SetupTab; diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp index 48ab6bba4..65134aac1 100644 --- a/src/gui/windows/skilldialog.cpp +++ b/src/gui/windows/skilldialog.cpp @@ -28,6 +28,7 @@ #include "spellmanager.h" #include "being/localplayer.h" +#include "being/playerinfo.h" #include "enums/being/attributes.h" diff --git a/src/gui/windows/socialwindow.h b/src/gui/windows/socialwindow.h index d5f015e5d..a3a10101e 100644 --- a/src/gui/windows/socialwindow.h +++ b/src/gui/windows/socialwindow.h @@ -27,9 +27,6 @@ #include "listeners/actionlistener.h" #include "listeners/playerrelationslistener.h" -#include <string> -#include <map> - class Button; class ConfirmDialog; class CreatePartyPopup; diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp index 2c66884ae..14a81b003 100644 --- a/src/gui/windows/statuswindow.cpp +++ b/src/gui/windows/statuswindow.cpp @@ -24,12 +24,14 @@ #include "configuration.h" #include "gamemodifiers.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" diff --git a/src/gui/windows/statuswindow.h b/src/gui/windows/statuswindow.h index 34462498b..bde444fe5 100644 --- a/src/gui/windows/statuswindow.h +++ b/src/gui/windows/statuswindow.h @@ -29,8 +29,6 @@ #include "listeners/attributelistener.h" #include "listeners/statlistener.h" -#include <map> - class AttrDisplay; class Button; class Label; diff --git a/src/gui/windows/tradewindow.h b/src/gui/windows/tradewindow.h index f08d88963..b93c53507 100644 --- a/src/gui/windows/tradewindow.h +++ b/src/gui/windows/tradewindow.h @@ -30,8 +30,6 @@ #include "listeners/actionlistener.h" #include "listeners/selectionlistener.h" -#include <memory> - class Button; class Inventory; class Item; diff --git a/src/gui/windows/unregisterdialog.cpp b/src/gui/windows/unregisterdialog.cpp index 5dc99f720..24ce90108 100644 --- a/src/gui/windows/unregisterdialog.cpp +++ b/src/gui/windows/unregisterdialog.cpp @@ -34,6 +34,7 @@ #include "listeners/wrongdatanoticelistener.h" +#include "net/logindata.h" #include "net/loginhandler.h" #include "utils/delete2.h" diff --git a/src/gui/windows/updaterwindow.h b/src/gui/windows/updaterwindow.h index 6d3d7f49b..93922a7a9 100644 --- a/src/gui/windows/updaterwindow.h +++ b/src/gui/windows/updaterwindow.h @@ -35,9 +35,6 @@ #include "listeners/actionlistener.h" #include "listeners/keylistener.h" -#include <string> -#include <vector> - class BrowserBox; class Button; class Label; diff --git a/src/gui/windows/whoisonline.h b/src/gui/windows/whoisonline.h index 1a8f1c1c9..8ec7d3c2d 100644 --- a/src/gui/windows/whoisonline.h +++ b/src/gui/windows/whoisonline.h @@ -23,13 +23,9 @@ #ifndef GUI_WINDOWS_WHOISONLINE_H #define GUI_WINDOWS_WHOISONLINE_H -#include "listeners/configlistener.h" - #include "gui/widgets/linkhandler.h" #include "gui/widgets/window.h" -#include <set> - #include "listeners/actionlistener.h" class BrowserBox; |