2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
8 /** @file date_gui.h Functions related to the graphical selection of a date. */
13 #include "timer/timer_game_calendar.h"
14 #include "window_type.h"
17 * Callback for when a date has been chosen
18 * @param w the window that sends the callback
19 * @param date the date that has been chosen
21 typedef void SetDateCallback(const Window
*w
, TimerGameEconomy::Date date
, void *data
);
23 void ShowSetDateWindow(Window
*parent
, int window_number
, TimerGameEconomy::Date initial_date
, TimerGameEconomy::Year min_year
, TimerGameEconomy::Year max_year
, SetDateCallback
*callback
, void *callback_data
);
25 #endif /* DATE_GUI_H */