Export useraction slots to scripting
All slots not requiring to be triggered from a QAction are exported. This means that switchToDesktop is not exported but also not required, as we have this through the properties. Needs documentation...
This commit is contained in:
parent
2008982069
commit
6185bf00d3
2 changed files with 137 additions and 0 deletions
|
@ -66,6 +66,77 @@ GETTER(int, desktopGridHeight)
|
|||
|
||||
#undef GETTER
|
||||
|
||||
#define SLOTWRAPPER( name ) \
|
||||
void WorkspaceWrapper::name( ) { \
|
||||
Workspace::self()->name(); \
|
||||
}
|
||||
|
||||
SLOTWRAPPER(slotSwitchDesktopNext)
|
||||
SLOTWRAPPER(slotSwitchDesktopPrevious)
|
||||
SLOTWRAPPER(slotSwitchDesktopRight)
|
||||
SLOTWRAPPER(slotSwitchDesktopLeft)
|
||||
SLOTWRAPPER(slotSwitchDesktopUp)
|
||||
SLOTWRAPPER(slotSwitchDesktopDown)
|
||||
|
||||
SLOTWRAPPER(slotSwitchToNextScreen)
|
||||
SLOTWRAPPER(slotWindowToNextScreen)
|
||||
SLOTWRAPPER(slotToggleShowDesktop)
|
||||
|
||||
SLOTWRAPPER(slotWindowMaximize)
|
||||
SLOTWRAPPER(slotWindowMaximizeVertical)
|
||||
SLOTWRAPPER(slotWindowMaximizeHorizontal)
|
||||
SLOTWRAPPER(slotWindowMinimize)
|
||||
SLOTWRAPPER(slotWindowShade)
|
||||
SLOTWRAPPER(slotWindowRaise)
|
||||
SLOTWRAPPER(slotWindowLower)
|
||||
SLOTWRAPPER(slotWindowRaiseOrLower)
|
||||
SLOTWRAPPER(slotActivateAttentionWindow)
|
||||
SLOTWRAPPER(slotWindowPackLeft)
|
||||
SLOTWRAPPER(slotWindowPackRight)
|
||||
SLOTWRAPPER(slotWindowPackUp)
|
||||
SLOTWRAPPER(slotWindowPackDown)
|
||||
SLOTWRAPPER(slotWindowGrowHorizontal)
|
||||
SLOTWRAPPER(slotWindowGrowVertical)
|
||||
SLOTWRAPPER(slotWindowShrinkHorizontal)
|
||||
SLOTWRAPPER(slotWindowShrinkVertical)
|
||||
SLOTWRAPPER(slotWindowQuickTileLeft)
|
||||
SLOTWRAPPER(slotWindowQuickTileRight)
|
||||
SLOTWRAPPER(slotWindowQuickTileTopLeft)
|
||||
SLOTWRAPPER(slotWindowQuickTileTopRight)
|
||||
SLOTWRAPPER(slotWindowQuickTileBottomLeft)
|
||||
SLOTWRAPPER(slotWindowQuickTileBottomRight)
|
||||
|
||||
SLOTWRAPPER(slotSwitchWindowUp)
|
||||
SLOTWRAPPER(slotSwitchWindowDown)
|
||||
SLOTWRAPPER(slotSwitchWindowRight)
|
||||
SLOTWRAPPER(slotSwitchWindowLeft)
|
||||
|
||||
SLOTWRAPPER(slotIncreaseWindowOpacity)
|
||||
SLOTWRAPPER(slotLowerWindowOpacity)
|
||||
|
||||
SLOTWRAPPER(slotWindowOperations)
|
||||
SLOTWRAPPER(slotWindowClose)
|
||||
SLOTWRAPPER(slotWindowMove)
|
||||
SLOTWRAPPER(slotWindowResize)
|
||||
SLOTWRAPPER(slotWindowAbove)
|
||||
SLOTWRAPPER(slotWindowBelow)
|
||||
SLOTWRAPPER(slotWindowOnAllDesktops)
|
||||
SLOTWRAPPER(slotWindowFullScreen)
|
||||
SLOTWRAPPER(slotWindowNoBorder)
|
||||
|
||||
SLOTWRAPPER(slotWindowToNextDesktop)
|
||||
SLOTWRAPPER(slotWindowToPreviousDesktop)
|
||||
SLOTWRAPPER(slotWindowToDesktopRight)
|
||||
SLOTWRAPPER(slotWindowToDesktopLeft)
|
||||
SLOTWRAPPER(slotWindowToDesktopUp)
|
||||
SLOTWRAPPER(slotWindowToDesktopDown)
|
||||
|
||||
SLOTWRAPPER(slotSwitchToTabLeft)
|
||||
SLOTWRAPPER(slotSwitchToTabRight)
|
||||
SLOTWRAPPER(slotRemoveFromGroup)
|
||||
|
||||
#undef SLOTWRAPPER
|
||||
|
||||
void WorkspaceWrapper::setActiveClient(KWin::Client* client)
|
||||
{
|
||||
KWin::Workspace::self()->activateClient(client);
|
||||
|
|
|
@ -153,6 +153,72 @@ void setter( rettype val );
|
|||
**/
|
||||
Q_SCRIPTABLE QRect clientArea(ClientAreaOption option, const Client* client) const;
|
||||
|
||||
public Q_SLOTS:
|
||||
// all the available key bindings
|
||||
void slotSwitchDesktopNext();
|
||||
void slotSwitchDesktopPrevious();
|
||||
void slotSwitchDesktopRight();
|
||||
void slotSwitchDesktopLeft();
|
||||
void slotSwitchDesktopUp();
|
||||
void slotSwitchDesktopDown();
|
||||
|
||||
void slotSwitchToNextScreen();
|
||||
void slotWindowToNextScreen();
|
||||
void slotToggleShowDesktop();
|
||||
|
||||
void slotWindowMaximize();
|
||||
void slotWindowMaximizeVertical();
|
||||
void slotWindowMaximizeHorizontal();
|
||||
void slotWindowMinimize();
|
||||
void slotWindowShade();
|
||||
void slotWindowRaise();
|
||||
void slotWindowLower();
|
||||
void slotWindowRaiseOrLower();
|
||||
void slotActivateAttentionWindow();
|
||||
void slotWindowPackLeft();
|
||||
void slotWindowPackRight();
|
||||
void slotWindowPackUp();
|
||||
void slotWindowPackDown();
|
||||
void slotWindowGrowHorizontal();
|
||||
void slotWindowGrowVertical();
|
||||
void slotWindowShrinkHorizontal();
|
||||
void slotWindowShrinkVertical();
|
||||
void slotWindowQuickTileLeft();
|
||||
void slotWindowQuickTileRight();
|
||||
void slotWindowQuickTileTopLeft();
|
||||
void slotWindowQuickTileTopRight();
|
||||
void slotWindowQuickTileBottomLeft();
|
||||
void slotWindowQuickTileBottomRight();
|
||||
|
||||
void slotSwitchWindowUp();
|
||||
void slotSwitchWindowDown();
|
||||
void slotSwitchWindowRight();
|
||||
void slotSwitchWindowLeft();
|
||||
|
||||
void slotIncreaseWindowOpacity();
|
||||
void slotLowerWindowOpacity();
|
||||
|
||||
void slotWindowOperations();
|
||||
void slotWindowClose();
|
||||
void slotWindowMove();
|
||||
void slotWindowResize();
|
||||
void slotWindowAbove();
|
||||
void slotWindowBelow();
|
||||
void slotWindowOnAllDesktops();
|
||||
void slotWindowFullScreen();
|
||||
void slotWindowNoBorder();
|
||||
|
||||
void slotWindowToNextDesktop();
|
||||
void slotWindowToPreviousDesktop();
|
||||
void slotWindowToDesktopRight();
|
||||
void slotWindowToDesktopLeft();
|
||||
void slotWindowToDesktopUp();
|
||||
void slotWindowToDesktopDown();
|
||||
|
||||
void slotSwitchToTabLeft(); // Slot to move left the active Client.
|
||||
void slotSwitchToTabRight(); // Slot to move right the active Client.
|
||||
void slotRemoveFromGroup(); // Slot to remove the active client from its group.
|
||||
|
||||
private Q_SLOTS:
|
||||
void setupClientConnections(KWin::Client* client);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue