Freeciv-3.2
|
#include <gdk/gdkkeysyms.h>
#include "fcintl.h"
#include "log.h"
#include "mem.h"
#include "support.h"
#include "events.h"
#include "game.h"
#include "chatline_g.h"
#include "citydlg_g.h"
#include "client_main.h"
#include "cma_fec.h"
#include "messagewin_g.h"
#include "options.h"
#include "cityrep.h"
#include "dialogs.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "helpdlg.h"
#include "inputdlg.h"
#include "cma_fe.h"
#include "speclist.h"
Go to the source code of this file.
Macros | |
#define | BUFFER_SIZE 64 |
#define | SPECLIST_TAG dialog |
#define | SPECLIST_TYPE struct cma_dialog |
#define | dialog_list_iterate(dialoglist, pdialog) TYPED_LIST_ITERATE(struct cma_dialog, dialoglist, pdialog) |
#define | dialog_list_iterate_end LIST_ITERATE_END |
Variables | |
static struct dialog_list * | dialog_list |
static int | allow_refreshes = 1 |
#define dialog_list_iterate | ( | dialoglist, | |
pdialog | |||
) | TYPED_LIST_ITERATE(struct cma_dialog, dialoglist, pdialog) |
#define dialog_list_iterate_end LIST_ITERATE_END |
#define SPECLIST_TYPE struct cma_dialog |
|
static |
User has pressed button in cma dialog
Definition at line 143 of file cma_fe.c.
Referenced by create_cma_dialog().
|
static |
Cell data function for cma dialog
Definition at line 178 of file cma_fe.c.
Referenced by create_cma_dialog().
Only called when the city dialog is closed.
Definition at line 104 of file cma_fe.c.
Referenced by city_destroy_callback().
|
static |
Callback for selecting a preset from the preset view
Definition at line 544 of file cma_fe.c.
Referenced by button_press_callback(), button_press_callback(), and create_cma_dialog().
Activates/deactivates agent control.
Definition at line 705 of file cma_fe.c.
Referenced by refresh_cma_dialog().
Pops up a dialog to allow to name your new preset
Definition at line 568 of file cma_fe.c.
Referenced by cma_preset_key_pressed(), cma_preset_key_pressed_callback(), and create_cma_dialog().
Initialize cma front end system
Definition at line 88 of file cma_fe.c.
Referenced by activate_gui(), and ui_main().
|
static |
Callback for the add_preset popup
Definition at line 591 of file cma_fe.c.
Referenced by cma_add_preset_callback().
|
static |
Key pressed in preset list
Definition at line 615 of file cma_fe.c.
Referenced by create_cma_dialog().
|
static |
Pops up a dialog to remove a preset
Definition at line 659 of file cma_fe.c.
Referenced by cma_del_preset_callback(), cma_preset_key_pressed(), and cma_preset_key_pressed_callback().
Callback for the remove_preset popup
Definition at line 684 of file cma_fe.c.
Referenced by cma_preset_remove().
struct cma_dialog * create_cma_dialog | ( | struct city * | pcity, |
bool | tiny | ||
) |
Instantiates a new struct for each city_dialog window that is open.
Definition at line 214 of file cma_fe.c.
Referenced by create_and_append_cma_page().
|
static |
Return the cma_dialog for a given city.
Definition at line 129 of file cma_fe.c.
Referenced by close_cma_dialog(), and refresh_cma_dialog().
Callback if we moved the sliders.
Definition at line 745 of file cma_fe.c.
Referenced by create_cma_dialog().
void refresh_cma_dialog | ( | struct city * | pcity, |
enum cma_refresh | refresh | ||
) |
Refreshes the cma dialog
Definition at line 471 of file cma_fe.c.
Referenced by cma_preset_add_popup_callback(), cma_preset_remove_response(), hscale_changed(), and real_city_dialog_refresh().
|
static |
Called to adjust the sliders when a preset is selected notice that we don't want to call update_result here.
Definition at line 724 of file cma_fe.c.
Referenced by refresh_cma_dialog().
|
static |
Fills in the preset list
Definition at line 522 of file cma_fe.c.
Referenced by cma_preset_add_popup_callback(), cma_preset_remove_response(), and create_cma_dialog().
|
static |
Definition at line 60 of file cma_fe.c.
Referenced by hscale_changed(), and set_hscales().
|
static |
Definition at line 58 of file cma_fe.c.
Referenced by cma_dialog_destroy_callback(), cma_fe_done(), cma_fe_init(), create_cma_dialog(), and get_cma_dialog().