58#define ML_COL_SUBTYPE 4
66#define ML_STORE_SIZE 9
102 _(
"Modpack installation in progress.\nAre you sure you want to quit?"));
286 _(
"Another download already active"));
299 _(
"Failed to start downloader"));
365 const char *version,
const char *
license,
460 _(
"Name"), renderer,
"text", 0,
465 _(
"Version"), renderer,
"text", 1,
470 _(
"Installed"), renderer,
"text", 2,
488 _(
"License"), renderer,
"text", 5,
493 _(
"URL"), renderer,
"text", 6,
575 _(
"This modpack installer accepts the standard Gtk command-line options\n"
576 "after '--'. See the Gtk documentation.\n\n"));
597 _(
"Freeciv modpack installer (gtk3)"));
600#ifndef FREECIV_MSWINDOWS
626 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 select_from_list(GtkTreeSelection *select, gpointer data)
static GtkListStore * main_store
static gboolean versionlist_update_main_thread(gpointer user_data)
static void modinst_quit(void)
static void pbar_callback(int downloaded, int max)
static void URL_return(GtkEntry *w, gpointer data)
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 void pbar_dl_thread(int current, int max)
static void msg_callback(const char *msg)
static GtkWidget * main_list
static void versionlist_update_dl_thread(void)
static gboolean pbar_main_thread(gpointer user_data)
static gpointer download_thread(gpointer data)
static void modinst_setup_widgets(void)
int fc_snprintf(char *str, size_t n, const char *format,...)
const char * fc_git_revision(void)
const char * word_version(void)