Author: jtn
Date: Mon Sep 12 23:00:24 2016
New Revision: 33786

URL: http://svn.gna.org/viewcvs/freeciv?rev=33786&view=rev
Log:
Added menu entry 'Show native tiles' for qt-client

Patch by mir3x@gna.

See patch #6445.

Modified:
    branches/S2_5/client/gui-qt/menu.cpp
    branches/S2_5/client/gui-qt/menu.h

Modified: branches/S2_5/client/gui-qt/menu.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-qt/menu.cpp?rev=33786&r1=33785&r2=33786&view=diff
==============================================================================
--- branches/S2_5/client/gui-qt/menu.cpp        (original)
+++ branches/S2_5/client/gui-qt/menu.cpp        Mon Sep 12 23:00:24 2016
@@ -497,6 +497,11 @@
   act->setChecked(draw_borders);
   act->setShortcut(QKeySequence(tr("ctrl+b")));
   connect(act, SIGNAL(triggered()), this, SLOT(slot_borders()));
+  act = menu->addAction(_("Native Tiles"));
+  act->setCheckable(true);
+  act->setChecked(draw_native);
+  act->setShortcut(QKeySequence(tr("ctrl+shift+n")));
+  connect(act, SIGNAL(triggered()), this, SLOT(slot_native_tiles()));
   act = menu->addAction(_("City Full Bar"));
   act->setCheckable(true);
   act->setChecked(draw_full_citybar);
@@ -1771,6 +1776,14 @@
   key_map_borders_toggle();
 }
 
+/****************************************************************
+  Action "SHOW NATIVE TILES"
+*****************************************************************/
+void mr_menu::slot_native_tiles()
+{
+  key_map_native_toggle();
+}
+
 /***************************************************************************
   Action "SHOW BUY COST"
 ***************************************************************************/

Modified: branches/S2_5/client/gui-qt/menu.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-qt/menu.h?rev=33786&r1=33785&r2=33786&view=diff
==============================================================================
--- branches/S2_5/client/gui-qt/menu.h  (original)
+++ branches/S2_5/client/gui-qt/menu.h  Mon Sep 12 23:00:24 2016
@@ -213,6 +213,7 @@
   void slot_map_grid();
   void slot_borders();
   void slot_fullbar();
+  void slot_native_tiles();
   void slot_city_growth();
   void slot_city_production();
   void slot_city_buycost();


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to