diff options
author | terkhen <terkhen@openttd.org> | 2010-02-10 15:24:48 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-02-10 15:24:48 +0000 |
commit | 2329eacfe8124cb70c1f4dcf6c38794ef1acbfdf (patch) | |
tree | 0a9a5f7b8963bb0295a754f20b53e34bcc694826 /src | |
parent | 73ed81b1c78232c14de861207db9b40ff2550536 (diff) | |
download | openttd-2329eacfe8124cb70c1f4dcf6c38794ef1acbfdf.tar.xz |
(svn r19076) -Codechange: Move graph functions to their own header.
Diffstat (limited to 'src')
-rw-r--r-- | src/graph_gui.cpp | 2 | ||||
-rw-r--r-- | src/graph_gui.h | 24 | ||||
-rw-r--r-- | src/gui.h | 10 | ||||
-rw-r--r-- | src/toolbar_gui.cpp | 1 |
4 files changed, 26 insertions, 11 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 25be17634..48d8b2862 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 000000000..acc23421f --- /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 <http://www.gnu.org/licenses/>. + */ + +/** @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 */ @@ -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 6979df681..41391f963 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" |