![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "views/view_nations.h"#include <QMouseEvent>#include <QPainter>#include <QSortFilterProxyModel>#include <qnamespace.h>#include "astring.h"#include "fcintl.h"#include "city.h"#include "colors_common.h"#include "game.h"#include "government.h"#include "icons.h"#include "improvement.h"#include "nation.h"#include "research.h"#include "utils/collated_sort_proxy.h"#include "views/view_nations_data.h"#include "chatline_common.h"#include "client_main.h"#include "fc_client.h"#include "fonts.h"#include "page_game.h"#include "tileset/sprite.h"#include "tileset/tilespec.h"#include "top_bar.h"
Include dependency graph for view_nations.cpp:Go to the source code of this file.
Functions | |
| static QRect | check_box_rect (const QStyleOptionViewItem &view_item_style_options) |
| Help function to draw checkbox inside delegate. More... | |
| void | popup_players_dialog () |
| Display the player list dialog. More... | |
| void | real_players_dialog_update (void *unused) |
| Update all information in the player list dialog. More... | |
| void | popdown_players_report () |
| Closes players report. More... | |
| void | update_intel_dialog (struct player *p) |
| Update the intelligence dialog for the given player. More... | |
| void | close_intel_dialog (struct player *p) |
| Close an intelligence dialog for the given player. More... | |
| void | update_top_bar_diplomacy_status (bool notify) |
| Function to update the top bar button. More... | |
|
static |
Help function to draw checkbox inside delegate.
Definition at line 50 of file view_nations.cpp.
Referenced by plr_item_delegate::paint().
| void close_intel_dialog | ( | struct player * | p | ) |
Close an intelligence dialog for the given player.
Definition at line 1036 of file view_nations.cpp.
Referenced by handle_player_remove().
| void popdown_players_report | ( | ) |
Closes players report.
Definition at line 1013 of file view_nations.cpp.
Referenced by popdown_all_game_dialogs().
| void popup_players_dialog | ( | ) |
Display the player list dialog.
Definition at line 964 of file view_nations.cpp.
Referenced by pageGame::pageGame(), and mr_menu::setup_menus().
| void real_players_dialog_update | ( | void * | unused | ) |
Update all information in the player list dialog.
Definition at line 993 of file view_nations.cpp.
Referenced by close_intel_dialog(), players_dialog_update(), and update_intel_dialog().
| void update_intel_dialog | ( | struct player * | p | ) |
Update the intelligence dialog for the given player.
This is called by the core client code when that player's information changes.
Definition at line 1032 of file view_nations.cpp.
Referenced by handle_player_info().
| void update_top_bar_diplomacy_status | ( | bool | notify | ) |
Function to update the top bar button.
Notify when there are open Diplomacy meetings, don't when there are none.
Definition at line 1042 of file view_nations.cpp.
Referenced by close_all_diplomacy_dialogs(), handle_diplomacy_accept_treaty(), handle_diplomacy_cancel_meeting(), handle_diplomacy_create_clause(), handle_diplomacy_init_meeting(), handle_diplomacy_remove_clause(), plr_report::plr_report(), and plr_report::update_report().