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)
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 ***********************************************************************/
16 #include <X11/Intrinsic.h>
20 /* Indices for the menus. */
33 /* IDs for menu items */
38 MENU_GAME_MSG_OPTIONS
,
39 MENU_GAME_SAVE_SETTINGS
,
40 MENU_GAME_SERVER_OPTIONS
,
42 MENU_GAME_CLEAR_OUTPUT
,
46 MENU_GOVERNMENT_RATES
,
47 MENU_GOVERNMENT_FIND_CITY
,
48 MENU_GOVERNMENT_WORKLISTS
,
49 MENU_GOVERNMENT_REVOLUTION
,
50 /* MENU_GOVERNMENT_CHANGE is handled separately. */
52 MENU_VIEW_SHOW_MAP_GRID
,
53 MENU_VIEW_SHOW_NATIONAL_BORDERS
,
54 MENU_VIEW_SHOW_CITY_NAMES
,
55 MENU_VIEW_SHOW_CITY_GROWTH
,
56 MENU_VIEW_SHOW_CITY_PRODUCTIONS
,
57 MENU_VIEW_SHOW_TERRAIN
,
58 MENU_VIEW_SHOW_COASTLINE
,
60 MENU_VIEW_SHOW_IRRIGATION
,
63 MENU_VIEW_SHOW_RESOURCES
,
65 MENU_VIEW_SHOW_POLLUTION
,
66 MENU_VIEW_SHOW_CITIES
,
68 MENU_VIEW_SHOW_FOCUS_UNIT
,
69 MENU_VIEW_SHOW_FOG_OF_WAR
,
70 MENU_VIEW_CENTER_VIEW
,
72 MENU_ORDER_BUILD_CITY
,
85 MENU_ORDER_UNLOAD_TRANSPORTER
,
88 MENU_ORDER_WAKEUP_OTHERS
,
89 MENU_ORDER_AUTO_SETTLER
,
90 MENU_ORDER_AUTO_ATTACK
,
91 MENU_ORDER_AUTO_EXPLORE
,
92 MENU_ORDER_CONNECT_ROAD
,
93 MENU_ORDER_CONNECT_RAIL
,
94 MENU_ORDER_CONNECT_IRRIGATE
,
101 MENU_ORDER_BUILD_WONDER
,
102 MENU_ORDER_TRADE_ROUTE
,
103 MENU_ORDER_DIPLOMAT_DLG
,
105 MENU_ORDER_SELECT_SAME_TYPE
,
115 MENU_REPORT_TOP_CITIES
,
116 MENU_REPORT_MESSAGES
,
117 MENU_REPORT_DEMOGRAPHIC
,
118 MENU_REPORT_SPACESHIP
,
119 MENU_REPORT_ACHIEVEMENTS
,
125 MENU_HELP_CONNECTING
,
129 MENU_HELP_WORKLIST_EDITOR
,
134 MENU_HELP_IMPROVEMENTS
,
141 MENU_HELP_GOVERNMENT
,
143 MENU_HELP_SPACE_RACE
,
151 /* Shared menu IDs */
152 #define MENU_ORDER_PARADROP MENU_ORDER_POLLUTION
154 /* Initialize menus. */
155 void setup_menus(Widget parent_form
);
157 /* Determine whether menu item is active or not. */
158 int is_menu_item_active(enum MenuIndex menu
, enum MenuID id
);
160 #endif /* FC__MENU_H */