![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <hudwidget.h>
Inheritance diagram for hud_input_box:
Collaboration diagram for hud_input_box:Public Member Functions | |
| hud_input_box (QWidget *parent) | |
| Custom input box constructor. More... | |
| ~hud_input_box () override | |
| Custom input box destructor. More... | |
| void | set_text_title_definput (const QString &s1, const QString &s2, const QString &def_input) |
| Sets text, title and default text and shows input box. More... | |
Public Attributes | |
| QLineEdit | input_edit |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| Paint event for custom input box. More... | |
| void | timerEvent (QTimerEvent *event) override |
| Timer event used to animate input box. More... | |
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 109 of file hudwidget.h.
| hud_input_box::hud_input_box | ( | QWidget * | parent | ) |
Custom input box constructor.
Definition at line 331 of file hudwidget.cpp.
|
override |
Custom input box destructor.
Definition at line 363 of file hudwidget.cpp.
|
overrideprotected |
Paint event for custom input box.
Definition at line 441 of file hudwidget.cpp.
| void hud_input_box::set_text_title_definput | ( | const QString & | s1, |
| const QString & | s2, | ||
| const QString & | def_input | ||
| ) |
Sets text, title and default text and shows input box.
Definition at line 372 of file hudwidget.cpp.
Referenced by city_dialog::city_rename(), popup_newcity_dialog(), city_dialog::save_cma(), and city_dialog::save_worklist().
|
overrideprotected |
Timer event used to animate input box.
Definition at line 432 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 118 of file hudwidget.h.
Referenced by city_dialog::city_rename(), popup_newcity_dialog(), city_dialog::save_cma(), city_dialog::save_worklist(), and 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 111 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().