webperimental: killstack decides stack protects.
[freeciv.git] / client / gui-stub / citydlg.c
blobf83d39d99f24ef0d8b74366e73264fc5935efdca
1 /**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
14 #ifdef HAVE_CONFIG_H
15 #include <fc_config.h>
16 #endif
18 /* gui main header */
19 #include "gui_stub.h"
21 #include "citydlg.h"
23 /**************************************************************************
24 Pop up (or bring to the front) a dialog for the given city. It may or
25 may not be modal.
26 **************************************************************************/
27 void gui_real_city_dialog_popup(struct city *pcity)
29 /* PORTME */
32 /**************************************************************************
33 Close the dialog for the given city.
34 **************************************************************************/
35 void gui_popdown_city_dialog(struct city *pcity)
37 /* PORTME */
40 /**************************************************************************
41 Close the dialogs for all cities.
42 **************************************************************************/
43 void gui_popdown_all_city_dialogs(void)
45 /* PORTME */
48 /**************************************************************************
49 Refresh (update) all data for the given city's dialog.
50 **************************************************************************/
51 void gui_real_city_dialog_refresh(struct city *pcity)
53 /* PORTME */
56 /**************************************************************************
57 Update city dialogs when the given unit's status changes. This
58 typically means updating both the unit's home city (if any) and the
59 city in which it is present (if any).
60 **************************************************************************/
61 void gui_refresh_unit_city_dialogs(struct unit *punit)
63 /* PORTME */
64 #if 0
65 /* Demo code */
66 struct city *pcity_sup, *pcity_pre;
67 struct city_dialog *pdialog;
69 pcity_sup = game_city_by_number(punit->homecity);
70 pcity_pre = tile_city(unit_tile(punit));
72 if (pcity_sup && (pdialog = get_city_dialog(pcity_sup))) {
73 city_dialog_update_supported_units(pdialog);
76 if (pcity_pre && (pdialog = get_city_dialog(pcity_pre))) {
77 city_dialog_update_present_units(pdialog);
79 #endif
82 /**************************************************************************
83 Return whether the dialog for the given city is open.
84 **************************************************************************/
85 bool gui_city_dialog_is_open(struct city *pcity)
87 /* PORTME */
88 return FALSE;