Author: mir3x
Date: Wed Oct 28 10:08:00 2015
New Revision: 30255

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

See patch #6445


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

Modified: branches/S2_6/client/gui-qt/menu.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/menu.cpp?rev=30255&r1=30254&r2=30255&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/menu.cpp        (original)
+++ branches/S2_6/client/gui-qt/menu.cpp        Wed Oct 28 10:08:00 2015
@@ -478,6 +478,11 @@
   act->setChecked(gui_options.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(gui_options.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(gui_options.draw_full_citybar);
@@ -1772,6 +1777,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_6/client/gui-qt/menu.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/menu.h?rev=30255&r1=30254&r2=30255&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/menu.h  (original)
+++ branches/S2_6/client/gui-qt/menu.h  Wed Oct 28 10:08:00 2015
@@ -210,6 +210,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