![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <fc_config.h>#include <QApplication>#include <QCloseEvent>#include <QHBoxLayout>#include <QHeaderView>#include <QLabel>#include <QLineEdit>#include <QMainWindow>#include <QMessageBox>#include <QProgressBar>#include <QPushButton>#include <QTableWidget>#include "fcintl.h"#include "version.h"#include "download.h"#include "modinst.h"#include "mpcmdline.h"#include "mpdb.h"#include "mpgui_qt_worker.h"#include "mpgui_qt.h"
Include dependency graph for mpgui_qt.cpp:Go to the source code of this file.
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_TYPE 7 |
| #define | ML_COL_COUNT 8 |
| #define | URL_LABEL_TEXT N_("Modpack URL") |
Functions | |
| static void | setup_modpack_list (const QString &name, const QUrl &url, const QString &version, const QString &license, enum modpack_type type, const QString &subtype, const QString ¬es) |
| Build main modpack list view. More... | |
| static void | msg_callback (const QString &msg) |
| Progress indications from downloader. More... | |
| static void | msg_callback_thr (const QString &msg) |
| Progress indications from downloader thread. More... | |
| static void | progress_callback_thr (int downloaded, int max) |
| Progress indications from downloader. More... | |
| static void | gui_download_modpack (const QString &URL) |
| Download modpack from given URL. More... | |
| int | main (int argc, char **argv) |
| Entry point for whole freeciv-mp-qt program. More... | |
Variables | |
| struct fcmp_params | fcmp |
| static mpgui * | gui |
| static mpqt_worker * | worker = nullptr |
| static int | mpcount = 0 |
| #define ML_COL_COUNT 8 |
Definition at line 63 of file mpgui_qt.cpp.
| #define ML_COL_INST 2 |
Definition at line 55 of file mpgui_qt.cpp.
| #define ML_COL_LIC 5 |
Definition at line 58 of file mpgui_qt.cpp.
| #define ML_COL_NAME 0 |
Definition at line 53 of file mpgui_qt.cpp.
| #define ML_COL_SUBTYPE 4 |
Definition at line 57 of file mpgui_qt.cpp.
| #define ML_COL_TYPE 3 |
Definition at line 56 of file mpgui_qt.cpp.
| #define ML_COL_URL 6 |
Definition at line 59 of file mpgui_qt.cpp.
| #define ML_COL_VER 1 |
Definition at line 54 of file mpgui_qt.cpp.
| #define ML_TYPE 7 |
Definition at line 61 of file mpgui_qt.cpp.
| #define URL_LABEL_TEXT N_("Modpack URL") |
|
static |
Download modpack from given URL.
Definition at line 282 of file mpgui_qt.cpp.
Referenced by mpgui::URL_given().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Entry point for whole freeciv-mp-qt program.
Definition at line 79 of file mpgui_qt.cpp.
|
static |
Progress indications from downloader.
Definition at line 144 of file mpgui_qt.cpp.
Referenced by main().
|
static |
Progress indications from downloader thread.
Definition at line 149 of file mpgui_qt.cpp.
Referenced by gui_download_modpack().
|
static |
Progress indications from downloader.
Definition at line 157 of file mpgui_qt.cpp.
Referenced by gui_download_modpack().
|
static |
| struct fcmp_params fcmp |
Definition at line 1 of file mpgui_qt.cpp.
Referenced by fcmp_parse_cmdline(), gui_download_modpack(), and main().
|
static |
Definition at line 47 of file mpgui_qt.cpp.
Referenced by mpqt_worker::download(), gui_download_modpack(), main(), msg_callback(), msg_callback_thr(), page_main::page_main(), page_network::page_network(), page_pregame::page_pregame(), page_scenario::page_scenario(), progress_callback_thr(), and setup_modpack_list().
|
static |
Definition at line 51 of file mpgui_qt.cpp.
Referenced by mpgui::refresh_list_versions(), and mpgui::setup_list().
|
static |
Definition at line 49 of file mpgui_qt.cpp.
Referenced by mpgui_main::closeEvent(), gui_download_modpack(), and main().