Freeciv-3.3
|
#include <SDL2/SDL.h>
#include "astring.h"
#include "bitvector.h"
#include "fcintl.h"
#include "log.h"
#include "game.h"
#include "movement.h"
#include "specialist.h"
#include "unitlist.h"
#include "client_main.h"
#include "climisc.h"
#include "control.h"
#include "text.h"
#include "cityrep.h"
#include "cma_fe.h"
#include "colors.h"
#include "dialogs.h"
#include "graphics.h"
#include "gui_id.h"
#include "gui_main.h"
#include "gui_tilespec.h"
#include "mapview.h"
#include "menu.h"
#include "sprite.h"
#include "themespec.h"
#include "widget.h"
#include "wldlg.h"
#include "citydlg.h"
Go to the source code of this file.
Data Structures | |
struct | city_dialog |
Enumerations | |
enum | specialist_type { SP_ELVIS , SP_SCIENTIST , SP_TAXMAN , SP_LAST } |
Variables | |
static struct city_dialog * | pcity_dlg = NULL |
static float | city_map_zoom = 1 |
static struct small_dialog * | hurry_prog_dlg = NULL |
Activate unit and popdow city dlg. + center on unit.
Definition at line 274 of file citydlg.c.
Referenced by units_orders_city_dlg_callback().
Activate unit and del unit order dlg. widget group.
Definition at line 257 of file citydlg.c.
Referenced by units_orders_city_dlg_callback().
Change to present units panel.
Definition at line 832 of file citydlg.c.
Referenced by real_city_dialog_popup().
Popup buy productions dlg.
Definition at line 1136 of file citydlg.c.
Referenced by real_city_dialog_popup().
Popdown buy productions dlg.
Definition at line 1093 of file citydlg.c.
Referenced by popup_hurry_production_dialog().
Popdown unit city orders menu.
Definition at line 239 of file citydlg.c.
Referenced by units_orders_city_dlg_callback().
Popup the change production dialog.
Definition at line 1353 of file citydlg.c.
Referenced by real_city_dialog_popup().
Helper for switch_city_callback.
Definition at line 1658 of file citydlg.c.
Referenced by next_prev_city_dlg_callback().
Main City Dlg. window callback. This implements specialist change ( Elvis, Taxman, Scientist )
Definition at line 199 of file citydlg.c.
Referenced by real_city_dialog_popup().
User interacted with Citizen Governor button.
Definition at line 1064 of file citydlg.c.
Referenced by real_city_dialog_popup().
Create city options widgets.
Definition at line 977 of file citydlg.c.
Referenced by redraw_misc_city_dialog().
Create present/supported units widget list 207 pixels is panel width in city dlg. 220 - max y position pixel position belong to panel area.
Definition at line 706 of file citydlg.c.
Referenced by redraw_army_city_dialog(), and redraw_supported_units_city_dialog().
Create unit icon with support icons.
Definition at line 619 of file citydlg.c.
Referenced by create_present_supported_units_widget_list().
Disable all city dialog widgets
Definition at line 1598 of file citydlg.c.
Referenced by buy_prod_city_dlg_callback(), change_prod_dlg_callback(), cma_city_dlg_callback(), sell_imprvm_dlg_callback(), and units_orders_city_dlg_callback().
Disband unit and del unit order dlg. widget group.
Definition at line 331 of file citydlg.c.
Referenced by units_orders_city_dlg_callback().
Enable city dialog widgets that can be enabled.
Definition at line 1535 of file citydlg.c.
Referenced by cancel_buy_prod_city_dlg_callback(), cancel_disband_unit_callback(), cancel_units_orders_city_dlg_callback(), cancel_upgrade_unit_callback(), ok_buy_prod_city_dlg_callback(), ok_disband_unit_window_callback(), ok_upgrade_unit_window_callback(), popdown_city_cma_dialog(), popdown_city_menu_dlg(), popdown_worklist_editor(), sell_imprvm_dlg_cancel_callback(), and sell_imprvm_dlg_ok_callback().
Exit city dialog.
Definition at line 1077 of file citydlg.c.
Referenced by real_city_dialog_popup().
Fortify unit and del unit order dlg. widget group.
Definition at line 314 of file citydlg.c.
Referenced by units_orders_city_dlg_callback().
Free city present/supported units panel list.
Definition at line 819 of file citydlg.c.
Referenced by army_city_dlg_callback(), del_city_dialog(), happy_city_dlg_callback(), info_city_dlg_callback(), next_prev_city_dlg_callback(), ok_disband_unit_window_callback(), ok_upgrade_unit_window_callback(), options_city_dlg_callback(), refresh_unit_city_dialogs(), and supported_unit_city_dlg_callback().
SDL_Surface * get_scaled_city_map | ( | struct city * | pcity | ) |
Return scaled city map.
Definition at line 1620 of file citydlg.c.
Referenced by next_prev_city_dlg_callback(), popup_city_cma_dialog(), real_city_dialog_popup(), and redraw_city_dialog().
Change to happines panel.
Definition at line 895 of file citydlg.c.
Referenced by real_city_dialog_popup().
Homecity unit and del unit order dlg. widget group.
Definition at line 346 of file citydlg.c.
Referenced by units_orders_city_dlg_callback().
Main hurry productions dlg. callback
Definition at line 1164 of file citydlg.c.
Referenced by popup_hurry_production_dialog().
Change to info panel.
Definition at line 874 of file citydlg.c.
Referenced by real_city_dialog_popup().
City option callback
Definition at line 915 of file citydlg.c.
Referenced by create_city_options_widget_list().
New city name given for renaming it.
Definition at line 1743 of file citydlg.c.
Referenced by real_city_dialog_popup().
Callback for next/prev city button
Definition at line 1669 of file citydlg.c.
Referenced by real_city_dialog_popup().
Buy productions.
Definition at line 1110 of file citydlg.c.
Referenced by popup_hurry_production_dialog().
Change to city options panel.
Definition at line 1042 of file citydlg.c.
Referenced by real_city_dialog_popup().
Destroy City Menu Dlg but not undraw.
Definition at line 146 of file citydlg.c.
Referenced by activate_units_orders_city_dlg_callback(), del_city_dialog(), disband_units_orders_city_dlg_callback(), fortify_units_orders_city_dlg_callback(), homecity_units_orders_city_dlg_callback(), sentry_units_orders_city_dlg_callback(), and upgrade_units_orders_city_dlg_callback().
Popup buy productions dlg.
Definition at line 1151 of file citydlg.c.
Referenced by cancel_buy_prod_city_dlg_callback(), and ok_buy_prod_city_dlg_callback().
void popup_hurry_production_dialog | ( | struct city * | pcity, |
SDL_Surface * | pdest | ||
) |
Popup buy production dlg.
Definition at line 1176 of file citydlg.c.
Referenced by button_up_on_map(), buy_prod_city_dlg_callback(), hurry_production_callback(), and popup_buy_production_from_city_report_callback().
Recreate citydialog title.
Definition at line 3513 of file citydlg.c.
Referenced by real_city_dialog_popup(), redraw_city_dialog(), and refresh_city_names().
Recreate improvement list for city dialog.
Definition at line 3422 of file citydlg.c.
Referenced by next_prev_city_dlg_callback(), and real_city_dialog_popup().
Redraw garrison panel 207 = max panel width
Definition at line 1880 of file citydlg.c.
Referenced by redraw_city_dialog().
Redraw the dialog.
Definition at line 2434 of file citydlg.c.
Referenced by army_city_dlg_callback(), happy_city_dlg_callback(), info_city_dlg_callback(), next_prev_city_dlg_callback(), options_city_dlg_callback(), real_city_dialog_popup(), real_city_dialog_refresh(), refresh_unit_city_dialogs(), sell_imprvm_dlg_cancel_callback(), sell_imprvm_dlg_ok_callback(), and supported_unit_city_dlg_callback().
|
static |
Redraw (refresh/update) the happiness info for the dialog 207 - max panel width 180 - max citizens icons area width
Definition at line 2103 of file citydlg.c.
Referenced by redraw_city_dialog().
Redraw Info panel 207 = max panel width
Definition at line 1937 of file citydlg.c.
Referenced by redraw_city_dialog().
Redraw city option panel 207 = max panel width
Definition at line 1788 of file citydlg.c.
Referenced by redraw_city_dialog().
|
static |
Redraw supported unit panel 207 = max panel width
Definition at line 1823 of file citydlg.c.
Referenced by redraw_city_dialog().
Refresh (update) the city names for the dialog
Definition at line 1768 of file citydlg.c.
Referenced by redraw_city_dialog().
City resource map: event callback
Definition at line 1634 of file citydlg.c.
Referenced by real_city_dialog_popup().
Popup Sell Imprvm. Dlg.
Definition at line 1424 of file citydlg.c.
Referenced by rebuild_imprm_list().
Popdown Sell Imprv. Dlg. and exit without sell.
Definition at line 1373 of file citydlg.c.
Referenced by sell_imprvm_dlg_callback().
Popdown Sell Imprv. Dlg. and exit with sell.
Definition at line 1390 of file citydlg.c.
Referenced by sell_imprvm_dlg_callback().
Sentry unit and del unit order dlg. widget group.
Definition at line 297 of file citydlg.c.
Referenced by units_orders_city_dlg_callback().
Change to supported units panel.
Definition at line 852 of file citydlg.c.
Referenced by real_city_dialog_popup().
Popup units orders menu.
Definition at line 386 of file citydlg.c.
Referenced by create_present_supported_units_widget_list().
Main unit order dlg. callback.
Definition at line 378 of file citydlg.c.
Referenced by units_orders_city_dlg_callback().
Upgrade unit and del unit order dlg. widget group.
Definition at line 363 of file citydlg.c.
Referenced by units_orders_city_dlg_callback().
|
static |
Definition at line 113 of file citydlg.c.
Referenced by get_scaled_city_map(), and resource_map_city_dlg_callback().
|
static |
Definition at line 115 of file citydlg.c.
Referenced by del_city_dialog(), hurry_production_window_callback(), popdown_hurry_production_dialog(), and popup_hurry_production_dialog().
|
static |
Referenced by activate_and_exit_units_orders_city_dlg_callback(), army_city_dlg_callback(), buy_prod_city_dlg_callback(), cancel_buy_prod_city_dlg_callback(), cancel_units_orders_city_dlg_callback(), change_prod_dlg_callback(), city_dialog_is_open(), city_dlg_callback(), cma_city_dlg_callback(), create_city_options_widget_list(), create_present_supported_units_widget_list(), create_unit_surface(), del_city_dialog(), disable_city_dlg_widgets(), enable_city_dlg_widgets(), exit_city_dlg_callback(), free_city_units_lists(), happy_city_dlg_callback(), info_city_dlg_callback(), misc_panel_city_dlg_callback(), new_name_city_dlg_callback(), next_prev_city_dlg_callback(), ok_buy_prod_city_dlg_callback(), options_city_dlg_callback(), popdown_all_city_dialogs(), popdown_city_menu_dlg(), popup_hurry_production_dialog(), real_city_dialog_popup(), real_city_dialog_refresh(), rebuild_imprm_list(), redraw_army_city_dialog(), redraw_city_dialog(), redraw_misc_city_dialog(), redraw_supported_units_city_dialog(), refresh_city_names(), refresh_unit_city_dialogs(), resource_map_city_dlg_callback(), sell_imprvm_dlg_callback(), sell_imprvm_dlg_cancel_callback(), sell_imprvm_dlg_ok_callback(), supported_unit_city_dlg_callback(), and units_orders_city_dlg_callback().