|
Freeciv-3.1
|
#include <hudwidget.h>
Inheritance diagram for hud_action:Signals | |
| void | left_clicked () |
| void | right_clicked () |
Public Member Functions | |
| hud_action (QWidget *parent) | |
| ~hud_action () | |
| void | set_pixmap (QPixmap *p) |
Data Fields | |
| shortcut_id | action_shortcut |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) |
| void | mousePressEvent (QMouseEvent *e) |
| void | mouseMoveEvent (QMouseEvent *event) |
| void | leaveEvent (QEvent *event) |
| void | enterEvent (QEnterEvent *event) |
Private Slots | |
| void | on_clicked () |
| void | on_right_clicked () |
Private Attributes | |
| QPixmap * | action_pixmap |
| bool | focus |
Definition at line 156 of file hudwidget.h.
| hud_action::hud_action | ( | QWidget * | parent | ) |
Hud action constructor, used to show one action
Definition at line 817 of file hudwidget.cpp.
| hud_action::~hud_action | ( | ) |
Hud action destructor
Definition at line 862 of file hudwidget.cpp.
|
protected |
Enter event for hud_action, used to get status of pixmap highlight
Definition at line 904 of file hudwidget.cpp.
|
protected |
Leave event for hud_action, used to get status of pixmap highlight
Definition at line 893 of file hudwidget.cpp.
|
signal |
Referenced by hud_action(), and mousePressEvent().
|
protected |
Mouse move event for hud_action, draw focus
Definition at line 884 of file hudwidget.cpp.
|
protected |
Mouse press event for hud_action
Definition at line 872 of file hudwidget.cpp.
|
privateslot |
Left click event for hud_action
Definition at line 924 of file hudwidget.cpp.
Referenced by hud_action().
|
privateslot |
Right click event for hud_action
Definition at line 917 of file hudwidget.cpp.
|
protected |
Custom painting for hud_action
Definition at line 837 of file hudwidget.cpp.
|
signal |
Referenced by mousePressEvent().
| void hud_action::set_pixmap | ( | QPixmap * | p | ) |
Sets given pixmap for hud_action
Definition at line 829 of file hudwidget.cpp.
Referenced by unit_actions::update_actions().
|
private |
Definition at line 159 of file hudwidget.h.
Referenced by hud_action(), paintEvent(), set_pixmap(), and ~hud_action().
| shortcut_id hud_action::action_shortcut |
Definition at line 165 of file hudwidget.h.
Referenced by on_clicked(), and unit_actions::update_actions().
|
private |
Definition at line 160 of file hudwidget.h.
Referenced by hud_action(), leaveEvent(), mouseMoveEvent(), and paintEvent().