translation_unit
comment "/***********************************************************"...
preproc_ifdef
#ifdef "#ifdef"
identifier "HAVE_CONFIG_H"
preproc_include
#include "#include"
system_lib_string "<fc_config.h>"
#endif "#endif"
preproc_include
#include "#include"
system_lib_string "<stdio.h>"
preproc_include
#include "#include"
system_lib_string "<stdlib.h>"
preproc_include
#include "#include"
system_lib_string "<string.h>"
preproc_include
#include "#include"
system_lib_string "<gtk/gtk.h>"
preproc_include
#include "#include"
system_lib_string "<gdk/gdkkeysyms.h>"
comment "/* utility */"
preproc_include
#include "#include"
string_literal
" "\""
string_content "fcintl.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "log.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "shared.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "support.h"
" "\""
comment "/* common */"
preproc_include
#include "#include"
string_literal
" "\""
string_content "city.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "game.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "packets.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "unit.h"
" "\""
comment "/* client/agents */"
preproc_include
#include "#include"
string_literal
" "\""
string_content "cma_fec.h"
" "\""
comment "/* client */"
preproc_include
#include "#include"
string_literal
" "\""
string_content "citydlg_common.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "cityrepdata.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "client_main.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "climisc.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "global_worklist.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mapctrl_common.h"
" "\""
comment "/* is_city_hilited() */"
preproc_include
#include "#include"
string_literal
" "\""
string_content "mapview_common.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "options.h"
" "\""
comment "/* client/gui-gtk-5.0 */"
preproc_include
#include "#include"
string_literal
" "\""
string_content "chatline.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "citydlg.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "gui_main.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "gui_stuff.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mapview.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "optiondlg.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "repodlgs.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "cityrep.h"
" "\""
preproc_function_def
#define "#define"
identifier "NEG_VAL"
preproc_params
( "("
identifier "x"
) ")"
preproc_arg "((x)<0 ? (x) : (-x))"
comment "/* Some versions of gcc have problems with negative values h"...
preproc_def
#define "#define"
identifier "CMA_NONE"
preproc_arg "(10000)"
preproc_def
#define "#define"
identifier "CMA_CUSTOM"
preproc_arg "(10001)"
struct_specifier (+27 nodes collapsed)
; ";"
enum_specifier (+26 nodes collapsed)
; ";"
comment "/***********************************************************"...
declaration
storage_class_specifier
static "static"
primitive_type "void"
function_declarator
identifier "create_city_report_dialog"
parameter_list
( "("
parameter_declaration
primitive_type "bool"
identifier "make_modal"
) ")"
; ";"
declaration (+31 nodes collapsed)
declaration (+25 nodes collapsed)
declaration
storage_class_specifier
static "static"
primitive_type "void"
function_declarator
identifier "city_selection_changed_callback"
parameter_list
( "("
parameter_declaration
type_identifier "GtkTreeSelection"
pointer_declarator
* "*"
identifier "selection"
) ")"
; ";"
declaration (+25 nodes collapsed)
declaration
storage_class_specifier
static "static"
primitive_type "void"
function_declarator
identifier "update_total_buy_cost"
parameter_list
( "("
parameter_declaration
primitive_type "void"
) ")"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
function_declarator
identifier "create_production_menu"
parameter_list
( "("
parameter_declaration
type_identifier "GActionGroup"
pointer_declarator
* "*"
identifier "group"
) ")"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
function_declarator
identifier "create_select_menu"
parameter_list
( "("
parameter_declaration
type_identifier "GActionGroup"
pointer_declarator
* "*"
identifier "group"
) ")"
; ";"
declaration (+39 nodes collapsed)
declaration
storage_class_specifier
static "static"
struct_specifier
struct "struct"
type_identifier "gui_dialog"
init_declarator
pointer_declarator
* "*"
identifier "city_dialog_shell"
= "="
null
NULL "NULL"
; ";"
enum_specifier
enum "enum"
enumerator_list
{ "{"
enumerator
identifier "CITY_CENTER"
= "="
number_literal "1"
, ","
enumerator
identifier "CITY_POPUP"
, ","
enumerator
identifier "CITY_BUY"
} "}"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GtkWidget"
pointer_declarator
* "*"
identifier "city_view_depr"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GtkTreeSelection"
pointer_declarator
* "*"
identifier "city_selection_depr"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GtkListStore"
pointer_declarator
* "*"
identifier "city_model_depr"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GtkWidget"
pointer_declarator
* "*"
identifier "city_view"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GtkMultiSelection"
pointer_declarator
* "*"
identifier "city_selection"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GListStore"
pointer_declarator
* "*"
identifier "city_store"
; ";"
preproc_def
#define "#define"
identifier "CRD_COL_CITY_ID"
preproc_arg "(0 + NUM_CREPORT_COLS)"
preproc_ifdef (+23 nodes collapsed)
comment "/* MENUS_GTK3 */"
declaration
storage_class_specifier
static "static"
primitive_type "void"
function_declarator
identifier "recreate_production_menu"
parameter_list
( "("
parameter_declaration
type_identifier "GActionGroup"
pointer_declarator
* "*"
identifier "group"
) ")"
; ";"
declaration
storage_class_specifier
static "static"
primitive_type "void"
function_declarator
identifier "recreate_select_menu"
parameter_list
( "("
parameter_declaration
type_identifier "GActionGroup"
pointer_declarator
* "*"
identifier "group"
) ")"
; ";"
declaration
storage_class_specifier
static "static"
primitive_type "void"
function_declarator
identifier "recreate_sell_menu"
parameter_list
( "("
parameter_declaration
type_identifier "GActionGroup"
pointer_declarator
* "*"
identifier "group"
) ")"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GtkWidget"
pointer_declarator
* "*"
identifier "city_center_command"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GtkWidget"
pointer_declarator
* "*"
identifier "city_popup_command"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GtkWidget"
pointer_declarator
* "*"
identifier "city_buy_command"
; ";"
preproc_ifdef
#ifdef "#ifdef"
identifier "MENUS_GTK3"
declaration
storage_class_specifier
static "static"
type_identifier "GtkWidget"
pointer_declarator
* "*"
identifier "city_sell_command"
; ";"
#endif "#endif"
comment "/* MENUS_GTK3 */"
declaration
storage_class_specifier
static "static"
type_identifier "GtkWidget"
pointer_declarator
* "*"
identifier "city_total_buy_cost_label"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
init_declarator
pointer_declarator
* "*"
identifier "prod_menu"
= "="
null
NULL "NULL"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "change_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "add_first_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "add_last_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "add_next_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "add_2ndlast_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "wl_set_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "wl_append_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "select_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
init_declarator
pointer_declarator
* "*"
identifier "unit_b_select_menu"
= "="
null
NULL "NULL"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "impr_b_select_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "wndr_b_select_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "unit_s_select_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "unit_p_select_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "impr_p_select_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "wndr_p_select_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "unit_a_select_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "impr_a_select_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "wndr_a_select_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "governor_select_menu"
; ";"
declaration
storage_class_specifier
static "static"
primitive_type "int"
identifier "city_dialog_shell_is_modal"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "cityrep_menu"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GActionGroup"
pointer_declarator
* "*"
identifier "cityrep_group"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
identifier "display_menu"
; ";"
preproc_def
#define "#define"
identifier "FC_TYPE_CITY_ROW"
preproc_arg "(fc_city_row_get_type())"
expression_statement
call_expression
identifier "G_DECLARE_FINAL_TYPE"
argument_list
( "("
identifier "FcCityRow"
, ","
identifier "fc_city_row"
, ","
identifier "FC"
, ","
identifier "CITY_ROW"
, ","
identifier "GObject"
) ")"
; ""
struct_specifier (+22 nodes collapsed)
; ";"
struct_specifier
struct "struct"
type_identifier "_FcCityClass"
field_declaration_list
{ "{"
field_declaration
type_identifier "GObjectClass"
field_identifier "parent_class"
; ";"
} "}"
; ";"
expression_statement
call_expression
identifier "G_DEFINE_TYPE"
argument_list
( "("
identifier "FcCityRow"
, ","
identifier "fc_city_row"
, ","
identifier "G_TYPE_OBJECT"
) ")"
comment "/***********************************************************"...
comment "/**\n Finalizing method for FcCityRow class\n****************"...
; ""
function_definition (+68 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Initialization method for FcCityRow class\n************"...
function_definition (+40 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Initialization method for FcCityRow\n******************"...
function_definition (+41 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n FcCityRow creation method\n****************************"...
function_definition (+40 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Return text line for the column headers for the city r"...
function_definition (+137 nodes collapsed)
comment "/***********************************************************"...
comment "/***********************************************************"...
comment "/**\n City table cell bind function\n************************"...
function_definition (+85 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n City table cell setup function\n***********************"...
function_definition (+44 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Returns a new tree model for the city report.\n********"...
function_definition (+87 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Set the values of the iterator.\n**********************"...
function_definition (+160 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Set the values of the city.\n**************************"...
function_definition (+149 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Set the values of the iterator.\n**********************"...
function_definition (+110 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Return TRUE if 'iter' has been set to the city row.\n**"...
function_definition (+121 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Fill the model with the current configuration.\n*******"...
function_definition (+225 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Fill the model with the current configuration.\n*******"...
function_definition (+297 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Popup the city report dialog, and optionally raise it."...
function_definition (+70 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Closes the city report dialog.\n***********************"...
function_definition (+29 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Make submenu listing possible build targets\n**********"...
function_definition (+1179 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Change the production of one single selected city.\n***"...
function_definition (+95 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Called by select_impr_or_unit_callback() for each city"...
function_definition (+103 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Called by select_impr_or_unit_callback() for each city"...
function_definition (+103 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Called by select_impr_or_unit_callback() for each city"...
function_definition (+103 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Called by select_impr_or_unit_callback() for each city"...
function_definition (+107 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Iterate the cities going to sell.\n********************"...
function_definition (+148 nodes collapsed)
struct_specifier (+24 nodes collapsed)
; ";"
comment "/***********************************************************"...
comment "/**\n Callback for sell dialog response.\n*******************"...
function_definition (+273 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Some build target, either improvement or unit, has bee"...
function_definition (+657 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Governors iterating callback.\n************************"...
function_definition (+124 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Called when one clicks on an governor item to make a s"...
function_definition (+367 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Create the governor entries in the change menu and the"...
function_definition (+1069 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Recreate governor menu\n*******************************"...
function_definition (+58 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Helper function to append a worklist to the current wo"...
function_definition (+101 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Menu item callback to append the global worklist assoc"...
function_definition (+97 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Helper function to set a worklist for one city in the "...
function_definition (+99 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Menu item callback to set a city's worklist to the glo"...
function_definition (+119 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Create submenu based on global worklist.\n*************"...
function_definition (+307 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Update city report views\n*****************************"...
function_definition (+154 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Create up-to-date menu item for the display menu.\n Ca"...
function_definition (+114 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n User has toggled some column viewing option\n**********"...
function_definition (+91 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Create columns selection menu for the city report.\n***"...
function_definition (+235 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Create menu for city report\n**************************"...
function_definition (+323 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Sort callback.\n***************************************"...
function_definition (+128 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Create city report dialog.\n***************************"...
function_definition (+1069 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n User has chosen to select all cities\n*****************"...
function_definition (+35 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n User has chosen to unselect all cities\n***************"...
function_definition (+35 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n User has chosen to invert selection\n******************"...
function_definition (+129 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n User has chosen to select coastal cities\n*************"...
function_definition (+161 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Select all cities on the same continent.\n*************"...
function_definition (+181 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n User has chosen to select all cities on same island\n**"...
function_definition (+40 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n User has chosen to select cities with certain target i"...
function_definition
storage_class_specifier
static "static"
primitive_type "void"
function_declarator
identifier "city_select_building_callback"
parameter_list
( "("
parameter_declaration
type_identifier "GSimpleAction"
pointer_declarator
* "*"
identifier "action"
, ","
parameter_declaration
type_identifier "GVariant"
pointer_declarator
* "*"
identifier "parameter"
, ","
parameter_declaration
type_identifier "gpointer"
identifier "data"
) ")"
compound_statement
{ "{"
declaration
enum_specifier
enum "enum"
type_identifier "production_class_type"
init_declarator
identifier "which"
= "="
call_expression
identifier "GPOINTER_TO_INT"
argument_list
( "("
identifier "data"
) ")"
; ";"
declaration
type_identifier "ITree"
identifier "it"
; ";"
declaration
type_identifier "GtkTreeModel"
init_declarator
pointer_declarator
* "*"
identifier "model"
= "="
call_expression
identifier "GTK_TREE_MODEL"
argument_list
( "("
identifier "city_model_depr"
) ")"
; ";"
expression_statement
call_expression
identifier "gtk_tree_selection_unselect_all"
argument_list
( "("
identifier "city_selection_depr"
) ")"
; ";"
for_statement
for "for"
( "("
call_expression
identifier "itree_begin"
argument_list
( "("
identifier "model"
, ","
pointer_expression
& "&"
identifier "it"
) ")"
; ";"
unary_expression
! "!"
call_expression
identifier "itree_end"
argument_list
( "("
pointer_expression
& "&"
identifier "it"
) ")"
; ";"
call_expression
identifier "itree_next"
argument_list
( "("
pointer_expression
& "&"
identifier "it"
) ")"
) ")"
compound_statement
{ "{"
declaration (+23 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
binary_expression
null
NULL "NULL"
!= "!="
identifier "pcity"
&& "&&"
parenthesized_expression
( "("
binary_expression
binary_expression
parenthesized_expression
( "("
binary_expression
binary_expression
identifier "which"
== "=="
identifier "PCT_UNIT"
&& "&&"
binary_expression
identifier "VUT_UTYPE"
== "=="
field_expression
field_expression
identifier "pcity"
-> "->"
field_identifier "production"
. "."
field_identifier "kind"
) ")"
|| "||"
parenthesized_expression
( "("
binary_expression
binary_expression
binary_expression
identifier "which"
== "=="
identifier "PCT_NORMAL_IMPROVEMENT"
&& "&&"
binary_expression
identifier "VUT_IMPROVEMENT"
== "=="
field_expression
field_expression
identifier "pcity"
-> "->"
field_identifier "production"
. "."
field_identifier "kind"
&& "&&"
unary_expression
! "!"
call_expression
identifier "is_wonder"
argument_list
( "("
field_expression
field_expression
field_expression
identifier "pcity"
-> "->"
field_identifier "production"
. "."
field_identifier "value"
. "."
field_identifier "building"
) ")"
) ")"
|| "||"
parenthesized_expression (+36 nodes collapsed)
) ")"
) ")"
compound_statement
{ "{"
expression_statement
call_expression
identifier "itree_select"
argument_list
( "("
identifier "city_selection_depr"
, ","
pointer_expression
& "&"
identifier "it"
) ")"
; ";"
} "}"
} "}"
} "}"
comment "/***********************************************************"...
comment "/**\n Buy the production in one single city.\n***************"...
function_definition (+72 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Center to one single city.\n***************************"...
function_definition (+75 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Popup the dialog of a single city.\n*******************"...
function_definition (+95 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n gui_dialog response callback.\n************************"...
function_definition (+128 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n User has selected city row from city report.\n*********"...
function_definition (+213 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Update the city report dialog\n************************"...
function_definition (+213 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Update the text for a single city in the city report.\n"...
function_definition (+97 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Create submenu for changing production target.\n\n @par"...
function_definition (+351 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Update the sell menu.\n********************************"...
function_definition (+118 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Creates production menu\n******************************"...
function_definition (+533 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Recreates production menu\n****************************"...
function_definition (+136 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Returns whether city is building given target\n********"...
function_definition (+47 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Creates select menu\n**********************************"...
function_definition
storage_class_specifier
static "static"
type_identifier "GMenu"
pointer_declarator
* "*"
function_declarator
identifier "create_select_menu"
parameter_list
( "("
parameter_declaration
type_identifier "GActionGroup"
pointer_declarator
* "*"
identifier "group"
) ")"
compound_statement
{ "{"
declaration
type_identifier "GSimpleAction"
pointer_declarator
* "*"
identifier "act"
; ";"
declaration
primitive_type "char"
array_declarator
identifier "buf"
[ "["
number_literal "128"
] "]"
; ";"
expression_statement
assignment_expression
identifier "select_menu"
= "="
call_expression
identifier "g_menu_new"
argument_list
( "("
) ")"
; ";"
preproc_if (+43 nodes collapsed)
expression_statement
assignment_expression
identifier "act"
= "="
call_expression
identifier "g_simple_action_new"
argument_list
( "("
string_literal
" "\""
string_content "select_all"
" "\""
, ","
null
NULL "NULL"
) ")"
; ";"
expression_statement
call_expression
identifier "g_action_map_add_action"
argument_list
( "("
call_expression
identifier "G_ACTION_MAP"
argument_list
( "("
identifier "group"
) ")"
, ","
call_expression
identifier "G_ACTION"
argument_list
( "("
identifier "act"
) ")"
) ")"
; ";"
expression_statement (+23 nodes collapsed)
expression_statement (+28 nodes collapsed)
expression_statement
assignment_expression
identifier "act"
= "="
call_expression
identifier "g_simple_action_new"
argument_list
( "("
string_literal
" "\""
string_content "select_none"
" "\""
, ","
null
NULL "NULL"
) ")"
; ";"
expression_statement
call_expression
identifier "g_action_map_add_action"
argument_list
( "("
call_expression
identifier "G_ACTION_MAP"
argument_list
( "("
identifier "group"
) ")"
, ","
call_expression
identifier "G_ACTION"
argument_list
( "("
identifier "act"
) ")"
) ")"
; ";"
expression_statement (+23 nodes collapsed)
expression_statement (+28 nodes collapsed)
expression_statement
assignment_expression
identifier "act"
= "="
call_expression
identifier "g_simple_action_new"
argument_list
( "("
string_literal
" "\""
string_content "select_invert"
" "\""
, ","
null
NULL "NULL"
) ")"
; ";"
expression_statement
call_expression
identifier "g_action_map_add_action"
argument_list
( "("
call_expression
identifier "G_ACTION_MAP"
argument_list
( "("
identifier "group"
) ")"
, ","
call_expression
identifier "G_ACTION"
argument_list
( "("
identifier "act"
) ")"
) ")"
; ";"
expression_statement (+23 nodes collapsed)
expression_statement (+28 nodes collapsed)
expression_statement
assignment_expression
identifier "act"
= "="
call_expression
identifier "g_simple_action_new"
argument_list
( "("
string_literal
" "\""
string_content "select_build_unit"
" "\""
, ","
null
NULL "NULL"
) ")"
; ";"
expression_statement
call_expression
identifier "g_action_map_add_action"
argument_list
( "("
call_expression
identifier "G_ACTION_MAP"
argument_list
( "("
identifier "group"
) ")"
, ","
call_expression
identifier "G_ACTION"
argument_list
( "("
identifier "act"
) ")"
) ")"
; ";"
expression_statement (+27 nodes collapsed)
expression_statement (+28 nodes collapsed)
expression_statement
assignment_expression
identifier "act"
= "="
call_expression
identifier "g_simple_action_new"
argument_list
( "("
string_literal
" "\""
string_content "select_build_impr"
" "\""
, ","
null
NULL "NULL"
) ")"
; ";"
expression_statement
call_expression
identifier "g_action_map_add_action"
argument_list
( "("
call_expression
identifier "G_ACTION_MAP"
argument_list
( "("
identifier "group"
) ")"
, ","
call_expression
identifier "G_ACTION"
argument_list
( "("
identifier "act"
) ")"
) ")"
; ";"
expression_statement
call_expression
identifier "g_signal_connect"
argument_list
( "("
identifier "act"
, ","
string_literal
" "\""
string_content "activate"
" "\""
, ","
call_expression
identifier "G_CALLBACK"
argument_list
( "("
identifier "city_select_building_callback"
) ")"
, ","
call_expression
identifier "GINT_TO_POINTER"
argument_list
( "("
identifier "PCT_NORMAL_IMPROVEMENT"
) ")"
) ")"
; ";"
expression_statement (+28 nodes collapsed)
expression_statement
assignment_expression
identifier "act"
= "="
call_expression
identifier "g_simple_action_new"
argument_list
( "("
string_literal
" "\""
string_content "select_build_wonder"
" "\""
, ","
null
NULL "NULL"
) ")"
; ";"
expression_statement
call_expression
identifier "g_action_map_add_action"
argument_list
( "("
call_expression
identifier "G_ACTION_MAP"
argument_list
( "("
identifier "group"
) ")"
, ","
call_expression
identifier "G_ACTION"
argument_list
( "("
identifier "act"
) ")"
) ")"
; ";"
expression_statement (+27 nodes collapsed)
expression_statement (+28 nodes collapsed)
expression_statement
assignment_expression
identifier "unit_b_select_menu"
= "="
call_expression
identifier "g_menu_new"
argument_list
( "("
) ")"
; ";"
expression_statement (+37 nodes collapsed)
expression_statement (+35 nodes collapsed)
expression_statement
call_expression
identifier "submenu_append_unref"
argument_list
( "("
identifier "select_menu"
, ","
identifier "buf"
, ","
call_expression
identifier "G_MENU_MODEL"
argument_list
( "("
identifier "unit_b_select_menu"
) ")"
) ")"
; ";"
expression_statement
assignment_expression
identifier "impr_b_select_menu"
= "="
call_expression
identifier "g_menu_new"
argument_list
( "("
) ")"
; ";"
expression_statement (+37 nodes collapsed)
expression_statement (+35 nodes collapsed)
expression_statement
call_expression
identifier "submenu_append_unref"
argument_list
( "("
identifier "select_menu"
, ","
identifier "buf"
, ","
call_expression
identifier "G_MENU_MODEL"
argument_list
( "("
identifier "impr_b_select_menu"
) ")"
) ")"
; ";"
expression_statement
assignment_expression
identifier "wndr_b_select_menu"
= "="
call_expression
identifier "g_menu_new"
argument_list
( "("
) ")"
; ";"
expression_statement (+37 nodes collapsed)
expression_statement (+35 nodes collapsed)
expression_statement
call_expression
identifier "submenu_append_unref"
argument_list
( "("
identifier "select_menu"
, ","
identifier "buf"
, ","
call_expression
identifier "G_MENU_MODEL"
argument_list
( "("
identifier "wndr_b_select_menu"
) ")"
) ")"
; ";"
expression_statement
assignment_expression
identifier "act"
= "="
call_expression
identifier "g_simple_action_new"
argument_list
( "("
string_literal
" "\""
string_content "select_coastal"
" "\""
, ","
null
NULL "NULL"
) ")"
; ";"
expression_statement
call_expression
identifier "g_action_map_add_action"
argument_list
( "("
call_expression
identifier "G_ACTION_MAP"
argument_list
( "("
identifier "group"
) ")"
, ","
call_expression
identifier "G_ACTION"
argument_list
( "("
identifier "act"
) ")"
) ")"
; ";"
expression_statement (+23 nodes collapsed)
expression_statement (+28 nodes collapsed)
expression_statement
assignment_expression
identifier "act"
= "="
call_expression
identifier "g_simple_action_new"
argument_list
( "("
string_literal
" "\""
string_content "select_island"
" "\""
, ","
null
NULL "NULL"
) ")"
; ";"
expression_statement
call_expression
identifier "g_action_map_add_action"
argument_list
( "("
call_expression
identifier "G_ACTION_MAP"
argument_list
( "("
identifier "group"
) ")"
, ","
call_expression
identifier "G_ACTION"
argument_list
( "("
identifier "act"
) ")"
) ")"
; ";"
expression_statement (+23 nodes collapsed)
expression_statement (+28 nodes collapsed)
expression_statement
assignment_expression
identifier "unit_s_select_menu"
= "="
call_expression
identifier "g_menu_new"
argument_list
( "("
) ")"
; ";"
expression_statement (+37 nodes collapsed)
expression_statement (+35 nodes collapsed)
expression_statement
call_expression
identifier "submenu_append_unref"
argument_list
( "("
identifier "select_menu"
, ","
identifier "buf"
, ","
call_expression
identifier "G_MENU_MODEL"
argument_list
( "("
identifier "unit_s_select_menu"
) ")"
) ")"
; ";"
expression_statement
assignment_expression
identifier "unit_p_select_menu"
= "="
call_expression
identifier "g_menu_new"
argument_list
( "("
) ")"
; ";"
expression_statement (+37 nodes collapsed)
expression_statement (+35 nodes collapsed)
expression_statement
call_expression
identifier "submenu_append_unref"
argument_list
( "("
identifier "select_menu"
, ","
identifier "buf"
, ","
call_expression
identifier "G_MENU_MODEL"
argument_list
( "("
identifier "unit_p_select_menu"
) ")"
) ")"
; ";"
expression_statement
assignment_expression
identifier "impr_p_select_menu"
= "="
call_expression
identifier "g_menu_new"
argument_list
( "("
) ")"
; ";"
expression_statement (+37 nodes collapsed)
expression_statement (+35 nodes collapsed)
expression_statement
call_expression
identifier "submenu_append_unref"
argument_list
( "("
identifier "select_menu"
, ","
identifier "buf"
, ","
call_expression
identifier "G_MENU_MODEL"
argument_list
( "("
identifier "impr_p_select_menu"
) ")"
) ")"
; ";"
expression_statement
assignment_expression
identifier "wndr_p_select_menu"
= "="
call_expression
identifier "g_menu_new"
argument_list
( "("
) ")"
; ";"
expression_statement (+37 nodes collapsed)
expression_statement (+35 nodes collapsed)
expression_statement
call_expression
identifier "submenu_append_unref"
argument_list
( "("
identifier "select_menu"
, ","
identifier "buf"
, ","
call_expression
identifier "G_MENU_MODEL"
argument_list
( "("
identifier "wndr_p_select_menu"
) ")"
) ")"
; ";"
expression_statement
assignment_expression
identifier "unit_a_select_menu"
= "="
call_expression
identifier "g_menu_new"
argument_list
( "("
) ")"
; ";"
expression_statement (+37 nodes collapsed)
expression_statement (+35 nodes collapsed)
expression_statement
call_expression
identifier "submenu_append_unref"
argument_list
( "("
identifier "select_menu"
, ","
identifier "buf"
, ","
call_expression
identifier "G_MENU_MODEL"
argument_list
( "("
identifier "unit_a_select_menu"
) ")"
) ")"
; ";"
expression_statement
assignment_expression
identifier "impr_a_select_menu"
= "="
call_expression
identifier "g_menu_new"
argument_list
( "("
) ")"
; ";"
expression_statement (+37 nodes collapsed)
expression_statement (+35 nodes collapsed)
expression_statement
call_expression
identifier "submenu_append_unref"
argument_list
( "("
identifier "select_menu"
, ","
identifier "buf"
, ","
call_expression
identifier "G_MENU_MODEL"
argument_list
( "("
identifier "impr_a_select_menu"
) ")"
) ")"
; ";"
expression_statement
assignment_expression
identifier "wndr_a_select_menu"
= "="
call_expression
identifier "g_menu_new"
argument_list
( "("
) ")"
; ";"
expression_statement (+37 nodes collapsed)
expression_statement (+35 nodes collapsed)
expression_statement
call_expression
identifier "submenu_append_unref"
argument_list
( "("
identifier "select_menu"
, ","
identifier "buf"
, ","
call_expression
identifier "G_MENU_MODEL"
argument_list
( "("
identifier "wndr_a_select_menu"
) ")"
) ")"
; ";"
expression_statement
assignment_expression
identifier "governor_select_menu"
= "="
call_expression
identifier "create_governor_menu"
argument_list
( "("
identifier "cityrep_group"
, ","
false "FALSE"
) ")"
; ";"
expression_statement (+25 nodes collapsed)
return_statement
return "return"
identifier "select_menu"
; ";"
} "}"
comment "/***********************************************************"...
comment "/**\n Recreates production menu\n****************************"...
function_definition (+168 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Update the value displayed by the \"total buy cost\" lab"...
function_definition (+319 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Update city report button sensitivity and total buy co"...
function_definition (+164 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Clear the worklist in one selected city in the city re"...
function_definition (+92 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Called when the \"clear worklist\" menu item is activate"...
function_definition (+84 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n After a selection rectangle is defined, make the citie"...
function_definition (+148 nodes collapsed)
comment "/***********************************************************"...
comment "/**\n Toggle a city's hilited status.\n**********************"...
function_definition (+104 nodes collapsed)