summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-06-01 10:44:45 +0000
committerfrosch <frosch@openttd.org>2012-06-01 10:44:45 +0000
commit198de5397ed4a217273bda29dae8ddf60ba48f1d (patch)
treeb413b984a9c90cf4d6cd247a7781362fb660b598
parent88fff21b932eca52599d66239cc05dc97f5a998e (diff)
downloadopenttd-198de5397ed4a217273bda29dae8ddf60ba48f1d.tar.xz
(svn r24309) -Codechange: Split some functions from gui.h to settings_gui.h
-rw-r--r--projects/openttd_vs100.vcxproj1
-rw-r--r--projects/openttd_vs100.vcxproj.filters3
-rw-r--r--projects/openttd_vs80.vcproj4
-rw-r--r--projects/openttd_vs90.vcproj4
-rw-r--r--source.list1
-rw-r--r--src/ai/ai_gui.cpp2
-rw-r--r--src/cheat_gui.cpp2
-rw-r--r--src/gui.h3
-rw-r--r--src/industry_gui.cpp1
-rw-r--r--src/newgrf_gui.cpp2
-rw-r--r--src/settings_gui.cpp2
-rw-r--r--src/settings_gui.h21
12 files changed, 39 insertions, 7 deletions
diff --git a/projects/openttd_vs100.vcxproj b/projects/openttd_vs100.vcxproj
index be3eb0a0d..7665aaa98 100644
--- a/projects/openttd_vs100.vcxproj
+++ b/projects/openttd_vs100.vcxproj
@@ -539,6 +539,7 @@
<ClInclude Include="..\src\sound\sdl_s.h" />
<ClInclude Include="..\src\video\sdl_v.h" />
<ClInclude Include="..\src\settings_func.h" />
+ <ClInclude Include="..\src\settings_gui.h" />
<ClInclude Include="..\src\settings_internal.h" />
<ClInclude Include="..\src\settings_type.h" />
<ClInclude Include="..\src\ship.h" />
diff --git a/projects/openttd_vs100.vcxproj.filters b/projects/openttd_vs100.vcxproj.filters
index 7fc87d093..c7dc8819a 100644
--- a/projects/openttd_vs100.vcxproj.filters
+++ b/projects/openttd_vs100.vcxproj.filters
@@ -846,6 +846,9 @@
<ClInclude Include="..\src\settings_func.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="..\src\settings_gui.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
<ClInclude Include="..\src\settings_internal.h">
<Filter>Header Files</Filter>
</ClInclude>
diff --git a/projects/openttd_vs80.vcproj b/projects/openttd_vs80.vcproj
index fb895a43f..57aed0f1c 100644
--- a/projects/openttd_vs80.vcproj
+++ b/projects/openttd_vs80.vcproj
@@ -1431,6 +1431,10 @@
>
</File>
<File
+ RelativePath=".\..\src\settings_gui.h"
+ >
+ </File>
+ <File
RelativePath=".\..\src\settings_internal.h"
>
</File>
diff --git a/projects/openttd_vs90.vcproj b/projects/openttd_vs90.vcproj
index 37dc59003..bad657eb5 100644
--- a/projects/openttd_vs90.vcproj
+++ b/projects/openttd_vs90.vcproj
@@ -1428,6 +1428,10 @@
>
</File>
<File
+ RelativePath=".\..\src\settings_gui.h"
+ >
+ </File>
+ <File
RelativePath=".\..\src\settings_internal.h"
>
</File>
diff --git a/source.list b/source.list
index 774df5d8a..aeacabea5 100644
--- a/source.list
+++ b/source.list
@@ -272,6 +272,7 @@ sdl.h
sound/sdl_s.h
video/sdl_v.h
settings_func.h
+settings_gui.h
settings_internal.h
settings_type.h
ship.h
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index b7d385030..82ceb1641 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -12,7 +12,7 @@
#include "../stdafx.h"
#include "../table/sprites.h"
#include "../error.h"
-#include "../gui.h"
+#include "../settings_gui.h"
#include "../querystring_gui.h"
#include "../company_base.h"
#include "../company_gui.h"
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp
index be4f57399..33d9ae20e 100644
--- a/src/cheat_gui.cpp
+++ b/src/cheat_gui.cpp
@@ -22,7 +22,7 @@
#include "strings_func.h"
#include "window_func.h"
#include "rail_gui.h"
-#include "gui.h"
+#include "settings_gui.h"
#include "company_gui.h"
#include "widgets/cheat_widget.h"
diff --git a/src/gui.h b/src/gui.h
index e7cc5d5fd..43fa310b3 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -13,7 +13,6 @@
#define GUI_H
#include "vehicle_type.h"
-#include "gfx_type.h"
#include "economy_type.h"
#include "tile_type.h"
#include "transport_type.h"
@@ -28,8 +27,6 @@ void InitializeGUI();
void ShowGameOptions();
void ShowGameDifficulty();
void ShowGameSettings();
-void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right);
-void DrawBoolButton(int x, int y, bool state, bool clickable);
/* train_gui.cpp */
void ShowOrdersWindow(const Vehicle *v);
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index ddf4f3c4a..8b182dbd9 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -12,6 +12,7 @@
#include "stdafx.h"
#include "error.h"
#include "gui.h"
+#include "settings_gui.h"
#include "sound_func.h"
#include "window_func.h"
#include "textbuf_gui.h"
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 95f4565aa..447345ef0 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -11,7 +11,7 @@
#include "stdafx.h"
#include "error.h"
-#include "gui.h"
+#include "settings_gui.h"
#include "newgrf.h"
#include "strings_func.h"
#include "window_func.h"
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 0dd5a439b..d066284a8 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -12,7 +12,7 @@
#include "stdafx.h"
#include "currency.h"
#include "error.h"
-#include "gui.h"
+#include "settings_gui.h"
#include "textbuf_gui.h"
#include "command_func.h"
#include "screenshot.h"
diff --git a/src/settings_gui.h b/src/settings_gui.h
new file mode 100644
index 000000000..18af89f6a
--- /dev/null
+++ b/src/settings_gui.h
@@ -0,0 +1,21 @@
+/* $Id$ */
+
+/*
+ * This file is part of OpenTTD.
+ * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
+ * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/** @file settings_gui.h Functions for setting GUIs. */
+
+#ifndef SETTING_GUI_H
+#define SETTING_GUI_H
+
+#include "gfx_type.h"
+
+void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right);
+void DrawBoolButton(int x, int y, bool state, bool clickable);
+
+#endif /* SETTING_GUI_H */
+