![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
The panel at the bottom right of the game screen, holding the minimap and the Turn Done button. More...
#include <minimap_panel.h>
Inheritance diagram for minimap_panel:
Collaboration diagram for minimap_panel:Public Member Functions | |
| minimap_panel (map_view *map, QWidget *parent=nullptr) | |
| Constructor. More... | |
| virtual | ~minimap_panel ()=default |
| Destructor. More... | |
| void | update_menu () override |
| void | set_minimap_visible (bool visible) |
| Shows or hides the minimap. More... | |
| auto | minimap () |
| Retrieves the minimap widget. More... | |
| auto | turn_done () |
| Retrieves the Turn Done button. More... | |
Public Member Functions inherited from resizable_widget | |
| void | setResizable (Qt::Edges edges) |
| Set resizable flags. More... | |
| Qt::Edges | getResizable () const |
| Get resizable flags of wdiget. More... | |
Public Member Functions inherited from fcwidget | |
| fcwidget (QWidget *parent=nullptr) | |
| Constructor. More... | |
Private Member Functions | |
| void | setup_minimap_menu () |
| Creates the menu with the minimap settings. More... | |
Private Attributes | |
| Ui::minimap_panel | ui |
| QAction * | m_show_relief |
| QAction * | m_show_borders |
| QAction * | m_show_borders_ocean |
| QAction * | m_show_cities |
| QAction * | m_show_fog |
Additional Inherited Members | |
Signals inherited from resizable_widget | |
| void | resized (QRect rect) |
Protected Member Functions inherited from resizable_widget | |
| void | mousePressEvent (QMouseEvent *event) override |
| Checks if info_tab can be moved. More... | |
| void | mouseMoveEvent (QMouseEvent *event) override |
| Called when mouse moved (mouse track is enabled). More... | |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| Restores cursor when resizing is done. More... | |
The panel at the bottom right of the game screen, holding the minimap and the Turn Done button.
Definition at line 23 of file minimap_panel.h.
|
explicit |
Constructor.
Definition at line 25 of file minimap_panel.cpp.
|
virtualdefault |
Destructor.
|
inline |
Retrieves the minimap widget.
Definition at line 36 of file minimap_panel.h.
Referenced by update_minimap().
| void minimap_panel::set_minimap_visible | ( | bool | visible | ) |
Shows or hides the minimap.
Definition at line 56 of file minimap_panel.cpp.
Referenced by mr_menu::setup_menus().
|
private |
Creates the menu with the minimap settings.
Definition at line 78 of file minimap_panel.cpp.
Referenced by minimap_panel().
|
inline |
Retrieves the Turn Done button.
Definition at line 39 of file minimap_panel.h.
Referenced by fc_game_tab_widget::event(), update_timeout_label(), and update_turn_done_button_state().
|
inlineoverridevirtual |
Implements fcwidget.
Definition at line 31 of file minimap_panel.h.
|
private |
Definition at line 46 of file minimap_panel.h.
Referenced by setup_minimap_menu().
|
private |
Definition at line 46 of file minimap_panel.h.
Referenced by setup_minimap_menu().
|
private |
Definition at line 47 of file minimap_panel.h.
Referenced by setup_minimap_menu().
|
private |
Definition at line 47 of file minimap_panel.h.
Referenced by setup_minimap_menu().
|
private |
Definition at line 46 of file minimap_panel.h.
Referenced by setup_minimap_menu().
|
private |
Definition at line 44 of file minimap_panel.h.
Referenced by minimap(), minimap_panel(), set_minimap_visible(), setup_minimap_menu(), and turn_done().