From ac3ccda23ac4b5c69e15147b8082d90df2ac23de Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 13 Dec 2015 22:45:52 +0300 Subject: Move spells and graphics related constants into separate files. --- src/gui/popups/popupmenu.cpp | 2 ++ src/gui/viewport.h | 3 --- src/gui/widgets/itemshortcutcontainer.cpp | 3 +++ src/gui/widgets/spellshortcutcontainer.cpp | 3 +++ src/gui/windowmanager.cpp | 1 + src/gui/windows/chatwindow.cpp | 1 + 6 files changed, 10 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 10712d354..cc1cf0726 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -34,6 +34,8 @@ #include "being/playerrelation.h" #include "being/playerrelations.h" +#include "const/spells.h" + #include "enums/resources/map/mapitemtype.h" #include "input/inputmanager.h" diff --git a/src/gui/viewport.h b/src/gui/viewport.h index 61fb87c02..a3434b00d 100644 --- a/src/gui/viewport.h +++ b/src/gui/viewport.h @@ -43,9 +43,6 @@ class Graphics; class Map; class MapItem; -/** Delay between two mouse calls when dragging mouse and move the player */ -const int walkingMouseDelay = 500; - /** * The viewport on the map. Displays the current map and handles mouse input * and the popup menu. diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp index e1f6bafee..4e14fa8c5 100644 --- a/src/gui/widgets/itemshortcutcontainer.cpp +++ b/src/gui/widgets/itemshortcutcontainer.cpp @@ -25,10 +25,13 @@ #include "dragdrop.h" #include "itemshortcut.h" #include "settings.h" +#include "spellmanager.h" #include "spellshortcut.h" #include "being/playerinfo.h" +#include "const/spells.h" + #include "input/inputmanager.h" #include "gui/viewport.h" diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp index 5a3a568f8..c5ef083b0 100644 --- a/src/gui/widgets/spellshortcutcontainer.cpp +++ b/src/gui/widgets/spellshortcutcontainer.cpp @@ -25,8 +25,11 @@ #include "dragdrop.h" #include "itemshortcut.h" #include "settings.h" +#include "spellmanager.h" #include "spellshortcut.h" +#include "const/spells.h" + #include "gui/viewport.h" #include "gui/fonts/font.h" diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index 72cc677e8..4be7c3600 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -26,6 +26,7 @@ #include "configuration.h" #include "game.h" #include "settings.h" +#include "spellmanager.h" #include "spellshortcut.h" #include "touchmanager.h" diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 713db36fa..c08454623 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -27,6 +27,7 @@ #include "guild.h" #include "party.h" #include "settings.h" +#include "spellmanager.h" #include "spellshortcut.h" #include "being/localplayer.h" -- cgit v1.2.3-60-g2f50