13 #include <QMainWindow>
14 #include <QPixmapCache>
15 #include <QStackedWidget>
31 class QSocketNotifier;
39 class tileset_debugger;
96 enum client_pages
page;
111 QWidget *
pages[
static_cast<int>(PAGE_GAME) + 2];
void load_modpack()
Load the modpack-installer from the start menu.
QStringList status_bar_queue
QSocketNotifier * server_notifier
trade_generator trade_gen
void closing()
Called when fc_client is going to quit.
void closeEvent(QCloseEvent *event) override
Closes main window.
~fc_client() override
Destructor.
QGridLayout * pages_layout[PAGE_COUNT]
void timerEvent(QTimerEvent *) override
Timer event handling.
choice_dialog * opened_dialog
void create_cursors()
Setup cursors.
void read_settings()
Loads qt-specific options.
choice_dialog * get_diplo_dialog()
Get current diplo dialog.
enum client_pages current_page()
Returns currently open page.
QCursor * fc_cursors[CURSOR_LAST][NUM_CURSOR_FRAMES]
bool eventFilter(QObject *obj, QEvent *event) override
Used to keep track of the size and location of the chat widget.
QStackedLayout * central_layout
void keyCaught(QKeyEvent *e)
void write_settings()
Save qt-specific options.
void slot_disconnect()
Disconnect from server and return to MAIN PAGE.
void clear_status_bar()
Clears status bar or shows next message in queue if exists.
QLabel * status_bar_label
bool send_new_aifill_to_server
void add_server_source(QIODevice *socket)
Add notifier for server input.
void switch_page(int i)
Switch from one client page to another.
QWidget * pages[static_cast< int >(PAGE_GAME)+2]
void create_loading_page()
Creates page LOADING, showing label with Loading text.
void set_diplo_dialog(choice_dialog *widget)
Set current diplo dialog.
void fc_main(QApplication *)
This is not called simply 'fc_client::main()', since SDL includes ould sometimes cause 'main' to be c...
void set_status_bar(const QString &str, int timeout=20000)
Sets application status bar for given time in miliseconds.
void server_input()
There is input from server.
void start_tutorial()
start tutorial
void start_from_file(const QString &file)
start from save file
void delete_cursors()
Deletes cursors.
bool is_closing()
Returns status if fc_client is being closed.
void start_new_game()
spawn a server, if there isn't one, using the default settings.
void minimize()
Slot for minimizing freeciv window via corner widget.
void maximize()
Slot for maximizing freeciv window via corner widget.
void close_fc()
Slot for closing freeciv via corner widget.
fc_corner(QMainWindow *qmw)
Contructor for corner widget (used for menubar)
void popup_client_options()
Popups client options.
class fc_client * king()
Return fc_client instance.
QByteArray help_splitter1
Qt::SortOrder player_report_sort
Qt::SortOrder city_report_sort
#define NUM_CURSOR_FRAMES