Freeciv-3.1
|
#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 |
Functions | |
static struct cma_dialog * | get_cma_dialog (struct city *pcity) |
static void | update_cma_preset_list (struct cma_dialog *pdialog) |
static gboolean | cma_preset_key_pressed (GtkEventControllerKey *controller, guint keyval, guint keycode, GdkModifierType state, gpointer data) |
static void | cma_del_preset_callback (GtkWidget *w, gpointer data) |
static void | cma_preset_remove (struct cma_dialog *pdialog, int preset_index) |
static void | cma_preset_remove_response (GtkWidget *w, gint response, gpointer data) |
static void | cma_add_preset_callback (GtkWidget *w, gpointer data) |
static void | cma_preset_add_popup_callback (gpointer data, gint response, const char *input) |
static void | cma_active_callback (GtkWidget *w, gpointer data) |
static void | cma_activate_preset_callback (GtkTreeView *view, GtkTreePath *path, GtkTreeViewColumn *col, gpointer data) |
static void | hscale_changed (GtkWidget *get, gpointer data) |
static void | set_hscales (const struct cm_parameter *const parameter, struct cma_dialog *pdialog) |
void | cma_fe_init (void) |
void | cma_fe_done (void) |
void | close_cma_dialog (struct city *pcity) |
static void | cma_dialog_destroy_callback (GtkWidget *w, gpointer data) |
static gboolean | button_press_callback (GtkGestureClick *gesture, int n_press, double x, double y) |
static void | help_callback (GtkWidget *w, gpointer data) |
static void | cell_data_func (GtkTreeViewColumn *col, GtkCellRenderer *cell, GtkTreeModel *model, GtkTreeIter *it, gpointer data) |
struct cma_dialog * | create_cma_dialog (struct city *pcity, bool tiny) |
void | refresh_cma_dialog (struct city *pcity, enum cma_refresh refresh) |
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 |
|
static |
void close_cma_dialog | ( | struct city * | pcity | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
void cma_fe_done | ( | void | ) |
|
static |
|
static |
Key pressed in preset list
Definition at line 632 of file cma_fe.c.
Referenced by create_cma_dialog().
|
static |
|
static |
struct cma_dialog * create_cma_dialog | ( | struct city * | pcity, |
bool | tiny | ||
) |
Instantiates a new struct for each city_dialog window that is open.
|
static |
Return the cma_dialog for a given city.
|
static |
|
static |
void refresh_cma_dialog | ( | struct city * | pcity, |
enum cma_refresh | refresh | ||
) |
|
static |
|
static |