29 setAttribute(Qt::WA_NoMousePropagation);
30 setMinimumSize(100, 100);
37 ui.zoom_reset->setIcon(
39 connect(
ui.zoom_reset, &QAbstractButton::clicked, map,
58 ui.minimap->setVisible(visible);
59 ui.zoom_in->setVisible(visible);
60 ui.zoom_reset->setVisible(visible);
61 ui.zoom_out->setVisible(visible);
62 ui.settings->setVisible(visible);
63 ui.spacer->changeSize(0, 0, QSizePolicy::Minimum,
64 visible ? QSizePolicy::Expanding
65 : QSizePolicy::Minimum);
67 ui.verticalLayout->invalidate();
71 QApplication::postEvent(
queen()->game_tab_widget,
72 new QEvent(QEvent::LayoutRequest));
80 auto menu =
new QMenu;
86 QObject::connect(
m_show_relief, &QAction::toggled, [](
bool checked) {
95 QObject::connect(
m_show_borders, &QAction::toggled, [=](
bool checked) {
118 QObject::connect(
m_show_cities, &QAction::toggled, [](
bool checked) {
127 QObject::connect(
m_show_cities, &QAction::toggled, [](
bool checked) {
132 m_show_fog = menu->addAction(
_(
"Show Fog of War"));
136 QObject::connect(
m_show_fog, &QAction::toggled, [](
bool checked) {
141 ui.settings->setMenu(menu);
static fcIcons * instance()
Returns instance of fc_icons.
void zoom_out()
Zooms out by 20%.
void zoom_reset()
Resets the zoom level.
void zoom_in()
Zooms in by 20%.
void setup_minimap_menu()
Creates the menu with the minimap settings.
minimap_panel(map_view *map, QWidget *parent=nullptr)
Constructor.
auto turn_done()
Retrieves the Turn Done button.
QAction * m_show_borders_ocean
void set_minimap_visible(bool visible)
Shows or hides the minimap.
::minimap_panel * minimap_panel
void update_timeout_label()
Update the timeout display.
client_options * gui_options
@ OLAYER_BORDERS_ON_OCEAN
void refresh_overview_canvas()
Redraw the entire backing store for the overview minimap.
pageGame * queen()
Return game instandce.
bool layers[OLAYER_COUNT]
void top_bar_finish_turn()
Callback for finishing turn.