QTfrontend/binds.h
changeset 88 6740a1c4edc9
parent 87 ff213e443336
child 90 b18a6cd6a17c
equal deleted inserted replaced
87:ff213e443336 88:6740a1c4edc9
    33 
    33 
    34 #ifndef BINDS_H
    34 #ifndef BINDS_H
    35 #define BINDS_H
    35 #define BINDS_H
    36 
    36 
    37 #include <QString>
    37 #include <QString>
       
    38 #include <QtGlobal>
    38 
    39 
    39 #define BINDS_NUMBER 24
    40 #define BINDS_NUMBER 24
    40 
    41 
    41 struct BindAction
    42 struct BindAction
    42 {
    43 {
    46 	bool chwidget;
    47 	bool chwidget;
    47 };
    48 };
    48 
    49 
    49 const BindAction cbinds[BINDS_NUMBER] =
    50 const BindAction cbinds[BINDS_NUMBER] =
    50 {
    51 {
    51 	{"+up",	"up",	QT_TR_NOOP("up"),	false},
    52 	{"+up",	"up",	QT_TRANSLATE_NOOP("binds", "up"),	false},
    52 	{"+left",	"left",	QT_TR_NOOP("left"),	false},
    53 	{"+left",	"left",	QT_TRANSLATE_NOOP("binds", "left"),	false},
    53 	{"+right",	"right",	QT_TR_NOOP("right"),	false},
    54 	{"+right",	"right",	QT_TRANSLATE_NOOP("binds", "right"),	false},
    54 	{"+down",	"down",	QT_TR_NOOP("down"),	false},
    55 	{"+down",	"down",	QT_TRANSLATE_NOOP("binds", "down"),	false},
    55 	{"ljump",	"return",	QT_TR_NOOP("jump"),	false},
    56 	{"ljump",	"return",	QT_TRANSLATE_NOOP("binds", "jump"),	false},
    56 	{"hjump",	"backspace",	QT_TR_NOOP("jump"),	false},
    57 	{"hjump",	"backspace",	QT_TRANSLATE_NOOP("binds", "jump"),	false},
    57 	{"+attack",	"space",	QT_TR_NOOP("attack"),	false},
    58 	{"+attack",	"space",	QT_TRANSLATE_NOOP("binds", "attack"),	false},
    58 	{"put",	"mousel",	QT_TR_NOOP("put"),	false},
    59 	{"put",	"mousel",	QT_TRANSLATE_NOOP("binds", "put"),	false},
    59 	{"switch",	"tab",	QT_TR_NOOP("switch"),	true},
    60 	{"switch",	"tab",	QT_TRANSLATE_NOOP("binds", "switch"),	true},
    60 	{"slot 1",	"f1",	QT_TR_NOOP("slot 1"),	false},
    61 	{"slot 1",	"f1",	QT_TRANSLATE_NOOP("binds", "slot 1"),	false},
    61 	{"slot 2",	"f2",	QT_TR_NOOP("slot 2"),	false},
    62 	{"slot 2",	"f2",	QT_TRANSLATE_NOOP("binds", "slot 2"),	false},
    62 	{"slot 3",	"f3",	QT_TR_NOOP("slot 3"),	false},
    63 	{"slot 3",	"f3",	QT_TRANSLATE_NOOP("binds", "slot 3"),	false},
    63 	{"slot 4",	"f4",	QT_TR_NOOP("slot 4"),	false},
    64 	{"slot 4",	"f4",	QT_TRANSLATE_NOOP("binds", "slot 4"),	false},
    64 	{"slot 5",	"f5",	QT_TR_NOOP("slot 5"),	false},
    65 	{"slot 5",	"f5",	QT_TRANSLATE_NOOP("binds", "slot 5"),	false},
    65 	{"slot 6",	"f6",	QT_TR_NOOP("slot 6"),	false},
    66 	{"slot 6",	"f6",	QT_TRANSLATE_NOOP("binds", "slot 6"),	false},
    66 	{"slot 7",	"f7",	QT_TR_NOOP("slot 7"),	false},
    67 	{"slot 7",	"f7",	QT_TRANSLATE_NOOP("binds", "slot 7"),	false},
    67 	{"slot 8",	"f8",	QT_TR_NOOP("slot 8"),	true},
    68 	{"slot 8",	"f8",	QT_TRANSLATE_NOOP("binds", "slot 8"),	true},
    68 	{"timer 1",	"1",	QT_TR_NOOP("timer 1 sec"),	false},
    69 	{"timer 1",	"1",	QT_TRANSLATE_NOOP("binds", "timer 1 sec"),	false},
    69 	{"timer 2",	"2",	QT_TR_NOOP("timer 2 sec"),	false},
    70 	{"timer 2",	"2",	QT_TRANSLATE_NOOP("binds", "timer 2 sec"),	false},
    70 	{"timer 3",	"3",	QT_TR_NOOP("timer 3 sec"),	false},
    71 	{"timer 3",	"3",	QT_TRANSLATE_NOOP("binds", "timer 3 sec"),	false},
    71 	{"timer 4",	"4",	QT_TR_NOOP("timer 4 sec"),	false},
    72 	{"timer 4",	"4",	QT_TRANSLATE_NOOP("binds", "timer 4 sec"),	false},
    72 	{"timer 5",	"5",	QT_TR_NOOP("timer 5 sec"),	true},
    73 	{"timer 5",	"5",	QT_TRANSLATE_NOOP("binds", "timer 5 sec"),	true},
    73 	{"capture",	"f11",	QT_TR_NOOP("capture"),	false},
    74 	{"capture",	"f11",	QT_TRANSLATE_NOOP("binds", "capture"),	false},
    74 	{"quit",	"f10",	QT_TR_NOOP("quit"),	false}
    75 	{"quit",	"f10",	QT_TRANSLATE_NOOP("binds", "quit"),	false}
    75 };
    76 };
    76 
    77 
    77 #endif // BINDS_H
    78 #endif // BINDS_H