982 act =
sub_menu->addAction(
_(
"Set local options"));
984 act =
sub_menu->addAction(
_(
"Server Options"));
986 act =
sub_menu->addAction(
_(
"Messages"));
988 act =
sub_menu->addAction(
_(
"Shortcuts"));
990 act =
sub_menu->addAction(
_(
"Load another tileset"));
992 act =
sub_menu->addAction(
_(
"Save Options Now"));
993 act->setIcon(style()->
standardIcon(QStyle::SP_DialogSaveButton));
995 act =
sub_menu->addAction(
_(
"Save Options on Exit"));
996 act->setCheckable(
true);
1001 act->setIcon(style()->
standardIcon(QStyle::SP_DialogSaveButton));
1004 act =
main_menu->addAction(
_(
"Save Game As..."));
1006 act->setIcon(style()->
standardIcon(QStyle::SP_DialogSaveButton));
1008 act =
main_menu->addAction(
_(
"Save Map to Image"));
1012 act->setIcon(style()->
standardIcon(QStyle::SP_DialogDiscardButton));
1015 act->setIcon(style()->
standardIcon(QStyle::SP_TitleBarCloseButton));
1020 act =
main_menu->addAction(
_(
"Center View"));
1028 act->setCheckable(
true);
1041 osd_status->setChecked(
gui()->qt_settings.show_new_turn_text);
1042 connect(
osd_status, &QAction::triggered,
this,
1060 act =
main_menu->addAction(
_(
"Zoom default"));
1074 act =
main_menu->addAction(
_(
"City Outlines"));
1075 act->setCheckable(
true);
1078 act =
main_menu->addAction(
_(
"City Output"));
1079 act->setCheckable(
true);
1087 act->setCheckable(
true);
1090 act =
main_menu->addAction(
_(
"National Borders"));
1091 act->setCheckable(
true);
1096 act =
main_menu->addAction(
_(
"Native Tiles"));
1097 act->setCheckable(
true);
1101 act =
main_menu->addAction(
_(
"City Full Bar"));
1102 act->setCheckable(
true);
1108 act->setCheckable(
true);
1113 act =
main_menu->addAction(
_(
"City Growth"));
1114 act->setCheckable(
true);
1118 act =
main_menu->addAction(
_(
"City Production"));
1119 act->setCheckable(
true);
1124 act =
main_menu->addAction(
_(
"City Buy Cost"));
1125 act->setCheckable(
true);
1128 act =
main_menu->addAction(
_(
"City Trade Routes"));
1129 act->setCheckable(
true);
1134 act =
main_menu->addAction(
_(
"Unit Stack Size"));
1135 act->setCheckable(
true);
1143 act =
main_menu->addAction(
_(
"Single Unit (Unselect Others)"));
1147 act =
main_menu->addAction(
_(
"All On Tile"));
1152 act =
main_menu->addAction(
_(
"Same Type on Tile"));
1156 act =
main_menu->addAction(
_(
"Same Type on Continent"));
1159 connect(act, &QAction::triggered,
this,
1161 act =
main_menu->addAction(
_(
"Same Type Everywhere"));
1164 connect(act, &QAction::triggered,
this,
1178 act =
main_menu->addAction(
_(
"Advanced unit selection"));
1194 act =
main_menu->addAction(
_(
"Go to Nearest City"));
1198 act =
main_menu->addAction(
_(
"Go to/Airlift to City..."));
1204 act =
main_menu->addAction(
_(
"Auto Explore"));
1211 act->setEnabled(
false);
1221 act =
main_menu->addAction(
_(
"Unsentry All On Tile"));
1237 act =
main_menu->addAction(
_(
"Unload All From Transporter"));
1266 act =
main_menu->addAction(
_(
"Fortify Unit"));
1272 .replace(
"&",
"&&"));
1277 .replace(
"&",
"&&"));
1307 act =
main_menu->addAction(
_(
"Auto Settler"));
1319 act =
main_menu->addAction(
_(
"Build Irrigation"));
1340 act =
main_menu->addAction(
_(
"Connect With Road"));
1344 act =
main_menu->addAction(
_(
"Connect With Railroad"));
1348 act =
main_menu->addAction(
_(
"Connect With Maglev"));
1352 act =
main_menu->addAction(
_(
"Connect With Irrigation"));
1357 act =
main_menu->addAction(
_(
"Transform Terrain"));
1417 act->setCheckable(
true);
1418 act->setChecked(
true);
1424 act->setCheckable(
true);
1425 act->setChecked(
false);
1431 act->setCheckable(
true);
1432 act->setChecked(
false);
1438 act->setCheckable(
true);
1439 act->setChecked(
false);
1446 act->setCheckable(
true);
1447 act->setChecked(
true);
1453 act->setCheckable(
true);
1454 act->setChecked(
false);
1460 act->setCheckable(
true);
1461 act->setChecked(
false);
1467 act->setCheckable(
true);
1468 act->setChecked(
false);
1474 act->setCheckable(
true);
1475 act->setChecked(
false);
1481 act->setCheckable(
true);
1482 act->setChecked(
false);
1488 act->setCheckable(
true);
1489 act->setChecked(
false);
1495 act->setCheckable(
true);
1496 act->setChecked(
false);
1502 act->setCheckable(
true);
1503 act->setChecked(
false);
1509 act->setCheckable(
true);
1510 act->setChecked(
false);
1516 act->setCheckable(
true);
1517 act->setChecked(
false);
1524 act =
main_menu->addAction(
_(
"Tax Rates..."));
1529 act =
main_menu->addAction(
_(
"Policies..."));
1561 act =
main_menu->addAction(
_(
"Wonders of the World"));
1570 act =
main_menu->addAction(
_(
"Demographics"));
1578 act =
main_menu->addAction(
_(
"Achievements"));
1581 act =
main_menu->addAction(
_(
"Endgame report"));
1588 act =
main_menu->addAction(
_(
"Select Battle Group 1"));
1592 act =
main_menu->addAction(
_(
"Assign Battle Group 1"));
1596 act =
main_menu->addAction(
_(
"Append to Battle Group 1"));
1600 act =
main_menu->addAction(
_(
"Select Battle Group 2"));
1604 act =
main_menu->addAction(
_(
"Assign Battle Group 2"));
1608 act =
main_menu->addAction(
_(
"Append to Battle Group 2"));
1612 act =
main_menu->addAction(
_(
"Select Battle Group 3"));
1616 act =
main_menu->addAction(
_(
"Assign Battle Group 3"));
1620 act =
main_menu->addAction(
_(
"Append to Battle Group 3"));
1624 act =
main_menu->addAction(
_(
"Select Battle Group 4"));
1628 act =
main_menu->addAction(
_(
"Assign Battle Group 4"));
1632 act =
main_menu->addAction(
_(
"Append to Battle Group 4"));
1640 QObject::connect(act, &QAction::triggered, [
this]() {
1645 QObject::connect(act, &QAction::triggered, [
this]() {
1650 QObject::connect(act, &QAction::triggered, [
this]() {
1655 QObject::connect(act, &QAction::triggered, [
this]() {
1660 QObject::connect(act, &QAction::triggered, [
this]() {
1665 QObject::connect(act, &QAction::triggered, [
this]() {
1670 QObject::connect(act, &QAction::triggered, [
this]() {
1675 QObject::connect(act, &QAction::triggered, [
this]() {
1680 QObject::connect(act, &QAction::triggered, [
this]() {
1685 QObject::connect(act, &QAction::triggered, [
this]() {
1690 QObject::connect(act, &QAction::triggered, [
this]() {
1695 QObject::connect(act, &QAction::triggered, [
this]() {
1700 QObject::connect(act, &QAction::triggered, [
this]() {
1705 QObject::connect(act, &QAction::triggered, [
this]() {
1710 QObject::connect(act, &QAction::triggered, [
this]() {
1715 QObject::connect(act, &QAction::triggered, [
this]() {
1720 QObject::connect(act, &QAction::triggered, [
this]() {
1725 QObject::connect(act, &QAction::triggered, [
this]() {
1730 QObject::connect(act, &QAction::triggered, [
this]() {
1735 QObject::connect(act, &QAction::triggered, [
this]() {
1742 QObject::connect(act, &QAction::triggered, [
this]() {
1747 QObject::connect(act, &QAction::triggered, [
this]() {
1752 QObject::connect(act, &QAction::triggered, [
this]() {
1757 QObject::connect(act, &QAction::triggered, [
this]() {
1762 QObject::connect(act, &QAction::triggered, [
this]() {
1769 QObject::connect(act, &QAction::triggered, [
this]() {
1774 QObject::connect(act, &QAction::triggered, [
this]() {
1779 QObject::connect(act, &QAction::triggered, [
this]() {
1784 for (i = 0;
i <
menus.count();
i++) {
1785 menus[
i]->setAttribute(Qt::WA_TranslucentBackground);