Author: mir3x
Date: Tue Dec  8 22:37:26 2015
New Revision: 30896

URL: http://svn.gna.org/viewcvs/freeciv?rev=30896&view=rev
Log:
Added menu entry "Explode Nuclear" in Qt-client.

See patch #6653


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=30896&r1=30895&r2=30896&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/menu.cpp        (original)
+++ branches/S2_6/client/gui-qt/menu.cpp        Tue Dec  8 22:37:26 2015
@@ -720,6 +720,10 @@
   menu_list.insertMulti(ORDER_DIPLOMAT_DLG, act);
   act->setShortcut(QKeySequence(tr("d")));
   connect(act, SIGNAL(triggered()), this, SLOT(slot_action()));
+  act = menu->addAction(_("Explode Nuclear"));
+  menu_list.insertMulti(NUKE, act);
+  act->setShortcut(QKeySequence(tr("shift+n")));
+  connect(act, SIGNAL(triggered()), this, SLOT(slot_explode_nuclear()));
 
   /* Work Menu */
   menu = this->addMenu(_("Work"));
@@ -1532,6 +1536,14 @@
 }
 
 /***************************************************************************
+  Action "EXPLODE NUCLEAR"
+***************************************************************************/
+void mr_menu::slot_explode_nuclear()
+{
+  key_unit_nuke();
+}
+
+/***************************************************************************
   Diplomat/Spy action
 ***************************************************************************/
 void mr_menu::slot_action()

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=30896&r1=30895&r2=30896&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/menu.h  (original)
+++ branches/S2_6/client/gui-qt/menu.h  Tue Dec  8 22:37:26 2015
@@ -202,6 +202,7 @@
   void slot_unit_airbase();
   void slot_pillage();
   void slot_action();
+  void slot_explode_nuclear();
 
   /*used by view menu*/
   void slot_center_view();


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

Reply via email to