Bind zoom in/out to [ and ]
authorunc0rr
Sat, 15 Aug 2009 09:34:31 +0000
changeset 2312 3b59f1251ead
parent 2311 977ee15c3c1f
child 2313 0ffdcae7653c
Bind zoom in/out to [ and ]
QTfrontend/binds.cpp
QTfrontend/binds.h
hedgewars/uKeys.pas
--- a/QTfrontend/binds.cpp	Thu Aug 13 12:45:24 2009 +0000
+++ b/QTfrontend/binds.cpp	Sat Aug 15 09:34:31 2009 +0000
@@ -52,6 +52,8 @@
 	{"confirm",	"y",	QT_TRANSLATE_NOOP("binds", "confirmation"),	false},
 	{"+voldown",	"9",	QT_TRANSLATE_NOOP("binds", "volume down"),	false},
 	{"+volup",	"0",	QT_TRANSLATE_NOOP("binds", "volume up"),	false},
+	{"zoomin",	"[",	QT_TRANSLATE_NOOP("binds", "zoom in"),	false},
+	{"zoomout",	"]",	QT_TRANSLATE_NOOP("binds", "zoom out"),	false},
 	{"fullscr",	"f12",	QT_TRANSLATE_NOOP("binds", "change mode"),	false},
 	{"capture",	"c",	QT_TRANSLATE_NOOP("binds", "capture"),	false},
 	{"rotmask",	"delete",	QT_TRANSLATE_NOOP("binds", "hedgehogs\ninfo"),	false},
--- a/QTfrontend/binds.h	Thu Aug 13 12:45:24 2009 +0000
+++ b/QTfrontend/binds.h	Sat Aug 15 09:34:31 2009 +0000
@@ -21,7 +21,7 @@
 
 #include <QString>
 
-#define BINDS_NUMBER 36
+#define BINDS_NUMBER 38
 
 struct BindAction
 {
--- a/hedgewars/uKeys.pas	Thu Aug 13 12:45:24 2009 +0000
+++ b/hedgewars/uKeys.pas	Sat Aug 15 09:34:31 2009 +0000
@@ -144,9 +144,6 @@
 DefaultBinds[121]:= 'confirm';
 DefaultBinds[127]:= 'rotmask';
 
-DefaultBinds[ 61]:= 'zoomout';
-DefaultBinds[ 45]:= 'zoomin';
-
 DefaultBinds[KeyNameToCode('f12')]:= 'fullscr';
 
 SetDefaultBinds