Freeciv21
Develop your civilization from humble roots to a global empire
diplodlg.cpp File Reference
#include "diplodlg.h"
#include <limits>
#include <QApplication>
#include <QCloseEvent>
#include <QGridLayout>
#include <QHeaderView>
#include <QLabel>
#include <QPainter>
#include <QPushButton>
#include <QSpinBox>
#include <QTableWidget>
#include "fcintl.h"
#include "climisc.h"
#include "game.h"
#include "government.h"
#include "nation.h"
#include "player.h"
#include "research.h"
#include "client_main.h"
#include "colors_common.h"
#include "diplodlg_g.h"
#include "fc_client.h"
#include "icons.h"
#include "page_game.h"
#include "tileset/sprite.h"
#include "top_bar.h"
#include "views/view_nations.h"
+ Include dependency graph for diplodlg.cpp:

Go to the source code of this file.

Functions

void handle_diplomacy_accept_treaty (int counterpart, bool I_accepted, bool other_accepted)
 Update a player's acceptance status of a treaty (traditionally shown with the thumbs-up/thumbs-down sprite). More...
 
void handle_diplomacy_init_meeting (int counterpart, int initiated_from)
 Handle the start of a diplomacy meeting - usually by poping up a diplomacy dialog. More...
 
void handle_diplomacy_create_clause (int counterpart, int giver, enum clause_type type, int value)
 Update the diplomacy dialog by adding a clause. More...
 
void handle_diplomacy_cancel_meeting (int counterpart, int initiated_from)
 Update the diplomacy dialog when the meeting is canceled (the dialog should be closed). More...
 
void handle_diplomacy_remove_clause (int counterpart, int giver, enum clause_type type, int value)
 Update the diplomacy dialog by removing a clause. More...
 
void close_all_diplomacy_dialogs ()
 Close all open diplomacy dialogs. More...
 

Function Documentation

◆ close_all_diplomacy_dialogs()

void close_all_diplomacy_dialogs ( )

Close all open diplomacy dialogs.

Called when the client disconnects from game.

Definition at line 970 of file diplodlg.cpp.

Referenced by client_state().

◆ handle_diplomacy_accept_treaty()

void handle_diplomacy_accept_treaty ( int  counterpart,
bool  I_accepted,
bool  other_accepted 
)

Update a player's acceptance status of a treaty (traditionally shown with the thumbs-up/thumbs-down sprite).

Definition at line 825 of file diplodlg.cpp.

◆ handle_diplomacy_cancel_meeting()

void handle_diplomacy_cancel_meeting ( int  counterpart,
int  initiated_from 
)

Update the diplomacy dialog when the meeting is canceled (the dialog should be closed).

Definition at line 923 of file diplodlg.cpp.

◆ handle_diplomacy_create_clause()

void handle_diplomacy_create_clause ( int  counterpart,
int  giver,
enum clause_type  type,
int  value 
)

Update the diplomacy dialog by adding a clause.

Definition at line 898 of file diplodlg.cpp.

◆ handle_diplomacy_init_meeting()

void handle_diplomacy_init_meeting ( int  counterpart,
int  initiated_from 
)

Handle the start of a diplomacy meeting - usually by poping up a diplomacy dialog.

Definition at line 852 of file diplodlg.cpp.

◆ handle_diplomacy_remove_clause()

void handle_diplomacy_remove_clause ( int  counterpart,
int  giver,
enum clause_type  type,
int  value 
)

Update the diplomacy dialog by removing a clause.

Definition at line 944 of file diplodlg.cpp.