Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/gui-gtk-3.22/cma_fe.h Source File

Freeciv-3.2

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
25 enum cma_refresh {
26 REFRESH_ALL,
27 DONT_REFRESH_SELECT,
28 DONT_REFRESH_HSCALES
29};
30
31 struct cma_dialog {
32 struct city *pcity;
33 GtkWidget *shell;
34 GtkWidget *name_shell;
35 GtkWidget *preset_remove_shell;
36 GtkWidget *preset_list;
37 GtkWidget *result_label;
38 GtkWidget *add_preset_command;
39 GtkWidget *del_preset_command;
40 GtkWidget *active_command;
41 GtkWidget *minimal_surplus[O_LAST];
42 GtkWidget *happy_button;
43 GtkWidget *growth_button;
44 GtkWidget *factor[O_LAST + 1];
45 GtkTreeSelection *selection;
46 GtkListStore *store;
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 */
cma_core.h
incite_cost
char * incite_cost
Definition comments.c:74
fc_types.h
O_LAST
@ O_LAST
Definition fc_types.h:101
close_cma_dialog
void close_cma_dialog(struct city *pcity)
Definition cma_fe.c:104
create_cma_dialog
struct cma_dialog * create_cma_dialog(struct city *pcity, bool tiny)
Definition cma_fe.c:214
refresh_cma_dialog
void refresh_cma_dialog(struct city *pcity, enum cma_refresh refresh)
Definition cma_fe.c:471
cma_fe_init
void cma_fe_init(void)
Definition cma_fe.c:88
cma_fe_done
void cma_fe_done(void)
Definition cma_fe.c:96
cma_refresh
cma_refresh
Definition cma_fe.h:25
DONT_REFRESH_HSCALES
@ DONT_REFRESH_HSCALES
Definition cma_fe.h:28
REFRESH_ALL
@ REFRESH_ALL
Definition cma_fe.h:26
DONT_REFRESH_SELECT
@ DONT_REFRESH_SELECT
Definition cma_fe.h:27
city
Definition city.h:320
cma_dialog
Definition cma_fe.h:31
cma_dialog::preset_list
GtkWidget * preset_list
Definition cma_fe.h:36
cma_dialog::active_command
GtkWidget * active_command
Definition cma_fe.h:40
cma_dialog::factor
GtkWidget * factor[O_LAST+1]
Definition cma_fe.h:44
cma_dialog::shell
GtkWidget * shell
Definition cma_fe.h:33
cma_dialog::happy_button
GtkWidget * happy_button
Definition cma_fe.h:42
cma_dialog::del_preset_command
GtkWidget * del_preset_command
Definition cma_fe.h:39
cma_dialog::growth_button
GtkWidget * growth_button
Definition cma_fe.h:43
cma_dialog::result_label
GtkWidget * result_label
Definition cma_fe.h:37
cma_dialog::add_preset_command
GtkWidget * add_preset_command
Definition cma_fe.h:38
cma_dialog::minimal_surplus
GtkWidget * minimal_surplus[O_LAST]
Definition cma_fe.h:41
cma_dialog::store
GtkListStore * store
Definition cma_fe.h:46
cma_dialog::name_shell
GtkWidget * name_shell
Definition cma_fe.h:34
cma_dialog::preset_remove_shell
GtkWidget * preset_remove_shell
Definition cma_fe.h:35
cma_dialog::id
int id
Definition cma_fe.h:47
cma_dialog::pcity
struct city * pcity
Definition cma_fe.h:32
cma_dialog::selection
GtkTreeSelection * selection
Definition cma_fe.h:45