Modified workspace method names to mark them up as referring to tiling
svn path=/trunk/KDE/kdebase/workspace/; revision=1125434
This commit is contained in:
parent
cb36b296b0
commit
2163f87264
8 changed files with 49 additions and 49 deletions
|
@ -261,7 +261,7 @@ void Workspace::setActiveClient( Client* c, allowed_t )
|
|||
static_cast<EffectsHandlerImpl*>(effects)->windowActivated( active_client ? active_client->effectWindow() : NULL );
|
||||
|
||||
if( tilingEnabled() )
|
||||
notifyWindowActivated( active_client );
|
||||
notifyTilingWindowActivated( active_client );
|
||||
--set_active_client_recursion;
|
||||
}
|
||||
|
||||
|
|
|
@ -896,7 +896,7 @@ void Client::minimize( bool avoid_animation )
|
|||
static_cast<EffectsHandlerImpl*>(effects)->windowMinimized( effectWindow());
|
||||
|
||||
// when tiling, request a rearrangement
|
||||
workspace()->notifyWindowMinimizeToggled( this );
|
||||
workspace()->notifyTilingWindowMinimizeToggled( this );
|
||||
|
||||
// Update states of all other windows in this group
|
||||
if( clientGroup() )
|
||||
|
@ -919,7 +919,7 @@ void Client::unminimize( bool avoid_animation )
|
|||
static_cast<EffectsHandlerImpl*>( effects )->windowUnminimized( effectWindow() );
|
||||
|
||||
// when tiling, request a rearrangement
|
||||
workspace()->notifyWindowMinimizeToggled( this );
|
||||
workspace()->notifyTilingWindowMinimizeToggled( this );
|
||||
|
||||
// Update states of all other windows in this group
|
||||
if( clientGroup() )
|
||||
|
|
10
geometry.cpp
10
geometry.cpp
|
@ -2155,7 +2155,7 @@ void Client::move( int x, int y, ForceGeometry_t force )
|
|||
workspace()->checkActiveScreen( this );
|
||||
workspace()->updateStackingOrder();
|
||||
workspace()->checkUnredirect();
|
||||
workspace()->notifyWindowMove( this, moveResizeGeom, initialMoveResizeGeom );
|
||||
workspace()->notifyTilingWindowMove( this, moveResizeGeom, initialMoveResizeGeom );
|
||||
// client itself is not damaged
|
||||
const QRect deco_rect = decorationRect().translated( geom.x(), geom.y() );
|
||||
addWorkspaceRepaint( deco_rect_before_block );
|
||||
|
@ -2819,9 +2819,9 @@ void Client::finishMoveResize( bool cancel )
|
|||
if( workspace()->tilingEnabled() )
|
||||
{
|
||||
if( wasResize )
|
||||
workspace()->notifyWindowResizeDone( this, moveResizeGeom, initialMoveResizeGeom, cancel );
|
||||
workspace()->notifyTilingWindowResizeDone( this, moveResizeGeom, initialMoveResizeGeom, cancel );
|
||||
else if( wasMove )
|
||||
workspace()->notifyWindowMoveDone( this, moveResizeGeom, initialMoveResizeGeom, cancel );
|
||||
workspace()->notifyTilingWindowMoveDone( this, moveResizeGeom, initialMoveResizeGeom, cancel );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -3095,7 +3095,7 @@ void Client::handleMoveResize( int x, int y, int x_root, int y_root )
|
|||
abort();
|
||||
break;
|
||||
}
|
||||
workspace()->notifyWindowResize( this, moveResizeGeom, initialMoveResizeGeom );
|
||||
workspace()->notifyTilingWindowResize( this, moveResizeGeom, initialMoveResizeGeom );
|
||||
// adjust new size to snap to other windows/borders
|
||||
moveResizeGeom = workspace()->adjustClientSize( this, moveResizeGeom, mode );
|
||||
|
||||
|
@ -3270,7 +3270,7 @@ void Client::handleMoveResize( int x, int y, int x_root, int y_root )
|
|||
|
||||
if ( isMove() )
|
||||
{
|
||||
workspace()->notifyWindowMove( this, moveResizeGeom, initialMoveResizeGeom );
|
||||
workspace()->notifyTilingWindowMove( this, moveResizeGeom, initialMoveResizeGeom );
|
||||
workspace()->checkElectricBorder(globalPos, xTime());
|
||||
}
|
||||
}
|
||||
|
|
2
tile.cpp
2
tile.cpp
|
@ -96,7 +96,7 @@ void Tile::floatTile()
|
|||
restorePreviousGeometry();
|
||||
|
||||
commit();
|
||||
client()->workspace()->notifyWindowActivated( client() );
|
||||
client()->workspace()->notifyTilingWindowActivated( client() );
|
||||
// TODO: notify layout manager
|
||||
}
|
||||
|
||||
|
|
40
tiling.cpp
40
tiling.cpp
|
@ -169,14 +169,14 @@ void Workspace::updateAllTiles()
|
|||
/*
|
||||
* Resize the neighbouring clients to close any gaps
|
||||
*/
|
||||
void Workspace::notifyWindowResize( Client *c, const QRect &moveResizeGeom, const QRect &orig )
|
||||
void Workspace::notifyTilingWindowResize( Client *c, const QRect &moveResizeGeom, const QRect &orig )
|
||||
{
|
||||
if( tilingLayouts.value( c->desktop() ) == NULL )
|
||||
return;
|
||||
tilingLayouts[ c->desktop() ]->clientResized( c, moveResizeGeom, orig );
|
||||
}
|
||||
|
||||
void Workspace::notifyWindowMove( Client *c, const QRect &moveResizeGeom, const QRect &orig )
|
||||
void Workspace::notifyTilingWindowMove( Client *c, const QRect &moveResizeGeom, const QRect &orig )
|
||||
{
|
||||
if( tilingLayouts.value( c->desktop() ) == NULL )
|
||||
{
|
||||
|
@ -187,23 +187,23 @@ void Workspace::notifyWindowMove( Client *c, const QRect &moveResizeGeom, const
|
|||
updateAllTiles();
|
||||
}
|
||||
|
||||
void Workspace::notifyWindowResizeDone( Client *c, const QRect &moveResizeGeom, const QRect &orig, bool canceled )
|
||||
void Workspace::notifyTilingWindowResizeDone( Client *c, const QRect &moveResizeGeom, const QRect &orig, bool canceled )
|
||||
{
|
||||
if( canceled )
|
||||
notifyWindowResize( c, orig, moveResizeGeom );
|
||||
notifyTilingWindowResize( c, orig, moveResizeGeom );
|
||||
else
|
||||
notifyWindowResize( c, moveResizeGeom, orig );
|
||||
notifyTilingWindowResize( c, moveResizeGeom, orig );
|
||||
}
|
||||
|
||||
void Workspace::notifyWindowMoveDone( Client *c, const QRect &moveResizeGeom, const QRect &orig, bool canceled )
|
||||
void Workspace::notifyTilingWindowMoveDone( Client *c, const QRect &moveResizeGeom, const QRect &orig, bool canceled )
|
||||
{
|
||||
if( canceled )
|
||||
notifyWindowMove( c, orig, moveResizeGeom );
|
||||
notifyTilingWindowMove( c, orig, moveResizeGeom );
|
||||
else
|
||||
notifyWindowMove( c, moveResizeGeom, orig );
|
||||
notifyTilingWindowMove( c, moveResizeGeom, orig );
|
||||
}
|
||||
|
||||
void Workspace::notifyWindowDesktopChanged( Client *c, int old_desktop )
|
||||
void Workspace::notifyTilingWindowDesktopChanged( Client *c, int old_desktop )
|
||||
{
|
||||
if( c->desktop() < 1 || c->desktop() > numberOfDesktops() )
|
||||
return;
|
||||
|
@ -229,7 +229,7 @@ void Workspace::notifyWindowDesktopChanged( Client *c, int old_desktop )
|
|||
/*
|
||||
* Implements the 3 raising modes in Window Behaviour -> Advanced
|
||||
*/
|
||||
void Workspace::notifyWindowActivated( Client *c )
|
||||
void Workspace::notifyTilingWindowActivated( Client *c )
|
||||
{
|
||||
if( c == NULL )
|
||||
return;
|
||||
|
@ -271,7 +271,7 @@ void Workspace::notifyWindowActivated( Client *c )
|
|||
}
|
||||
}
|
||||
|
||||
void Workspace::notifyWindowMinimizeToggled( Client *c )
|
||||
void Workspace::notifyTilingWindowMinimizeToggled( Client *c )
|
||||
{
|
||||
if( tilingLayouts.value( c->desktop() ) )
|
||||
{
|
||||
|
@ -279,7 +279,7 @@ void Workspace::notifyWindowMinimizeToggled( Client *c )
|
|||
}
|
||||
}
|
||||
|
||||
void Workspace::notifyWindowMaximized( Client *c, Options::WindowOperation op )
|
||||
void Workspace::notifyTilingWindowMaximized( Client *c, Options::WindowOperation op )
|
||||
{
|
||||
if( tilingLayouts.value( c->desktop() ) )
|
||||
{
|
||||
|
@ -394,42 +394,42 @@ void Workspace::moveTile( int d )
|
|||
}
|
||||
}
|
||||
|
||||
void Workspace::slotLeft()
|
||||
void Workspace::slotFocusTileLeft()
|
||||
{
|
||||
focusTile( Tile::Left );
|
||||
}
|
||||
|
||||
void Workspace::slotRight()
|
||||
void Workspace::slotFocusTileRight()
|
||||
{
|
||||
focusTile( Tile::Right );
|
||||
}
|
||||
|
||||
void Workspace::slotTop()
|
||||
void Workspace::slotFocusTileTop()
|
||||
{
|
||||
focusTile( Tile::Top );
|
||||
}
|
||||
|
||||
void Workspace::slotBottom()
|
||||
void Workspace::slotFocusTileBottom()
|
||||
{
|
||||
focusTile( Tile::Bottom );
|
||||
}
|
||||
|
||||
void Workspace::slotMoveLeft()
|
||||
void Workspace::slotMoveTileLeft()
|
||||
{
|
||||
moveTile( Tile::Left );
|
||||
}
|
||||
|
||||
void Workspace::slotMoveRight()
|
||||
void Workspace::slotMoveTileRight()
|
||||
{
|
||||
moveTile( Tile::Right );
|
||||
}
|
||||
|
||||
void Workspace::slotMoveTop()
|
||||
void Workspace::slotMoveTileTop()
|
||||
{
|
||||
moveTile( Tile::Top );
|
||||
}
|
||||
|
||||
void Workspace::slotMoveBottom()
|
||||
void Workspace::slotMoveTileBottom()
|
||||
{
|
||||
moveTile( Tile::Bottom );
|
||||
}
|
||||
|
|
|
@ -705,7 +705,7 @@ void Workspace::performWindowOperation( Client* c, Options::WindowOperation op )
|
|||
|| op == Options::VMaximizeOp
|
||||
|| op == Options::RestoreOp ) )
|
||||
{
|
||||
notifyWindowMaximized( c, op );
|
||||
notifyTilingWindowMaximized( c, op );
|
||||
}
|
||||
|
||||
if (op == Options::MoveOp || op == Options::UnrestrictedMoveOp )
|
||||
|
|
|
@ -1158,7 +1158,7 @@ void Workspace::slotReconfigure()
|
|||
layout->reconfigureTiling();
|
||||
}
|
||||
// just so that we reset windows in the right manner, 'activate' the current active window
|
||||
notifyWindowActivated( activeClient() );
|
||||
notifyTilingWindowActivated( activeClient() );
|
||||
rootInfo->setSupported( NET::WM2FrameOverlap, mgr->factory()->supports( AbilityExtendIntoClientArea ) );
|
||||
}
|
||||
|
||||
|
@ -1431,7 +1431,7 @@ bool Workspace::setCurrentDesktop( int new_desktop )
|
|||
movingClient->setDesktop( new_desktop );
|
||||
if( tilingEnabled() )
|
||||
{
|
||||
notifyWindowDesktopChanged( movingClient, old_desktop );
|
||||
notifyTilingWindowDesktopChanged( movingClient, old_desktop );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1621,7 +1621,7 @@ void Workspace::sendClientToDesktop( Client* c, int desk, bool dont_activate )
|
|||
else
|
||||
raiseClient( c );
|
||||
|
||||
notifyWindowDesktopChanged( c, old_desktop );
|
||||
notifyTilingWindowDesktopChanged( c, old_desktop );
|
||||
|
||||
ClientList transients_stacking_order = ensureStackingOrder( c->transients() );
|
||||
for( ClientList::ConstIterator it = transients_stacking_order.constBegin();
|
||||
|
|
32
workspace.h
32
workspace.h
|
@ -186,14 +186,14 @@ class Workspace : public QObject, public KDecorationDefines
|
|||
// various points in existing code so that
|
||||
// tiling can take any action if required.
|
||||
// They are defined in tiling.cpp
|
||||
void notifyWindowResize( Client *c, const QRect &moveResizeGeom, const QRect &orig );
|
||||
void notifyWindowMove( Client *c, const QRect &moveResizeGeom, const QRect &orig );
|
||||
void notifyWindowResizeDone( Client *c, const QRect &moveResizeGeom, const QRect &orig, bool canceled );
|
||||
void notifyWindowMoveDone( Client *c, const QRect &moveResizeGeom, const QRect &orig, bool canceled );
|
||||
void notifyWindowDesktopChanged( Client *c, int old_desktop );
|
||||
void notifyWindowActivated( Client *c );
|
||||
void notifyWindowMinimizeToggled( Client *c );
|
||||
void notifyWindowMaximized( Client *c, WindowOperation op );
|
||||
void notifyTilingWindowResize( Client *c, const QRect &moveResizeGeom, const QRect &orig );
|
||||
void notifyTilingWindowMove( Client *c, const QRect &moveResizeGeom, const QRect &orig );
|
||||
void notifyTilingWindowResizeDone( Client *c, const QRect &moveResizeGeom, const QRect &orig, bool canceled );
|
||||
void notifyTilingWindowMoveDone( Client *c, const QRect &moveResizeGeom, const QRect &orig, bool canceled );
|
||||
void notifyTilingWindowDesktopChanged( Client *c, int old_desktop );
|
||||
void notifyTilingWindowActivated( Client *c );
|
||||
void notifyTilingWindowMinimizeToggled( Client *c );
|
||||
void notifyTilingWindowMaximized( Client *c, WindowOperation op );
|
||||
|
||||
Position supportedTilingResizeMode( Client *c, Position currentMode );
|
||||
|
||||
|
@ -698,15 +698,15 @@ class Workspace : public QObject, public KDecorationDefines
|
|||
void slotPreviousTileLayout();
|
||||
|
||||
// Changes the focused client
|
||||
void slotLeft();
|
||||
void slotRight();
|
||||
void slotTop();
|
||||
void slotBottom();
|
||||
void slotFocusTileLeft();
|
||||
void slotFocusTileRight();
|
||||
void slotFocusTileTop();
|
||||
void slotFocusTileBottom();
|
||||
// swaps active and adjacent client.
|
||||
void slotMoveLeft();
|
||||
void slotMoveRight();
|
||||
void slotMoveTop();
|
||||
void slotMoveBottom();
|
||||
void slotMoveTileLeft();
|
||||
void slotMoveTileRight();
|
||||
void slotMoveTileTop();
|
||||
void slotMoveTileBottom();
|
||||
void belowCursor();
|
||||
|
||||
// NOTE: debug method
|
||||
|
|
Loading…
Reference in a new issue