Freeciv-3.3
Loading...
Searching...
No Matches
cma_fe.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 2001 - R. Falke
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)
6 any later version.
7
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***********************************************************************/
13
14#ifndef FC__GTK_CMA_H
15#define FC__GTK_CMA_H
16
17#include <gtk/gtk.h>
18
19/* common */
20#include "fc_types.h"
21
22/* client/agents */
23#include "cma_core.h"
24
30
31struct cma_dialog {
32 struct city *pcity;
47 int id; /* Needed to pass a preset_index */
48};
49
50void cma_fe_init(void);
51void cma_fe_done(void);
52struct cma_dialog *create_cma_dialog(struct city *pcity, bool tiny);
53void close_cma_dialog(struct city *pcity);
54void refresh_cma_dialog(struct city *pcity, enum cma_refresh refresh);
55
56#endif /* FC__GTK_CMA_H */
char * incite_cost
Definition comments.c:76
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int const struct action *paction struct unit struct city * pcity
Definition dialogs_g.h:78
@ O_LAST
Definition fc_types.h:101
void close_cma_dialog(struct city *pcity)
Definition cma_fe.c:104
struct cma_dialog * create_cma_dialog(struct city *pcity, bool tiny)
Definition cma_fe.c:214
void refresh_cma_dialog(struct city *pcity, enum cma_refresh refresh)
Definition cma_fe.c:471
void cma_fe_init(void)
Definition cma_fe.c:88
void cma_fe_done(void)
Definition cma_fe.c:96
cma_refresh
Definition cma_fe.h:25
@ DONT_REFRESH_HSCALES
Definition cma_fe.h:28
@ REFRESH_ALL
Definition cma_fe.h:26
@ DONT_REFRESH_SELECT
Definition cma_fe.h:27
Definition city.h:317
GtkWidget * preset_list
Definition cma_fe.h:36
GtkWidget * active_command
Definition cma_fe.h:40
GtkWidget * factor[O_LAST+1]
Definition cma_fe.h:44
GtkWidget * shell
Definition cma_fe.h:33
GListStore * store
Definition cma_fe.h:46
GtkWidget * happy_button
Definition cma_fe.h:42
GtkWidget * del_preset_command
Definition cma_fe.h:39
GtkWidget * growth_button
Definition cma_fe.h:43
GtkWidget * result_label
Definition cma_fe.h:37
GtkWidget * add_preset_command
Definition cma_fe.h:38
GtkWidget * minimal_surplus[O_LAST]
Definition cma_fe.h:41
GtkWidget * name_shell
Definition cma_fe.h:34
GtkWidget * preset_remove_shell
Definition cma_fe.h:35
int id
Definition cma_fe.h:47
GtkSingleSelection * selection
Definition cma_fe.h:45
struct city * pcity
Definition cma_fe.h:32