Freeciv21
Develop your civilization from humble roots to a global empire
mpgui Class Reference

#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 &notes)
 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
 

Detailed Description

Definition at line 44 of file mpgui_qt.h.

Member Function Documentation

◆ display_msg

void mpgui::display_msg ( const QString &  msg)
slot

Display status message.

Definition at line 246 of file mpgui_qt.cpp.

Referenced by gui_download_modpack(), main(), msg_callback(), and setup().

◆ display_msg_thr()

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().

◆ display_msg_thr_signal

void mpgui::display_msg_thr_signal ( QString  msg)
signal

Referenced by display_msg_thr(), and setup().

◆ progress

void mpgui::progress ( int  downloaded,
int  max 
)
slot

Update progress bar.

Definition at line 265 of file mpgui_qt.cpp.

Referenced by setup().

◆ progress_thr()

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().

◆ progress_thr_signal

void mpgui::progress_thr_signal ( int  downloaded,
int  max 
)
signal

Referenced by progress_thr(), and setup().

◆ refresh_list_versions

void mpgui::refresh_list_versions ( )
slot

Refresh display of modpack list modpack versions.

Definition at line 305 of file mpgui_qt.cpp.

Referenced by setup().

◆ refresh_list_versions_thr()

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().

◆ refresh_list_versions_thr_signal

void mpgui::refresh_list_versions_thr_signal ( )
signal

Referenced by refresh_list_versions_thr(), and setup().

◆ row_download

void mpgui::row_download ( const QModelIndex &  index)
privateslot

User activated another table row.

Definition at line 417 of file mpgui_qt.cpp.

Referenced by setup().

◆ row_selected

void mpgui::row_selected ( int  row,
int  column 
)
privateslot

User activated another table row.

Definition at line 407 of file mpgui_qt.cpp.

Referenced by setup().

◆ setup()

void mpgui::setup ( QWidget *  central,
struct fcmp_params fcmp 
)

Setup GUI object.

Definition at line 165 of file mpgui_qt.cpp.

Referenced by main().

◆ setup_list()

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().

◆ URL_given

void mpgui::URL_given ( )
privateslot

User entered URL.

Definition at line 300 of file mpgui_qt.cpp.

Referenced by row_download(), and setup().

Member Data Documentation

◆ bar

QProgressBar* mpgui::bar
private

Definition at line 75 of file mpgui_qt.h.

Referenced by progress(), and setup().

◆ mplist_table

QTableWidget* mpgui::mplist_table
private

Definition at line 76 of file mpgui_qt.h.

Referenced by refresh_list_versions(), row_download(), row_selected(), setup(), and setup_list().

◆ msg_dspl

QLabel* mpgui::msg_dspl
private

Definition at line 74 of file mpgui_qt.h.

Referenced by display_msg(), and setup().

◆ URLedit

QLineEdit* mpgui::URLedit
private

Definition at line 73 of file mpgui_qt.h.

Referenced by row_download(), row_selected(), setup(), and URL_given().