Freeciv-3.3
|
#include <hudwidget.h>
Public Member Functions | |
hud_message_box (QWidget *parent) | |
~hud_message_box () | |
int | set_text_title (QString s1, QString s2, bool return_exec=false) |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) |
void | timerEvent (QTimerEvent *event) |
void | keyPressEvent (QKeyEvent *event) |
Private Attributes | |
QElapsedTimer | m_timer |
int | m_animate_step |
QString | text |
QString | title |
QFontMetrics * | fm_text |
QFontMetrics * | fm_title |
QFont | f_text |
QString | cs1 |
QString | cs2 |
QFont | f_title |
int | top |
int | mult |
Definition at line 55 of file hudwidget.h.
hud_message_box::hud_message_box | ( | QWidget * | parent | ) |
Custom message box constructor
Definition at line 74 of file hudwidget.cpp.
hud_message_box::~hud_message_box | ( | ) |
Custom message box destructor
Definition at line 104 of file hudwidget.cpp.
Key press event for hud message box
Definition at line 113 of file hudwidget.cpp.
|
protected |
Paint event for custom message box
Definition at line 185 of file hudwidget.cpp.
Sets text and title and shows message box
Definition at line 126 of file hudwidget.cpp.
Referenced by disband_box::disband_box(), eco_report::disband_units(), eco_report::sell_buildings(), and eco_report::sell_redundant().
|
protected |
Timer event used to animate message box
Definition at line 176 of file hudwidget.cpp.
|
private |
Definition at line 76 of file hudwidget.h.
Referenced by paintEvent(), and set_text_title().
|
private |
Definition at line 76 of file hudwidget.h.
Referenced by paintEvent(), and set_text_title().
|
private |
Definition at line 75 of file hudwidget.h.
Referenced by hud_message_box(), and paintEvent().
|
private |
Definition at line 77 of file hudwidget.h.
Referenced by hud_message_box(), and paintEvent().
|
private |
Definition at line 73 of file hudwidget.h.
Referenced by hud_message_box(), paintEvent(), set_text_title(), and ~hud_message_box().
|
private |
Definition at line 74 of file hudwidget.h.
Referenced by hud_message_box(), paintEvent(), set_text_title(), and ~hud_message_box().
|
private |
Definition at line 70 of file hudwidget.h.
Referenced by hud_message_box(), paintEvent(), and timerEvent().
|
private |
Definition at line 58 of file hudwidget.h.
Referenced by set_text_title(), and timerEvent().
|
private |
Definition at line 79 of file hudwidget.h.
Referenced by hud_message_box(), paintEvent(), and set_text_title().
|
private |
Definition at line 71 of file hudwidget.h.
Referenced by paintEvent(), and set_text_title().
|
private |
Definition at line 72 of file hudwidget.h.
Referenced by paintEvent(), and set_text_title().
|
private |
Definition at line 78 of file hudwidget.h.
Referenced by hud_message_box(), paintEvent(), and set_text_title().