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

#include <dialogs.h>

+ Inheritance diagram for disband_box:
+ Collaboration diagram for disband_box:

Public Member Functions

 disband_box (const std::vector< unit * > &punits, QWidget *parent=0)
 Disband Message box contructor. More...
 
 ~disband_box () override
 Destructor for disband box. More...
 
- Public Member Functions inherited from hud_message_box
 hud_message_box (QWidget *parent)
 Custom message box constructor. More...
 
 ~hud_message_box () override
 Custom message box destructor. More...
 
void set_text_title (const QString &s1, const QString &s2)
 Sets text and title and shows message box. More...
 

Private Slots

void disband_clicked ()
 Clicked Yes in disband box. More...
 

Private Attributes

const std::vector< unit * > cpunits
 

Additional Inherited Members

- Protected Member Functions inherited from hud_message_box
void paintEvent (QPaintEvent *event) override
 Paint event for custom message box. More...
 
void timerEvent (QTimerEvent *event) override
 Timer event used to animate message box. More...
 
void keyPressEvent (QKeyEvent *event) override
 Key press event for hud message box. More...
 

Detailed Description

Definition at line 88 of file dialogs.h.

Constructor & Destructor Documentation

◆ disband_box()

disband_box::disband_box ( const std::vector< unit * > &  punits,
QWidget *  parent = 0 
)
explicit

Disband Message box contructor.

Definition at line 3353 of file dialogs.cpp.

◆ ~disband_box()

disband_box::~disband_box ( )
overridedefault

Destructor for disband box.

Member Function Documentation

◆ disband_clicked

void disband_box::disband_clicked ( )
privateslot

Clicked Yes in disband box.

Definition at line 3378 of file dialogs.cpp.

Referenced by disband_box().

Member Data Documentation

◆ cpunits

const std::vector<unit *> disband_box::cpunits
private

Definition at line 90 of file dialogs.h.

Referenced by disband_clicked().