22#include <gdk/gdkkeysyms.h>
272 "use-underline",
TRUE,
273 "mnemonic-widget",
list,
274 "label",
_(
"_Worklists:"),
275 "xalign", 0.0,
"yalign", 0.5,
NULL);
995 static const char *
titles[] =
996 {
N_(
"Type"),
N_(
"Name"),
N_(
"Info"),
N_(
"Cost"),
N_(
"Turns") };
1057 GtkWidget *src_view, *dst_view, *label, *button;
1110 "use-underline",
TRUE,
1112 "label",
_(
"Source _Tasks:"),
1113 "xalign", 0.0,
"yalign", 0.5,
NULL);
1203 "use-underline",
TRUE,
1205 "label",
_(
"Target _Worklist:"),
1206 "xalign", 0.0,
"yalign", 0.5,
NULL);
#define city_owner(_pcity_)
void get_city_dialog_production_row(char *buf[], size_t column_size, struct universal *target, struct city *pcity)
bool city_set_queue(struct city *pcity, const struct worklist *pqueue)
int city_change_production(struct city *pcity, struct universal *target)
void city_get_queue(struct city *pcity, struct worklist *pqueue)
bool can_client_issue_orders(void)
int collect_eventually_buildable_targets(struct universal *targets, struct city *pcity, bool advanced_tech)
void name_and_sort_items(struct universal *targets, int num_targets, struct item *items, bool show_cost, struct city *pcity)
cid cid_encode(struct universal target)
struct universal cid_decode(cid id)
#define MAX_NUM_PRODUCTION_TARGETS
static struct fc_sockaddr_list * list
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
static struct editor_state * editor
struct global_worklist * global_worklist_by_id(int id)
bool global_worklist_set(struct global_worklist *pgwl, const struct worklist *pwl)
const char * global_worklist_name(const struct global_worklist *pgwl)
int global_worklist_id(const struct global_worklist *pgwl)
void global_worklist_destroy(struct global_worklist *pgwl)
const struct worklist * global_worklist_get(const struct global_worklist *pgwl)
struct global_worklist * global_worklist_new(const char *name)
void global_worklist_set_name(struct global_worklist *pgwl, const char *name)
#define global_worklists_iterate(pgwl)
#define global_worklists_iterate_end
#define GUI_GTK_OPTION(optname)
GtkWidget * icon_label_button_new(const gchar *icon_name, const gchar *label_text)
GtkWidget * gtk_aux_menu_bar_new(void)
void setup_dialog(GtkWidget *shell, GtkWidget *parent)
void intl_slist(int n, const char **s, bool *done)
void popup_help_dialog_string(const char *item)
void popup_help_dialog_typed(const char *item, enum help_page_type htype)
static struct gui_dialog * shell
void free_sprite(struct sprite *s)
struct sprite * sprite_scale(struct sprite *src, int new_w, int new_h)
GdkPixbuf * sprite_get_pixbuf(struct sprite *sprite)
void sprite_get_bounding_box(struct sprite *sprite, int *start_x, int *start_y, int *end_x, int *end_y)
static gboolean dst_dnd_callback(GtkWidget *w, GdkDragContext *context, struct worklist_data *ptr)
static void dst_selection_callback(GtkTreeSelection *selection, gpointer data)
static void worklists_response(GtkWidget *w, gint response)
void update_worklist_report_dialog(void)
static void queue_remove(struct worklist_data *ptr)
static GtkWidget * get_worklist(int global_worklist_id)
static void reset_global_worklist(GtkWidget *editor, struct global_worklist *pgwl)
static void future_callback(GtkToggleButton *toggle, gpointer data)
void blank_max_unit_size(void)
static void src_selection_callback(GtkTreeSelection *selection, gpointer data)
static void help_callback(GtkWidget *w, gpointer data)
static GtkTargetEntry wl_dnd_targets[]
static void src_row_callback(GtkTreeView *view, GtkTreePath *path, GtkTreeViewColumn *col, gpointer data)
static void dst_row_callback(GtkTreeView *view, GtkTreePath *path, GtkTreeViewColumn *col, gpointer data)
static void delete_worklist(int global_worklist_id)
void refresh_worklist(GtkWidget *editor)
void add_worklist_dnd_target(GtkWidget *w)
static gboolean src_key_press_callback(GtkWidget *w, GdkEventKey *ev, gpointer data)
static void popdown_worklist(struct global_worklist *pgwl)
static GtkWidget * worklists_shell
@ TARGET_GTK_TREE_MODEL_ROW
static void popup_worklist(struct global_worklist *pgwl)
static GtkWidget * worklists_list
static void queue_bubble_up(struct worklist_data *ptr)
static GtkWidget * create_worklists_report(void)
static void popup_add_menu(GtkMenuShell *menu, gpointer data)
static void cell_edited(GtkCellRendererText *cell, const gchar *spath, const gchar *text, gpointer data)
static void cell_render_func(GtkTreeViewColumn *col, GtkCellRenderer *rend, GtkTreeModel *model, GtkTreeIter *it, gpointer data)
static gboolean dst_key_press_callback(GtkWidget *w, GdkEventKey *ev, gpointer data)
static void worklist_destroy(GtkWidget *editor, gpointer data)
static void worklists_destroy_callback(GtkWidget *w, gpointer data)
static void change_callback(GtkWidget *w, gpointer data)
void reset_city_worklist(GtkWidget *editor, struct city *pcity)
static void queue_insert(struct worklist_data *ptr, bool prepend)
static void menu_item_callback(GtkMenuItem *item, struct worklist_data *ptr)
static void populate_view(GtkTreeView *view, struct city **ppcity, GtkTreeViewColumn **pcol)
static void insert_worklist(int global_worklist_id, GtkWidget *editor)
static void queue_append(struct worklist_data *ptr)
GtkWidget * create_worklist(void)
static void commit_worklist(struct worklist_data *ptr)
static void queue_bubble_down(struct worklist_data *ptr)
static int max_unit_width
static int max_unit_height
static void update_max_unit_size(void)
static void queue_prepend(struct worklist_data *ptr)
static GtkListStore * worklists_store
void popup_worklists_report(void)
#define HELP_WORKLIST_EDITOR_ITEM
bool is_improvement_redundant(const struct city *pcity, const struct impr_type *pimprove)
bool is_great_wonder(const struct impr_type *pimprove)
const char * improvement_name_translation(const struct impr_type *pimprove)
#define fc_assert(condition)
GtkTreeViewColumn * dst_col
GtkTreeSelection * dst_selection
GtkTreeSelection * src_selection
GtkTreeViewColumn * src_col
struct universal entries[MAX_LEN_WORKLIST]
const char * production_help(const struct universal *uni, char *buf, size_t bufsize)
struct sprite * get_building_sprite(const struct tileset *t, const struct impr_type *pimprove)
struct sprite * get_unittype_sprite(const struct tileset *t, const struct unit_type *punittype, enum unit_activity activity, enum direction8 facing)
const struct unit_type * utype
const struct impr_type * building
const char * utype_name_translation(const struct unit_type *punittype)
#define unit_type_iterate(_p)
#define unit_type_iterate_end
void worklist_copy(struct worklist *dst, const struct worklist *src)
void worklist_init(struct worklist *pwl)
bool worklist_append(struct worklist *pwl, const struct universal *prod)
int worklist_length(const struct worklist *pwl)