1
0
Fork 0

Codefix 5c45738613: Rename CompanyGraphWindow to BaseCompanyGraphWindow.

This makes it clearer that it isn't a final graph window.
pull/14326/head
Peter Nelson 2025-05-30 08:29:09 +01:00 committed by Peter Nelson
parent 6d0dd90e20
commit 43d57a6b7e
1 changed files with 12 additions and 12 deletions

View File

@ -692,9 +692,9 @@ public:
virtual void UpdateStatistics(bool initialize) = 0;
};
class CompanyGraphWindow : public BaseGraphWindow {
class BaseCompanyGraphWindow : public BaseGraphWindow {
public:
CompanyGraphWindow(WindowDesc &desc, StringID format_str_y_axis) : BaseGraphWindow(desc, format_str_y_axis) {}
BaseCompanyGraphWindow(WindowDesc &desc, StringID format_str_y_axis) : BaseGraphWindow(desc, format_str_y_axis) {}
void InitializeWindow(WindowNumber number)
{
@ -775,9 +775,9 @@ public:
/* OPERATING PROFIT */
/********************/
struct OperatingProfitGraphWindow : CompanyGraphWindow {
struct OperatingProfitGraphWindow : BaseCompanyGraphWindow {
OperatingProfitGraphWindow(WindowDesc &desc, WindowNumber window_number) :
CompanyGraphWindow(desc, STR_JUST_CURRENCY_SHORT)
BaseCompanyGraphWindow(desc, STR_JUST_CURRENCY_SHORT)
{
this->num_on_x_axis = GRAPH_NUM_MONTHS;
this->num_vert_lines = GRAPH_NUM_MONTHS;
@ -828,9 +828,9 @@ void ShowOperatingProfitGraph()
/* INCOME GRAPH */
/****************/
struct IncomeGraphWindow : CompanyGraphWindow {
struct IncomeGraphWindow : BaseCompanyGraphWindow {
IncomeGraphWindow(WindowDesc &desc, WindowNumber window_number) :
CompanyGraphWindow(desc, STR_JUST_CURRENCY_SHORT)
BaseCompanyGraphWindow(desc, STR_JUST_CURRENCY_SHORT)
{
this->num_on_x_axis = GRAPH_NUM_MONTHS;
this->num_vert_lines = GRAPH_NUM_MONTHS;
@ -879,9 +879,9 @@ void ShowIncomeGraph()
/* DELIVERED CARGO */
/*******************/
struct DeliveredCargoGraphWindow : CompanyGraphWindow {
struct DeliveredCargoGraphWindow : BaseCompanyGraphWindow {
DeliveredCargoGraphWindow(WindowDesc &desc, WindowNumber window_number) :
CompanyGraphWindow(desc, STR_JUST_COMMA)
BaseCompanyGraphWindow(desc, STR_JUST_COMMA)
{
this->num_on_x_axis = GRAPH_NUM_MONTHS;
this->num_vert_lines = GRAPH_NUM_MONTHS;
@ -930,9 +930,9 @@ void ShowDeliveredCargoGraph()
/* PERFORMANCE HISTORY */
/***********************/
struct PerformanceHistoryGraphWindow : CompanyGraphWindow {
struct PerformanceHistoryGraphWindow : BaseCompanyGraphWindow {
PerformanceHistoryGraphWindow(WindowDesc &desc, WindowNumber window_number) :
CompanyGraphWindow(desc, STR_JUST_COMMA)
BaseCompanyGraphWindow(desc, STR_JUST_COMMA)
{
this->num_on_x_axis = GRAPH_NUM_MONTHS;
this->num_vert_lines = GRAPH_NUM_MONTHS;
@ -988,9 +988,9 @@ void ShowPerformanceHistoryGraph()
/* COMPANY VALUE */
/*****************/
struct CompanyValueGraphWindow : CompanyGraphWindow {
struct CompanyValueGraphWindow : BaseCompanyGraphWindow {
CompanyValueGraphWindow(WindowDesc &desc, WindowNumber window_number) :
CompanyGraphWindow(desc, STR_JUST_CURRENCY_SHORT)
BaseCompanyGraphWindow(desc, STR_JUST_CURRENCY_SHORT)
{
this->num_on_x_axis = GRAPH_NUM_MONTHS;
this->num_vert_lines = GRAPH_NUM_MONTHS;