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

#include <diplodlg.h>

+ Inheritance diagram for diplo_dlg:
+ Collaboration diagram for diplo_dlg:

Public Member Functions

 diplo_dlg (int counterpart, int initiated_from)
 Constructor for diplomacy dialog. More...
 
 ~diplo_dlg () override
 Destructor for diplomacy dialog. More...
 
void update_dlg ()
 Updates all diplomacy widgets in current dialog. More...
 
bool init (bool raise)
 Initializes some data for diplomacy dialog. More...
 
diplo_wdgfind_widget (int counterpart)
 Finds diplomacy widget in current dialog. More...
 
void close_widget (int counterpart)
 Closes given diplomacy widget. More...
 
void add_widget (int counterpart, int initiated_from)
 Creates new diplomacy widget and adds to diplomacy dialog. More...
 
void make_active (int party)
 Sets given widget as active in current dialog. More...
 

Private Attributes

QMap< int, diplo_wdg * > treaty_list
 
int index
 

Detailed Description

Definition at line 86 of file diplodlg.h.

Constructor & Destructor Documentation

◆ diplo_dlg()

diplo_dlg::diplo_dlg ( int  counterpart,
int  initiated_from 
)

Constructor for diplomacy dialog.

Definition at line 705 of file diplodlg.cpp.

◆ ~diplo_dlg()

diplo_dlg::~diplo_dlg ( )
override

Destructor for diplomacy dialog.

Definition at line 767 of file diplodlg.cpp.

Member Function Documentation

◆ add_widget()

void diplo_dlg::add_widget ( int  counterpart,
int  initiated_from 
)

Creates new diplomacy widget and adds to diplomacy dialog.

Definition at line 714 of file diplodlg.cpp.

Referenced by diplo_dlg(), and handle_diplomacy_init_meeting().

◆ close_widget()

void diplo_dlg::close_widget ( int  counterpart)

Closes given diplomacy widget.

Definition at line 794 of file diplodlg.cpp.

Referenced by handle_diplomacy_cancel_meeting().

◆ find_widget()

diplo_wdg * diplo_dlg::find_widget ( int  counterpart)

◆ init()

bool diplo_dlg::init ( bool  raise)

Initializes some data for diplomacy dialog.

Definition at line 747 of file diplodlg.cpp.

Referenced by handle_diplomacy_init_meeting().

◆ make_active()

void diplo_dlg::make_active ( int  party)

Sets given widget as active in current dialog.

Definition at line 733 of file diplodlg.cpp.

Referenced by handle_diplomacy_init_meeting().

◆ update_dlg()

void diplo_dlg::update_dlg ( )

Updates all diplomacy widgets in current dialog.

Definition at line 809 of file diplodlg.cpp.

Referenced by handle_diplomacy_init_meeting().

Member Data Documentation

◆ index

int diplo_dlg::index
private

Definition at line 101 of file diplodlg.h.

Referenced by init().

◆ treaty_list

QMap<int, diplo_wdg *> diplo_dlg::treaty_list
private

Definition at line 88 of file diplodlg.h.

Referenced by add_widget(), close_widget(), find_widget(), update_dlg(), and ~diplo_dlg().