|
111 | 111 | #include "gui/map/map_dialog_scale.h" |
112 | 112 | #include "gui/map/map_editor_activity.h" |
113 | 113 | #include "gui/map/map_find_feature.h" |
114 | | -#include "gui/map/map_information_dialog.h" |
115 | 114 | #include "gui/map/map_notes.h" |
116 | 115 | #include "gui/map/map_widget.h" |
117 | 116 | #include "gui/map/rotate_map_dialog.h" |
@@ -452,7 +451,6 @@ void MapEditorController::setEditingInProgress(bool value) |
452 | 451 | scale_map_act->setEnabled(!editing_in_progress); |
453 | 452 | rotate_map_act->setEnabled(!editing_in_progress); |
454 | 453 | map_notes_act->setEnabled(!editing_in_progress); |
455 | | - map_info_act->setEnabled(!editing_in_progress); |
456 | 454 |
|
457 | 455 | // Map menu, continued |
458 | 456 | const int num_parts = map->getNumParts(); |
@@ -1018,7 +1016,6 @@ void MapEditorController::createActions() |
1018 | 1016 | scale_map_act = newAction("scalemap", tr("Change map scale..."), this, SLOT(scaleMapClicked()), "tool-scale.png", tr("Change the map scale and adjust map objects and symbol sizes"), "map_menu.html"); |
1019 | 1017 | rotate_map_act = newAction("rotatemap", tr("Rotate map..."), this, SLOT(rotateMapClicked()), "tool-rotate.png", tr("Rotate the whole map"), "map_menu.html"); |
1020 | 1018 | map_notes_act = newAction("mapnotes", tr("Map notes..."), this, SLOT(mapNotesClicked()), nullptr, QString{}, "map_menu.html"); |
1021 | | - map_info_act = newAction("mapinfo", tr("Map information..."), this, SLOT(mapInfoClicked()), "map-information.png", QString{}, "map_menu.html"); |
1022 | 1019 |
|
1023 | 1020 | template_window_act = newCheckAction("templatewindow", tr("Template setup window"), this, SLOT(showTemplateWindow(bool)), "templates.png", tr("Show/Hide the template window"), "templates_menu.html"); |
1024 | 1021 | //QAction* template_config_window_act = newCheckAction("templateconfigwindow", tr("Template configurations window"), this, SLOT(showTemplateConfigurationsWindow(bool)), "window-new", tr("Show/Hide the template configurations window")); |
@@ -1246,7 +1243,6 @@ void MapEditorController::createMenuAndToolbars() |
1246 | 1243 | map_menu->addAction(scale_map_act); |
1247 | 1244 | map_menu->addAction(rotate_map_act); |
1248 | 1245 | map_menu->addAction(map_notes_act); |
1249 | | - map_menu->addAction(map_info_act); |
1250 | 1246 | map_menu->addSeparator(); |
1251 | 1247 | updateMapPartsUI(); |
1252 | 1248 | map_menu->addAction(mappart_add_act); |
@@ -2252,13 +2248,6 @@ void MapEditorController::mapNotesClicked() |
2252 | 2248 | } |
2253 | 2249 | } |
2254 | 2250 |
|
2255 | | -void MapEditorController::mapInfoClicked() |
2256 | | -{ |
2257 | | - MapInformationDialog dialog(window, map); |
2258 | | - dialog.setWindowModality(Qt::WindowModal); |
2259 | | - dialog.exec(); |
2260 | | -} |
2261 | | - |
2262 | 2251 | void MapEditorController::createTemplateWindow() |
2263 | 2252 | { |
2264 | 2253 | Q_ASSERT(!template_dock_widget); |
|
0 commit comments