![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <mpgui_qt.h>
Inheritance diagram for mpgui:
Collaboration diagram for mpgui:Public Slots | |
| void | display_msg (const QString &msg) |
| Display status message. More... | |
| void | progress (int downloaded, int max) |
| Update progress bar. More... | |
| void | refresh_list_versions () |
| Refresh display of modpack list modpack versions. More... | |
Signals | |
| void | display_msg_thr_signal (QString msg) |
| void | progress_thr_signal (int downloaded, int max) |
| void | refresh_list_versions_thr_signal () |
Public Member Functions | |
| void | setup (QWidget *central, struct fcmp_params *fcmp) |
| Setup GUI object. More... | |
| void | display_msg_thr (const QString &msg) |
| Display status message from another thread. More... | |
| void | progress_thr (int downloaded, int max) |
| Update progress bar from another thread. More... | |
| void | setup_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... | |
| void | refresh_list_versions_thr () |
| Refresh display of modpack list modpack versions from another thread. More... | |
Private Slots | |
| void | URL_given () |
| User entered URL. More... | |
| void | row_selected (int, int) |
| User activated another table row. More... | |
| void | row_download (const QModelIndex &) |
| User activated another table row. More... | |
Private Attributes | |
| QLineEdit * | URLedit |
| QLabel * | msg_dspl |
| QProgressBar * | bar |
| QTableWidget * | mplist_table |
Definition at line 44 of file mpgui_qt.h.
|
slot |
Display status message.
Definition at line 246 of file mpgui_qt.cpp.
Referenced by gui_download_modpack(), main(), msg_callback(), and setup().
| void mpgui::display_msg_thr | ( | const QString & | msg | ) |
Display status message from another thread.
Definition at line 257 of file mpgui_qt.cpp.
Referenced by msg_callback_thr().
|
signal |
Referenced by display_msg_thr(), and setup().
|
slot |
| void mpgui::progress_thr | ( | int | downloaded, |
| int | max | ||
| ) |
Update progress bar from another thread.
Definition at line 274 of file mpgui_qt.cpp.
Referenced by progress_callback_thr().
|
signal |
Referenced by progress_thr(), and setup().
|
slot |
Refresh display of modpack list modpack versions.
Definition at line 305 of file mpgui_qt.cpp.
Referenced by setup().
| void mpgui::refresh_list_versions_thr | ( | ) |
Refresh display of modpack list modpack versions from another thread.
Definition at line 331 of file mpgui_qt.cpp.
Referenced by mpqt_worker::run().
|
signal |
Referenced by refresh_list_versions_thr(), and setup().
|
privateslot |
User activated another table row.
Definition at line 417 of file mpgui_qt.cpp.
Referenced by setup().
|
privateslot |
User activated another table row.
Definition at line 407 of file mpgui_qt.cpp.
Referenced by setup().
| void mpgui::setup | ( | QWidget * | central, |
| struct fcmp_params * | fcmp | ||
| ) |
| void mpgui::setup_list | ( | const QString & | name, |
| const QUrl & | url, | ||
| const QString & | version, | ||
| const QString & | license, | ||
| enum modpack_type | type, | ||
| const QString & | subtype, | ||
| const QString & | notes | ||
| ) |
Build main modpack list view.
Definition at line 339 of file mpgui_qt.cpp.
Referenced by setup_modpack_list().
|
privateslot |
User entered URL.
Definition at line 300 of file mpgui_qt.cpp.
Referenced by row_download(), and setup().
|
private |
Definition at line 75 of file mpgui_qt.h.
Referenced by progress(), and setup().
|
private |
Definition at line 76 of file mpgui_qt.h.
Referenced by refresh_list_versions(), row_download(), row_selected(), setup(), and setup_list().
|
private |
Definition at line 74 of file mpgui_qt.h.
Referenced by display_msg(), and setup().
|
private |
Definition at line 73 of file mpgui_qt.h.
Referenced by row_download(), row_selected(), setup(), and URL_given().