Freeciv-3.1
|
#include <hudwidget.h>
Public Member Functions | |
hud_battle_log (QWidget *parent) | |
~hud_battle_log () | |
void | add_combat_info (hud_unit_combat *huc) |
void | set_scale (float s) |
Data Fields | |
float | scale |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) |
void | moveEvent (QMoveEvent *event) |
void | timerEvent (QTimerEvent *event) |
void | showEvent (QShowEvent *event) |
Private Member Functions | |
void | update_size () |
void | te_inner () |
Private Attributes | |
QVBoxLayout * | main_layout |
QList< hud_unit_combat * > | lhuc |
scale_widget * | sw |
move_widget * | mw |
QElapsedTimer | m_timer |
Definition at line 356 of file hudwidget.h.
hud_battle_log::hud_battle_log | ( | QWidget * | parent | ) |
Hud battle log constructor
Definition at line 1989 of file hudwidget.cpp.
hud_battle_log::~hud_battle_log | ( | ) |
Hud battle log destructor
Definition at line 2003 of file hudwidget.cpp.
void hud_battle_log::add_combat_info | ( | hud_unit_combat * | huc | ) |
Adds comabt information to battle log
Definition at line 2046 of file hudwidget.cpp.
|
protected |
Move event, saves current position
Definition at line 2087 of file hudwidget.cpp.
|
protected |
Paint event for hud battle log
Definition at line 2074 of file hudwidget.cpp.
void hud_battle_log::set_scale | ( | float | s | ) |
Set scale
Definition at line 2037 of file hudwidget.cpp.
Referenced by fc_game_tab_widget::resizeEvent().
|
protected |
Show event, restart fading timer
Definition at line 2137 of file hudwidget.cpp.
|
private |
Timer event inner foreach() loop. Implemented as separate method to avoid compiler shadow warning about internal variables of foreach() inside foreach().
Definition at line 2103 of file hudwidget.cpp.
Referenced by timerEvent().
|
protected |
Timer event. Starts/stops fading
Definition at line 2115 of file hudwidget.cpp.
|
private |
Updates size when scale has changed
Definition at line 2012 of file hudwidget.cpp.
Referenced by paintEvent().
|
private |
Definition at line 360 of file hudwidget.h.
Referenced by add_combat_info(), showEvent(), te_inner(), timerEvent(), and update_size().
|
private |
Definition at line 378 of file hudwidget.h.
Referenced by add_combat_info(), moveEvent(), showEvent(), timerEvent(), and update_size().
|
private |
Definition at line 359 of file hudwidget.h.
Referenced by add_combat_info(), hud_battle_log(), and update_size().
|
private |
Definition at line 377 of file hudwidget.h.
Referenced by hud_battle_log(), paintEvent(), and ~hud_battle_log().
float hud_battle_log::scale |
Definition at line 366 of file hudwidget.h.
Referenced by add_combat_info(), paintEvent(), set_scale(), and update_size().
|
private |
Definition at line 376 of file hudwidget.h.
Referenced by hud_battle_log(), paintEvent(), set_scale(), and ~hud_battle_log().