summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tab.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-26 10:30:04 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-26 10:30:04 +0100
commit489777645843c7c88d0a84c8f2c7e1a7bdbcf0a9 (patch)
tree7aad9a389ebe2f8756f65906503b91e586fa4230 /src/gui/widgets/tab.cpp
parent74f4c80b84b6f0ca934bb8f2a593ca0cea326325 (diff)
downloadmana-client-489777645843c7c88d0a84c8f2c7e1a7bdbcf0a9.tar.gz
mana-client-489777645843c7c88d0a84c8f2c7e1a7bdbcf0a9.tar.bz2
mana-client-489777645843c7c88d0a84c8f2c7e1a7bdbcf0a9.tar.xz
mana-client-489777645843c7c88d0a84c8f2c7e1a7bdbcf0a9.zip
First batch of include cleanup
Since the relative includes are getting ugly and somewhat inconvenient, we'll switch to includes relative to the project root. We've done this for a while already with tmwserv. Another rule which we've always had but was never written down, is that each source file first includes its own header. This is common practice and ensures each header compiles without needing other stuff to be included first. Somebody using Code::Blocks might want to fix the project file by adding the 'src' directory to the list of include paths.
Diffstat (limited to 'src/gui/widgets/tab.cpp')
-rw-r--r--src/gui/widgets/tab.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/gui/widgets/tab.cpp b/src/gui/widgets/tab.cpp
index 7a2d9ee8..af31822e 100644
--- a/src/gui/widgets/tab.cpp
+++ b/src/gui/widgets/tab.cpp
@@ -19,20 +19,21 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <guichan/widgets/label.hpp>
+#include "gui/widgets/tab.h"
+
+#include "gui/widgets/tabbedarea.h"
-#include "tab.h"
-#include "tabbedarea.h"
+#include "gui/palette.h"
-#include "../palette.h"
+#include "configuration.h"
+#include "graphics.h"
-#include "../../configuration.h"
-#include "../../graphics.h"
+#include "resources/image.h"
+#include "resources/resourcemanager.h"
-#include "../../resources/image.h"
-#include "../../resources/resourcemanager.h"
+#include "utils/dtor.h"
-#include "../../utils/dtor.h"
+#include <guichan/widgets/label.hpp>
int Tab::mInstances = 0;
float Tab::mAlpha = config.getValue("guialpha", 0.8);