Changeset View
Changeset View
Standalone View
Standalone View
workspace.h
Show First 20 Lines • Show All 365 Lines • ▼ Show 20 Line(s) | 254 | public: | |||
---|---|---|---|---|---|
366 | 366 | | |||
367 | void registerEventFilter(X11EventFilter *filter); | 367 | void registerEventFilter(X11EventFilter *filter); | ||
368 | void unregisterEventFilter(X11EventFilter *filter); | 368 | void unregisterEventFilter(X11EventFilter *filter); | ||
369 | 369 | | |||
370 | void markXStackingOrderAsDirty(); | 370 | void markXStackingOrderAsDirty(); | ||
371 | 371 | | |||
372 | void quickTileWindow(QuickTileMode mode); | 372 | void quickTileWindow(QuickTileMode mode); | ||
373 | 373 | | |||
374 | enum Direction { | ||||
375 | DirectionNorth, | ||||
376 | DirectionEast, | ||||
377 | DirectionSouth, | ||||
378 | DirectionWest | ||||
379 | }; | ||||
380 | void switchWindow(Direction direction); | ||||
381 | | ||||
374 | public Q_SLOTS: | 382 | public Q_SLOTS: | ||
375 | void performWindowOperation(KWin::AbstractClient* c, Options::WindowOperation op); | 383 | void performWindowOperation(KWin::AbstractClient* c, Options::WindowOperation op); | ||
376 | // Keybindings | 384 | // Keybindings | ||
377 | //void slotSwitchToWindow( int ); | 385 | //void slotSwitchToWindow( int ); | ||
378 | void slotWindowToDesktop(); | 386 | void slotWindowToDesktop(); | ||
379 | 387 | | |||
380 | //void slotWindowToListPosition( int ); | 388 | //void slotWindowToListPosition( int ); | ||
381 | void slotSwitchToScreen(); | 389 | void slotSwitchToScreen(); | ||
Show All 17 Lines | |||||
399 | void slotWindowPackRight(); | 407 | void slotWindowPackRight(); | ||
400 | void slotWindowPackUp(); | 408 | void slotWindowPackUp(); | ||
401 | void slotWindowPackDown(); | 409 | void slotWindowPackDown(); | ||
402 | void slotWindowGrowHorizontal(); | 410 | void slotWindowGrowHorizontal(); | ||
403 | void slotWindowGrowVertical(); | 411 | void slotWindowGrowVertical(); | ||
404 | void slotWindowShrinkHorizontal(); | 412 | void slotWindowShrinkHorizontal(); | ||
405 | void slotWindowShrinkVertical(); | 413 | void slotWindowShrinkVertical(); | ||
406 | 414 | | |||
407 | void slotSwitchWindowUp(); | | |||
408 | void slotSwitchWindowDown(); | | |||
409 | void slotSwitchWindowRight(); | | |||
410 | void slotSwitchWindowLeft(); | | |||
411 | | ||||
412 | void slotIncreaseWindowOpacity(); | 415 | void slotIncreaseWindowOpacity(); | ||
413 | void slotLowerWindowOpacity(); | 416 | void slotLowerWindowOpacity(); | ||
414 | 417 | | |||
415 | void slotWindowOperations(); | 418 | void slotWindowOperations(); | ||
416 | void slotWindowClose(); | 419 | void slotWindowClose(); | ||
417 | void slotWindowMove(); | 420 | void slotWindowMove(); | ||
418 | void slotWindowResize(); | 421 | void slotWindowResize(); | ||
419 | void slotWindowAbove(); | 422 | void slotWindowAbove(); | ||
▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | |||||
491 | 494 | | |||
492 | private: | 495 | private: | ||
493 | void init(); | 496 | void init(); | ||
494 | void initShortcuts(); | 497 | void initShortcuts(); | ||
495 | template <typename Slot> | 498 | template <typename Slot> | ||
496 | void initShortcut(const QString &actionName, const QString &description, const QKeySequence &shortcut, | 499 | void initShortcut(const QString &actionName, const QString &description, const QKeySequence &shortcut, | ||
497 | Slot slot, const QVariant &data = QVariant()); | 500 | Slot slot, const QVariant &data = QVariant()); | ||
498 | void setupWindowShortcut(AbstractClient* c); | 501 | void setupWindowShortcut(AbstractClient* c); | ||
499 | enum Direction { | | |||
500 | DirectionNorth, | | |||
501 | DirectionEast, | | |||
502 | DirectionSouth, | | |||
503 | DirectionWest | | |||
504 | }; | | |||
505 | void switchWindow(Direction direction); | | |||
506 | bool switchWindow(AbstractClient *c, Direction direction, QPoint curPos, int desktop); | 502 | bool switchWindow(AbstractClient *c, Direction direction, QPoint curPos, int desktop); | ||
507 | 503 | | |||
508 | void propagateClients(bool propagate_new_clients); // Called only from updateStackingOrder | 504 | void propagateClients(bool propagate_new_clients); // Called only from updateStackingOrder | ||
509 | ToplevelList constrainedStackingOrder(); | 505 | ToplevelList constrainedStackingOrder(); | ||
510 | void raiseClientWithinApplication(AbstractClient* c); | 506 | void raiseClientWithinApplication(AbstractClient* c); | ||
511 | void lowerClientWithinApplication(AbstractClient* c); | 507 | void lowerClientWithinApplication(AbstractClient* c); | ||
512 | bool allowFullClientRaising(const AbstractClient* c, xcb_timestamp_t timestamp); | 508 | bool allowFullClientRaising(const AbstractClient* c, xcb_timestamp_t timestamp); | ||
513 | bool keepTransientAbove(const AbstractClient* mainwindow, const AbstractClient* transient); | 509 | bool keepTransientAbove(const AbstractClient* mainwindow, const AbstractClient* transient); | ||
▲ Show 20 Lines • Show All 259 Lines • Show Last 20 Lines |