71class KWIN_EXPORT
TabBox :
public QObject
89 QList<Window *> currentClientList();
94 void setCurrentClient(
Window *newClient);
105 void reset(
bool partial_reset =
false);
110 void nextPrev(
bool next =
true);
131 void hide(
bool abort =
false);
162 return m_displayRefcount > 0;
173 bool handleMouseEvent(QMouseEvent *event);
174 bool handleWheelEvent(QWheelEvent *event);
175 void grabbedKeyEvent(QKeyEvent *event);
182 void initShortcuts();
186 void keyPress(
int key);
187 void modifiersReleased();
191 return m_forcedGlobalMouseGrab;
196 return m_noModifierGrab;
198 void setCurrentIndex(QModelIndex index,
bool notifyEffects =
true);
206 void close(
bool abort =
false);
207 void accept(
bool closeTabBox =
true);
208 void slotWalkThroughWindows();
209 void slotWalkBackThroughWindows();
210 void slotWalkThroughWindowsAlternative();
211 void slotWalkBackThroughWindowsAlternative();
212 void slotWalkThroughCurrentAppWindows();
213 void slotWalkBackThroughCurrentAppWindows();
214 void slotWalkThroughCurrentAppWindowsAlternative();
215 void slotWalkBackThroughCurrentAppWindowsAlternative();
228 explicit TabBox(QObject *parent);
229 void loadConfig(
const KConfigGroup &config,
TabBoxConfig &tabBoxConfig);
231 bool startKDEWalkThroughWindows(
TabBoxMode mode);
232 void navigatingThroughWindows(
bool forward,
const QKeySequence &shortcut,
TabBoxMode mode);
233 void KDEWalkThroughWindows(
bool forward);
234 void CDEWalkThroughWindows(
bool forward);
235 void KDEOneStepThroughWindows(
bool forward,
TabBoxMode mode);
236 bool establishTabBoxGrab();
237 void removeTabBoxGrab();
238 template<
typename Slot>
239 void key(
const KLazyLocalizedString &actionName, Slot slot,
const QKeySequence &shortcut = QKeySequence());
241 void shadeActivate(
Window *c);
247 void globalShortcutChanged(QAction *action,
const QKeySequence &seq);
254 QTimer m_delayedShowTimer;
255 int m_displayRefcount;
266 bool m_noModifierGrab;
267 QKeySequence m_cutWalkThroughWindows, m_cutWalkThroughWindowsReverse;
268 QKeySequence m_cutWalkThroughWindowsAlternative, m_cutWalkThroughWindowsAlternativeReverse;
269 QKeySequence m_cutWalkThroughCurrentAppWindows, m_cutWalkThroughCurrentAppWindowsReverse;
270 QKeySequence m_cutWalkThroughCurrentAppWindowsAlternative, m_cutWalkThroughCurrentAppWindowsAlternativeReverse;
271 bool m_forcedGlobalMouseGrab;
273 QList<ElectricBorder> m_borderActivate, m_borderAlternativeActivate;
274 QHash<ElectricBorder, QAction *> m_touchActivate;
275 QHash<ElectricBorder, QAction *> m_touchAlternativeActivate;
276 std::unique_ptr<X11EventFilter> m_x11EventFilter;