From 2329eacfe8124cb70c1f4dcf6c38794ef1acbfdf Mon Sep 17 00:00:00 2001 From: terkhen Date: Wed, 10 Feb 2010 15:24:48 +0000 Subject: [PATCH] (svn r19076) -Codechange: Move graph functions to their own header. --- projects/openttd_vs80.vcproj | 4 ++++ projects/openttd_vs90.vcproj | 4 ++++ source.list | 1 + src/graph_gui.cpp | 2 +- src/graph_gui.h | 24 ++++++++++++++++++++++++ src/gui.h | 10 ---------- src/toolbar_gui.cpp | 1 + 7 files changed, 35 insertions(+), 11 deletions(-) create mode 100644 src/graph_gui.h diff --git a/projects/openttd_vs80.vcproj b/projects/openttd_vs80.vcproj index f840b5c051..85094fd171 100644 --- a/projects/openttd_vs80.vcproj +++ b/projects/openttd_vs80.vcproj @@ -1023,6 +1023,10 @@ RelativePath=".\..\src\gfxinit.h" > + + diff --git a/projects/openttd_vs90.vcproj b/projects/openttd_vs90.vcproj index 4545bfdbc5..b0dc67bcdf 100644 --- a/projects/openttd_vs90.vcproj +++ b/projects/openttd_vs90.vcproj @@ -1020,6 +1020,10 @@ RelativePath=".\..\src\gfxinit.h" > + + diff --git a/source.list b/source.list index 26339cbf52..3b44baf283 100644 --- a/source.list +++ b/source.list @@ -165,6 +165,7 @@ genworld.h gfx_func.h gfx_type.h gfxinit.h +graph_gui.h group.h group_gui.h group_type.h diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 25be176344..48d8b2862f 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -11,7 +11,7 @@ #include "stdafx.h" #include "openttd.h" -#include "gui.h" +#include "graph_gui.h" #include "window_gui.h" #include "company_base.h" #include "company_gui.h" diff --git a/src/graph_gui.h b/src/graph_gui.h new file mode 100644 index 0000000000..acc23421f4 --- /dev/null +++ b/src/graph_gui.h @@ -0,0 +1,24 @@ +/* $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 . + */ + +/** @file graph_gui.h Graph GUI functions. */ + +#ifndef GRAPH_GUI_H +#define GRAPH_GUI_H + +void ShowOperatingProfitGraph(); +void ShowIncomeGraph(); +void ShowDeliveredCargoGraph(); +void ShowPerformanceHistoryGraph(); +void ShowCompanyValueGraph(); +void ShowCargoPaymentRates(); +void ShowCompanyLeagueTable(); +void ShowPerformanceRatingDetail(); + +#endif /* GRAPH_GUI_H */ diff --git a/src/gui.h b/src/gui.h index 0e689cd60f..11e501f3d0 100644 --- a/src/gui.h +++ b/src/gui.h @@ -29,16 +29,6 @@ void ShowGameDifficulty(); void ShowGameSettings(); void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right); -/* graph_gui.cpp */ -void ShowOperatingProfitGraph(); -void ShowIncomeGraph(); -void ShowDeliveredCargoGraph(); -void ShowPerformanceHistoryGraph(); -void ShowCompanyValueGraph(); -void ShowCargoPaymentRates(); -void ShowCompanyLeagueTable(); -void ShowPerformanceRatingDetail(); - /* train_gui.cpp */ void ShowOrdersWindow(const Vehicle *v); diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index 6979df6816..41391f9635 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -42,6 +42,7 @@ #include "widgets/dropdown_type.h" #include "company_base.h" #include "smallmap_gui.h" +#include "graph_gui.h" #include "network/network.h" #include "network/network_gui.h"