Changeset View
Changeset View
Standalone View
Standalone View
kwinbindings.cpp
Show All 40 Lines | |||||
41 | 41 | | |||
42 | #define DEF5( name, key, functor, value ) \ | 42 | #define DEF5( name, key, functor, value ) \ | ||
43 | initShortcut(QStringLiteral(name).arg(value), i18n(name, value), key, functor, value); | 43 | initShortcut(QStringLiteral(name).arg(value), i18n(name, value), key, functor, value); | ||
44 | 44 | | |||
45 | #define DEF6( name, key, target, fnSlot ) \ | 45 | #define DEF6( name, key, target, fnSlot ) \ | ||
46 | initShortcut(QStringLiteral(name), i18n(name), key, target, &fnSlot); | 46 | initShortcut(QStringLiteral(name), i18n(name), key, target, &fnSlot); | ||
47 | 47 | | |||
48 | 48 | | |||
49 | DEF(I18N_NOOP("Walk Through Window Tabs"), 0, slotActivateNextTab); | | |||
50 | DEF(I18N_NOOP("Walk Through Window Tabs (Reverse)"), 0, slotActivatePrevTab); | | |||
51 | DEF(I18N_NOOP("Remove Window From Group"), 0, slotUntab); | | |||
52 | | ||||
53 | DEF(I18N_NOOP("Window Operations Menu"), | 49 | DEF(I18N_NOOP("Window Operations Menu"), | ||
54 | Qt::ALT + Qt::Key_F3, slotWindowOperations); | 50 | Qt::ALT + Qt::Key_F3, slotWindowOperations); | ||
55 | DEF2("Window Close", I18N_NOOP("Close Window"), | 51 | DEF2("Window Close", I18N_NOOP("Close Window"), | ||
56 | Qt::ALT + Qt::Key_F4, slotWindowClose); | 52 | Qt::ALT + Qt::Key_F4, slotWindowClose); | ||
57 | DEF2("Window Maximize", I18N_NOOP("Maximize Window"), | 53 | DEF2("Window Maximize", I18N_NOOP("Maximize Window"), | ||
58 | Qt::META + Qt::Key_PageUp, slotWindowMaximize); | 54 | Qt::META + Qt::Key_PageUp, slotWindowMaximize); | ||
59 | DEF2("Window Maximize Vertical", I18N_NOOP("Maximize Window Vertically"), | 55 | DEF2("Window Maximize Vertical", I18N_NOOP("Maximize Window Vertically"), | ||
60 | 0, slotWindowMaximizeVertical); | 56 | 0, slotWindowMaximizeVertical); | ||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | |||||
129 | DEF2("Increase Opacity", I18N_NOOP("Increase Opacity of Active Window by 5 %"), | 125 | DEF2("Increase Opacity", I18N_NOOP("Increase Opacity of Active Window by 5 %"), | ||
130 | 0, slotIncreaseWindowOpacity); | 126 | 0, slotIncreaseWindowOpacity); | ||
131 | DEF2("Decrease Opacity", I18N_NOOP("Decrease Opacity of Active Window by 5 %"), | 127 | DEF2("Decrease Opacity", I18N_NOOP("Decrease Opacity of Active Window by 5 %"), | ||
132 | 0, slotLowerWindowOpacity); | 128 | 0, slotLowerWindowOpacity); | ||
133 | 129 | | |||
134 | DEF2("Window On All Desktops", I18N_NOOP("Keep Window on All Desktops"), | 130 | DEF2("Window On All Desktops", I18N_NOOP("Keep Window on All Desktops"), | ||
135 | 0, slotWindowOnAllDesktops); | 131 | 0, slotWindowOnAllDesktops); | ||
136 | 132 | | |||
137 | for (int i = 1; i < 21; ++i) { | 133 | for (int i = 1; i < 21; ++i) { | ||
Lint: syntaxError: syntax error | |||||
138 | DEF5(I18N_NOOP("Window to Desktop %1"), 0, std::bind(&Workspace::slotWindowToDesktop, this, i), i); | 134 | DEF5(I18N_NOOP("Window to Desktop %1"), 0, std::bind(&Workspace::slotWindowToDesktop, this, i), i); | ||
139 | } | 135 | } | ||
140 | DEF(I18N_NOOP("Window to Next Desktop"), 0, slotWindowToNextDesktop); | 136 | DEF(I18N_NOOP("Window to Next Desktop"), 0, slotWindowToNextDesktop); | ||
141 | DEF(I18N_NOOP("Window to Previous Desktop"), 0, slotWindowToPreviousDesktop); | 137 | DEF(I18N_NOOP("Window to Previous Desktop"), 0, slotWindowToPreviousDesktop); | ||
142 | DEF(I18N_NOOP("Window One Desktop to the Right"), 0, slotWindowToDesktopRight); | 138 | DEF(I18N_NOOP("Window One Desktop to the Right"), 0, slotWindowToDesktopRight); | ||
143 | DEF(I18N_NOOP("Window One Desktop to the Left"), 0, slotWindowToDesktopLeft); | 139 | DEF(I18N_NOOP("Window One Desktop to the Left"), 0, slotWindowToDesktopLeft); | ||
144 | DEF(I18N_NOOP("Window One Desktop Up"), 0, slotWindowToDesktopUp); | 140 | DEF(I18N_NOOP("Window One Desktop Up"), 0, slotWindowToDesktopUp); | ||
145 | DEF(I18N_NOOP("Window One Desktop Down"), 0, slotWindowToDesktopDown); | 141 | DEF(I18N_NOOP("Window One Desktop Down"), 0, slotWindowToDesktopDown); | ||
Show All 27 Lines |
syntax error