22#include <gdk/gdkkeysyms.h>
272 "use-underline",
TRUE,
273 "mnemonic-widget",
list,
274 "label",
_(
"_Worklists:"),
275 "xalign", 0.0,
"yalign", 0.5,
NULL);
1016 static const char *
titles[] =
1017 {
N_(
"Type"),
N_(
"Name"),
N_(
"Info"),
N_(
"Cost"),
N_(
"Turns") };
1127 GtkWidget *src_view, *dst_view, *label, *button;
1191 "use-underline",
TRUE,
1193 "label",
_(
"Source _Tasks:"),
1194 "xalign", 0.0,
"yalign", 0.5,
NULL);
1290 "use-underline",
TRUE,
1292 "label",
_(
"Target _Worklist:"),
1293 "xalign", 0.0,
"yalign", 0.5,
NULL);
1469 ptr->
pcity =
nullptr;
#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
static GtkWidget * source
#define GUI_GTK_OPTION(optname)
GtkWidget * icon_label_button_new(const gchar *icon_name, const gchar *label_text)
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 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 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
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 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)
void refresh_all_city_worklists(void)
GtkWidget * aux_menu_new(void)
#define menu_item_insert_unref(menu, index, item)
static void drag_begin(GtkDragSource *source, GdkDrag *drag, gpointer *data)
static gboolean wl_right_button_up(GtkGestureClick *gesture, int n_press, double x, double y)
static void wl_help_from_iter(GtkTreeModel *model, GtkTreeIter *it)
static GMenu * create_wl_menu(struct worklist_data *ptr)
static GdkContentProvider * drag_prepare(GtkDragSource *source, double x, double y, gpointer data)
static gboolean drag_drop(GtkDropTarget *target, const GValue *value, double x, double y, gpointer data)
#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]
int fc_snprintf(char *str, size_t n, const char *format,...)
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)