62#define ML_COL_SUBTYPE 4
70#define ML_STORE_SIZE 9
113 _(
"Modpack installation in progress.\nAre you sure you want to quit?"));
298 _(
"Another download already active"));
311 _(
"Failed to start downloader"));
379 const char *version,
const char *
license,
476 _(
"Name"), renderer,
"text", 0,
481 _(
"Version"), renderer,
"text", 1,
486 _(
"Installed"), renderer,
"text", 2,
504 _(
"License"), renderer,
"text", 5,
509 _(
"URL"), renderer,
"text", 6,
580 _(
"Freeciv modpack installer (gtk4)"));
584#ifndef FREECIV_MSWINDOWS
643 log_fatal(
_(
"Failed to open graphical mode."));
const char * download_modpack(const char *URL, const struct fcmp_params *fcmp, dl_msg_callback mcb, dl_pb_callback pbcb)
const char * download_modpack_list(const struct fcmp_params *fcmp, modpack_list_setup_cb cb, dl_msg_callback mcb)
bool is_option(const char *option_name, char *option)
void cmdline_option_values_free(void)
void fc_fprintf(FILE *stream, const char *format,...) fc__attribute((__format__(__printf__
#define log_verbose(message,...)
#define log_fatal(message,...)
void load_install_info_lists(struct fcmp_params *fcmp)
#define DEFAULT_URL_START
int fcmp_parse_cmdline(int argc, char *argv[])
const char * mpdb_installed_version(const char *name, enum modpack_type type)
static void quit_dialog_response(GtkWidget *dialog, gint response)
static void msg_dl_thread(const char *msg)
int main(int argc, char *argv[])
static gboolean quit_dialog_callback(void)
static GtkWidget * statusbar
static gboolean query_main_list_tooltip_cb(GtkWidget *widget, gint x, gint y, gboolean keyboard_tip, GtkTooltip *tooltip, gpointer data)
static void quit_dialog_destroyed(GtkWidget *dialog, void *data)
static void select_from_list(GtkTreeSelection *select, gpointer data)
static GtkListStore * main_store
static gboolean versionlist_update_main_thread(gpointer user_data)
static void activate_gui(GtkApplication *app, gpointer data)
static GtkWidget * toplevel
static void modinst_quit(void)
static void pbar_callback(int downloaded, int max)
static void URL_return(GtkEntry *w, gpointer data)
static GtkWidget * quit_dialog
static GtkWidget * URL_input
static gboolean downloading
static GtkWidget * progressbar
static void gui_download_modpack(const char *URL)
static gboolean msg_main_thread(gpointer user_data)
static void install_clicked(GtkWidget *w, gpointer data)
static void setup_modpack_list(const char *name, const char *URL, const char *version, const char *license, enum modpack_type type, const char *subtype, const char *notes)
static GtkApplication * fcmp_app
static void pbar_dl_thread(int current, int max)
static void msg_callback(const char *msg)
static GtkWidget * main_list
static void modinst_setup_widgets(void)
static void versionlist_update_dl_thread(void)
static gboolean pbar_main_thread(gpointer user_data)
static gpointer download_thread(gpointer data)
int fc_snprintf(char *str, size_t n, const char *format,...)
const char * fc_git_revision(void)
const char * word_version(void)