Freeciv-3.3
|
#include <hudwidget.h>
Public Member Functions | |
hud_input_box (QWidget *parent) | |
~hud_input_box () | |
void | set_text_title_definput (QString s1, QString s2, QString def_input) |
Data Fields | |
QLineEdit | input_edit |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) |
void | timerEvent (QTimerEvent *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 110 of file hudwidget.h.
hud_input_box::hud_input_box | ( | QWidget * | parent | ) |
Custom input box constructor
Definition at line 354 of file hudwidget.cpp.
hud_input_box::~hud_input_box | ( | ) |
Custom input box destructor
Definition at line 386 of file hudwidget.cpp.
|
protected |
Paint event for custom input box
Definition at line 463 of file hudwidget.cpp.
Sets text, title and default text and shows input box
Definition at line 395 of file hudwidget.cpp.
|
protected |
Timer event used to animate input box
Definition at line 454 of file hudwidget.cpp.
|
private |
Definition at line 131 of file hudwidget.h.
Referenced by paintEvent(), and set_text_title_definput().
|
private |
Definition at line 131 of file hudwidget.h.
Referenced by paintEvent(), and set_text_title_definput().
|
private |
Definition at line 130 of file hudwidget.h.
Referenced by hud_input_box(), paintEvent(), and set_text_title_definput().
|
private |
Definition at line 132 of file hudwidget.h.
Referenced by hud_input_box(), and paintEvent().
|
private |
Definition at line 128 of file hudwidget.h.
Referenced by hud_input_box(), paintEvent(), set_text_title_definput(), and ~hud_input_box().
|
private |
Definition at line 129 of file hudwidget.h.
Referenced by hud_input_box(), paintEvent(), set_text_title_definput(), and ~hud_input_box().
QLineEdit hud_input_box::input_edit |
Definition at line 119 of file hudwidget.h.
Referenced by set_text_title_definput().
|
private |
Definition at line 125 of file hudwidget.h.
Referenced by hud_input_box(), paintEvent(), and timerEvent().
|
private |
Definition at line 113 of file hudwidget.h.
Referenced by set_text_title_definput(), and timerEvent().
|
private |
Definition at line 134 of file hudwidget.h.
Referenced by hud_input_box(), paintEvent(), and set_text_title_definput().
|
private |
Definition at line 126 of file hudwidget.h.
Referenced by paintEvent(), and set_text_title_definput().
|
private |
Definition at line 127 of file hudwidget.h.
Referenced by paintEvent(), and set_text_title_definput().
|
private |
Definition at line 133 of file hudwidget.h.
Referenced by hud_input_box(), paintEvent(), and set_text_title_definput().