# graph_widget.h

Go to the documentation of this file.

    00001 /* $Id: graph_widget.h 23735 2012-01-03 20:26:05Z rubidium $ */
    00002
    00003 /*
    00004  * This file is part of OpenTTD.
    00005  * 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.
    00006  * 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.
    00007  * 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/>.
    00008  */
    00009
    00012 #ifndef WIDGETS_GRAPH_WIDGET_H
    00013 #define WIDGETS_GRAPH_WIDGET_H
    00014
    00015 #include "../economy_type.h"
    00016 #include "../company_type.h"
    00017
    00019 enum GraphLegendWidgets {
    00020   WID_GL_BACKGROUND,
    00021
    00022   WID_GL_FIRST_COMPANY,
    00023   WID_GL_LAST_COMPANY = WID_GL_FIRST_COMPANY + MAX_COMPANIES - 1,
    00024 };
    00025
    00027 enum CompanyValueWidgets {
    00028   WID_CV_KEY_BUTTON,
    00029   WID_CV_BACKGROUND,
    00030   WID_CV_GRAPH,
    00031   WID_CV_RESIZE,
    00032 };
    00033
    00035 enum PerformanceHistoryGraphWidgets {
    00036   WID_PHG_KEY,
    00037   WID_PHG_DETAILED_PERFORMANCE,
    00038   WID_PHG_BACKGROUND,
    00039   WID_PHG_GRAPH,
    00040   WID_PHG_RESIZE,
    00041 };
    00042
    00044 enum CargoPaymentRatesWidgets {
    00045   WID_CPR_BACKGROUND,
    00046   WID_CPR_HEADER,
    00047   WID_CPR_GRAPH,
    00048   WID_CPR_RESIZE,
    00049   WID_CPR_FOOTER,
    00050   WID_CPR_ENABLE_CARGOES,
    00051   WID_CPR_DISABLE_CARGOES,
    00052   WID_CPR_CARGO_FIRST,
    00053 };
    00054
    00056 enum CompanyLeagueWidgets {
    00057   WID_CL_BACKGROUND,
    00058 };
    00059
    00061 enum PerformanceRatingDetailsWidgets {
    00062   WID_PRD_SCORE_FIRST,
    00063   WID_PRD_SCORE_LAST = WID_PRD_SCORE_FIRST + (SCORE_END - SCORE_BEGIN) - 1,
    00064
    00065   WID_PRD_COMPANY_FIRST,
    00066   WID_PRD_COMPANY_LAST  = WID_PRD_COMPANY_FIRST + MAX_COMPANIES - 1,
    00067 };
    00068
    00069 #endif /* WIDGETS_GRAPH_WIDGET_H */