Freeciv-3.2
|
#include <hudwidget.h>
Public Member Functions | |
hud_text (QString s, int time_secs, QWidget *parent) | |
~hud_text () | |
void | show_me () |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) |
void | timerEvent (QTimerEvent *event) |
Private Member Functions | |
void | center_me () |
Private Attributes | |
QRect | bound_rect |
int | timeout |
int | m_animate_step |
QString | text |
QElapsedTimer | m_timer |
QFontMetrics * | fm_text |
QFont | f_text |
QFont | f_title |
Definition at line 85 of file hudwidget.h.
Hud text constructor takes text to display and time
Definition at line 240 of file hudwidget.cpp.
hud_text::~hud_text | ( | ) |
Destructor for hud text
Definition at line 298 of file hudwidget.cpp.
|
private |
Moves to top center parent widget and sets size new size
Definition at line 281 of file hudwidget.cpp.
Referenced by paintEvent(), and show_me().
|
protected |
Paint event for custom hud_text
Definition at line 319 of file hudwidget.cpp.
void hud_text::show_me | ( | ) |
Shows hud text
Definition at line 272 of file hudwidget.cpp.
|
protected |
Timer event, closes widget after timeout
Definition at line 306 of file hudwidget.cpp.
|
private |
Definition at line 97 of file hudwidget.h.
Referenced by center_me(), and paintEvent().
|
private |
Definition at line 103 of file hudwidget.h.
Referenced by hud_text(), and paintEvent().
|
private |
Definition at line 104 of file hudwidget.h.
|
private |
Definition at line 102 of file hudwidget.h.
Referenced by hud_text(), and ~hud_text().
|
private |
Definition at line 99 of file hudwidget.h.
Referenced by hud_text(), and timerEvent().
|
private |
Definition at line 101 of file hudwidget.h.
Referenced by hud_text(), paintEvent(), and timerEvent().
|
private |
Definition at line 100 of file hudwidget.h.
Referenced by hud_text(), and paintEvent().
|
private |
Definition at line 98 of file hudwidget.h.
Referenced by hud_text(), paintEvent(), and timerEvent().