(svn r19062) -Codechange: Move smallmap related functions to their own header.

This commit is contained in:
terkhen 2010-02-08 21:19:41 +00:00
parent 0267acff62
commit b9f06f3f29
8 changed files with 29 additions and 3 deletions

View File

@ -1319,6 +1319,10 @@
RelativePath=".\..\src\sdl.h"
>
</File>
<File
RelativePath=".\..\src\smallmap_gui.h"
>
</File>
<File
RelativePath=".\..\src\sound\sdl_s.h"
>

View File

@ -1316,6 +1316,10 @@
RelativePath=".\..\src\sdl.h"
>
</File>
<File
RelativePath=".\..\src\smallmap_gui.h"
>
</File>
<File
RelativePath=".\..\src\sound\sdl_s.h"
>

View File

@ -239,6 +239,7 @@ roadstop_base.h
roadveh.h
screenshot.h
sdl.h
smallmap_gui.h
sound/sdl_s.h
video/sdl_v.h
settings_func.h

View File

@ -64,7 +64,6 @@ void ShowSubsidiesList();
void ShowEstimatedCostOrIncome(Money cost, int x, int y);
void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, int x, int y, bool no_timeout = false);
void ShowSmallMap();
void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE);
void BuildFileList();

View File

@ -84,8 +84,6 @@ void PlantRandomFarmField(const Industry *i);
void ReleaseDisastersTargetingIndustry(IndustryID);
/* smallmap_gui.cpp */
void BuildIndustriesLegend();
/* industry_cmd.cpp */
void SetIndustryDailyChanges();

View File

@ -45,6 +45,7 @@
#include <map>
#include "core/alloc_type.hpp"
#include "core/mem_func.hpp"
#include "smallmap_gui.h"
#include "table/strings.h"
#include "table/build_industry.h"

18
src/smallmap_gui.h Normal file
View File

@ -0,0 +1,18 @@
/* $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 smallmap_gui.h Smallmap GUI functions, used at newgrf.cpp and toolbar_gui.cpp. */
#ifndef SMALLMAP_GUI_H
#define SMALLMAP_GUI_H
void BuildIndustriesLegend();
void ShowSmallMap();
#endif /* SMALLMAP_GUI_H */

View File

@ -41,6 +41,7 @@
#include "rail.h"
#include "widgets/dropdown_type.h"
#include "company_base.h"
#include "smallmap_gui.h"
#include "network/network.h"
#include "network/network_gui.h"