|
Freeciv-3.1
|
#include <QAction>#include <QApplication>#include <QCheckBox>#include <QDateTime>#include <QFileDialog>#include <QGridLayout>#include <QHeaderView>#include <QLineEdit>#include <QPainter>#include <QSplitter>#include <QStackedWidget>#include <QTableWidget>#include <QTextEdit>#include <QTreeWidget>#include "game.h"#include "version.h"#include "client_main.h"#include "connectdlg_common.h"#include "colors.h"#include "dialogs.h"#include "fc_client.h"#include "pages.h"#include "plrdlg.h"#include "qtg_cxxside.h"#include "sidebar.h"#include "sprite.h"#include "voteinfo_bar.h"#include "repodlgs_g.h"#include "cityrep_g.h"Go to the source code of this file.
Functions | |
| const char * | science_dialog_text (void) |
| const char * | get_bulb_tooltip (void) |
| const char * | get_global_warming_tooltip (void) |
| const char * | get_nuclear_winter_tooltip (void) |
| const char * | get_government_tooltip (void) |
| const char * | get_info_label_text_popup (void) |
| const char * | get_info_label_text (bool) |
| const char * | text_happiness_cities (const struct city *pcity) |
| void | toggle_units_report (bool) |
| void | popup_shortcuts_dialog () |
| static void | center_next_enemy_city () |
| static void | center_next_player_city () |
| static void | center_next_player_capital () |
| static struct terrain * | char2terrain (char ch) |
| static void | cycle_enemy_units () |
| void | qtg_real_set_client_page (enum client_pages page) |
| void | qtg_set_rulesets (int num_rulesets, char **rulesets) |
| enum client_pages | qtg_get_current_client_page () |
| void | update_start_page (void) |
| void | server_scan_error (struct server_scan *scan, const char *message) |
Variables | |
| int | last_center_capital = 0 |
| int | last_center_player_city = 0 |
| int | last_center_enemy_city = 0 |
| static struct server_scan * | meta_scan |
| static struct server_scan * | lan_scan |
| static bool | holding_srv_list_mutex = false |
| static enum connection_state | connection_status |
| int | last_center_enemy = 0 |
|
static |
Centers next enemy city on view
Definition at line 2194 of file pages.cpp.
Referenced by fc_client::create_game_page().
|
static |
Centers next enemy capital
Definition at line 2266 of file pages.cpp.
Referenced by fc_client::create_game_page().
|
static |
Centers next player city on view
Definition at line 2230 of file pages.cpp.
Referenced by fc_client::create_game_page().
|
static |
|
static |
Center on next enemy unit
Definition at line 2321 of file pages.cpp.
Referenced by fc_client::create_game_page().
| const char * get_bulb_tooltip | ( | void | ) |
Get a tooltip text for the info panel research indicator. See client_research_sprite().
Not re-entrant
Definition at line 1400 of file text.c.
Referenced by update_info_label().
| const char * get_global_warming_tooltip | ( | void | ) |
Get a tooltip text for the info panel global warning indicator. See also client_warming_sprite().
Not re-entrant
Definition at line 1457 of file text.c.
Referenced by update_info_label().
| const char * get_government_tooltip | ( | void | ) |
Get a tooltip text for the info panel government indicator. See also government_by_number(...)->sprite.
Not re-entrant
Definition at line 1511 of file text.c.
Referenced by update_info_label().
| const char * get_info_label_text | ( | bool | moreinfo | ) |
Return the text for the label on the info panel. (This is traditionally shown to the left of the mapview.)
Clicking on this text should bring up the get_info_label_text_popup() text.
Not re-entrant
Definition at line 950 of file text.c.
Referenced by update_info_label(), and fc_client::update_sidebar_tooltips().
| const char * get_info_label_text_popup | ( | void | ) |
Return the text for the popup label on the info panel. (This is traditionally done as a popup whenever the regular info text is clicked on.)
Not re-entrant
Definition at line 1002 of file text.c.
Referenced by show_info_popup(), show_info_popup(), and fc_client::update_sidebar_tooltips().
| const char * get_nuclear_winter_tooltip | ( | void | ) |
Get a tooltip text for the info panel nuclear winter indicator. See also client_cooling_sprite().
Not re-entrant
Definition at line 1484 of file text.c.
Referenced by update_info_label().
|
extern |
Popups shortcut dialog
Definition at line 756 of file shortcuts.cpp.
Referenced by mr_menu::shortcut_options().
| enum client_pages qtg_get_current_client_page | ( | ) |
Returns current client page
Definition at line 120 of file pages.cpp.
Referenced by apply_notify_font(), qtg_real_conn_list_dialog_update(), and setup_gui_funcs().
| void qtg_real_set_client_page | ( | enum client_pages | page | ) |
Sets the "page" that the client should show. See also pages_g.h.
Definition at line 102 of file pages.cpp.
Referenced by qtg_close_connection_dialog(), qtg_real_conn_list_dialog_update(), and setup_gui_funcs().
| void qtg_set_rulesets | ( | int | num_rulesets, |
| char ** | rulesets | ||
| ) |
Set the list of available rulesets. The default ruleset should be "default", and if the user changes this then set_ruleset() should be called.
Definition at line 112 of file pages.cpp.
Referenced by setup_gui_funcs().
| const char * science_dialog_text | ( | void | ) |
Returns the text to display in the science dialog.
Not re-entrant
Definition at line 774 of file text.c.
Referenced by real_science_report_dialog_update(), science_report_update(), show_new_turn_info(), science_report::update_report(), and fc_client::update_sidebar_tooltips().
| void server_scan_error | ( | struct server_scan * | scan, |
| const char * | message | ||
| ) |
| const char * text_happiness_cities | ( | const struct city * | pcity | ) |
Describe city factors that affect happiness.
Not re-entrant
Definition at line 1931 of file text.c.
Referenced by show_happiness_popup(), show_happiness_popup(), city_dialog::update_citizens(), and fc_client::update_sidebar_tooltips().
|
extern |
Toggles units report, bool used for compatibility with sidebar callback
Definition at line 1862 of file repodlgs.cpp.
Referenced by fc_client::create_game_page(), and mr_menu::slot_show_units_report().
|
static |
|
static |
| int last_center_capital = 0 |
Definition at line 66 of file pages.cpp.
Referenced by qtg_start_turn().
| int last_center_enemy = 0 |
Definition at line 79 of file pages.cpp.
Referenced by cycle_enemy_units(), and qtg_start_turn().
| int last_center_enemy_city = 0 |
Definition at line 68 of file pages.cpp.
Referenced by center_next_enemy_city(), and qtg_start_turn().
| int last_center_player_city = 0 |
Definition at line 67 of file pages.cpp.
Referenced by center_next_player_capital(), center_next_player_city(), and qtg_start_turn().
|
static |