Freeciv-3.1
|
#include <stdlib.h>
#include <gtk/gtk.h>
#include "fc_cmdline.h"
#include "fciconv.h"
#include "fcintl.h"
#include "log.h"
#include "mem.h"
#include "version.h"
#include "download.h"
#include "mpcmdline.h"
#include "mpdb.h"
#include "modinst.h"
Go to the source code of this file.
Data Structures | |
struct | msg_data |
struct | pbar_data |
Macros | |
#define | ML_COL_NAME 0 |
#define | ML_COL_VER 1 |
#define | ML_COL_INST 2 |
#define | ML_COL_TYPE 3 |
#define | ML_COL_SUBTYPE 4 |
#define | ML_COL_LIC 5 |
#define | ML_COL_URL 6 |
#define | ML_COL_COUNT 7 |
#define | ML_TYPE 7 |
#define | ML_NOTES 8 |
#define | ML_STORE_SIZE 9 |
Functions | |
static gboolean | quit_dialog_callback (void) |
static void | modinst_quit (void) |
static void | quit_dialog_response (GtkWidget *dialog, gint response) |
static void | msg_callback (const char *msg) |
static void | pbar_callback (int downloaded, int max) |
static gboolean | msg_main_thread (gpointer user_data) |
static void | msg_dl_thread (const char *msg) |
static gboolean | pbar_main_thread (gpointer user_data) |
static void | pbar_dl_thread (int current, int max) |
static gboolean | versionlist_update_main_thread (gpointer user_data) |
static void | versionlist_update_dl_thread (void) |
static gpointer | download_thread (gpointer data) |
static void | gui_download_modpack (const char *URL) |
static void | install_clicked (GtkWidget *w, gpointer data) |
static void | URL_return (GtkEntry *w, gpointer data) |
static gboolean | query_main_list_tooltip_cb (GtkWidget *widget, gint x, gint y, gboolean keyboard_tip, GtkTooltip *tooltip, 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 | select_from_list (GtkTreeSelection *select, gpointer data) |
static void | modinst_setup_widgets (GtkWidget *toplevel) |
int | main (int argc, char *argv[]) |
Variables | |
static GtkWidget * | statusbar |
static GtkWidget * | progressbar |
static GtkWidget * | main_list |
static GtkListStore * | main_store |
static GtkWidget * | URL_input |
static gboolean | downloading = FALSE |
struct fcmp_params | fcmp |
#define ML_COL_COUNT 7 |
Definition at line 62 of file mpgui_gtk3.c.
#define ML_COL_INST 2 |
Definition at line 56 of file mpgui_gtk3.c.
#define ML_COL_LIC 5 |
Definition at line 59 of file mpgui_gtk3.c.
#define ML_COL_NAME 0 |
Definition at line 54 of file mpgui_gtk3.c.
#define ML_COL_SUBTYPE 4 |
Definition at line 58 of file mpgui_gtk3.c.
#define ML_COL_TYPE 3 |
Definition at line 57 of file mpgui_gtk3.c.
#define ML_COL_URL 6 |
Definition at line 60 of file mpgui_gtk3.c.
#define ML_COL_VER 1 |
Definition at line 55 of file mpgui_gtk3.c.
#define ML_NOTES 8 |
Definition at line 65 of file mpgui_gtk3.c.
#define ML_STORE_SIZE 9 |
Definition at line 66 of file mpgui_gtk3.c.
#define ML_TYPE 7 |
Definition at line 64 of file mpgui_gtk3.c.
|
static |
Entry point for downloader thread
Definition at line 255 of file mpgui_gtk3.c.
Referenced by gui_download_modpack().
|
static |
Download modpack, display error message dialogs
Definition at line 279 of file mpgui_gtk3.c.
Referenced by install_clicked(), main(), mpgui::URL_given(), and URL_return().
|
static |
Install modpack button clicked
Definition at line 309 of file mpgui_gtk3.c.
Referenced by modinst_setup_widgets().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Entry point of the freeciv-modpack program
Definition at line 559 of file mpgui_gtk3.c.
|
static |
freeciv-modpack quit
Definition at line 71 of file mpgui_gtk3.c.
Referenced by quit_dialog_callback(), and quit_dialog_response().
|
static |
Build widgets
Definition at line 428 of file mpgui_gtk3.c.
|
static |
Progress indications from downloader
Definition at line 127 of file mpgui_gtk3.c.
Referenced by modinst_setup_widgets(), and msg_main_thread().
|
static |
Downloader thread message callback.
Definition at line 166 of file mpgui_gtk3.c.
Referenced by download_thread().
|
static |
Main thread handling of message sent from downloader thread.
Definition at line 151 of file mpgui_gtk3.c.
Referenced by msg_dl_thread().
|
static |
Progress indications from downloader
Definition at line 136 of file mpgui_gtk3.c.
Referenced by pbar_main_thread().
|
static |
Downloader thread progress bar callback.
Definition at line 197 of file mpgui_gtk3.c.
Referenced by download_thread().
|
static |
Main thread handling of progressbar update sent from downloader thread.
Definition at line 183 of file mpgui_gtk3.c.
Referenced by pbar_dl_thread().
|
static |
Callback for getting main list row tooltip
Definition at line 331 of file mpgui_gtk3.c.
Referenced by modinst_setup_widgets().
|
static |
Popups the quit dialog if download in progress
Definition at line 91 of file mpgui_gtk3.c.
Referenced by main().
|
static |
This is the response callback for the dialog with the message: Are you sure you want to quit?
Definition at line 80 of file mpgui_gtk3.c.
Referenced by quit_dialog_callback().
|
static |
Callback called when entry from main modpack list selected
Definition at line 410 of file mpgui_gtk3.c.
Referenced by modinst_setup_widgets().
|
static |
Build main modpack list view
Definition at line 364 of file mpgui_gtk3.c.
Referenced by modinst_setup_widgets().
|
static |
|
static |
Downloader thread requests versionlist update.
Definition at line 247 of file mpgui_gtk3.c.
Referenced by download_thread().
|
static |
Main thread handling of versionlist update requested by downloader thread
Definition at line 210 of file mpgui_gtk3.c.
Referenced by versionlist_update_dl_thread().
|
static |
Definition at line 44 of file mpgui_gtk3.c.
Referenced by download_thread(), gui_download_modpack(), and quit_dialog_callback().
struct fcmp_params fcmp |
Definition at line 46 of file mpgui_gtk3.c.
Referenced by download_thread(), main(), and modinst_setup_widgets().
|
static |
Definition at line 41 of file mpgui_gtk3.c.
Referenced by modinst_setup_widgets().
|
static |
Definition at line 42 of file mpgui_gtk3.c.
Referenced by modinst_setup_widgets(), setup_modpack_list(), and versionlist_update_main_thread().
|
static |
Definition at line 40 of file mpgui_gtk3.c.
Referenced by modinst_setup_widgets(), and pbar_callback().
|
static |
Definition at line 39 of file mpgui_gtk3.c.
Referenced by gui_download_modpack(), modinst_setup_widgets(), and msg_callback().
|
static |
Definition at line 43 of file mpgui_gtk3.c.
Referenced by modinst_setup_widgets(), and select_from_list().