summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTobias Madl <tobias.madl.dev@gmail.com>2014-11-18 15:11:29 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2014-12-09 12:35:00 +0000
commitec5851361bcf636c57691988b669d76313762a8c (patch)
treedf3181e9488048e27ca082297693226b56c381bd /sfx2
parent2a5500567544ef4e70528c0da0cf927d407dbf78 (diff)
changed timers to idles
Change-Id: I1595a9711e3d5c564f1c9028cbb756f2b0ca45f1
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/basedlgs.cxx28
-rw-r--r--sfx2/source/dialog/dockwin.cxx16
2 files changed, 22 insertions, 22 deletions
diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx
index dbabdba1fa9f..8be4a17b9370 100644
--- a/sfx2/source/dialog/basedlgs.cxx
+++ b/sfx2/source/dialog/basedlgs.cxx
@@ -52,7 +52,7 @@ public:
bool bConstructed;
void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE;
- Timer aMoveTimer;
+ Idle aMoveIdle;
};
void SfxModelessDialog_Impl::Notify( SfxBroadcaster&, const SfxHint& rHint )
@@ -75,7 +75,7 @@ public:
OString aWinState;
SfxChildWindow* pMgr;
bool bConstructed;
- Timer aMoveTimer;
+ Idle aMoveIdle;
void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE;
};
@@ -267,7 +267,7 @@ void SfxModelessDialog::Resize()
if ( pImp->bConstructed && pImp->pMgr )
{
// start timer for saving window status information
- pImp->aMoveTimer.Start();
+ pImp->aMoveIdle.Start();
}
}
@@ -277,7 +277,7 @@ void SfxModelessDialog::Move()
if ( pImp->bConstructed && pImp->pMgr && IsReallyVisible() )
{
// start timer for saving window status information
- pImp->aMoveTimer.Start();
+ pImp->aMoveIdle.Start();
}
}
@@ -287,7 +287,7 @@ void SfxModelessDialog::Move()
*/
IMPL_LINK_NOARG(SfxModelessDialog, TimerHdl)
{
- pImp->aMoveTimer.Stop();
+ pImp->aMoveIdle.Stop();
if ( pImp->bConstructed && pImp->pMgr )
{
if ( !IsRollUp() )
@@ -318,8 +318,8 @@ void SfxModelessDialog::Init(SfxBindings *pBindinx, SfxChildWindow *pCW)
SetUniqueId( GetHelpId() );
if ( pBindinx )
pImp->StartListening( *pBindinx );
- pImp->aMoveTimer.SetTimeout(50);
- pImp->aMoveTimer.SetTimeoutHdl(LINK(this,SfxModelessDialog,TimerHdl));
+ pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE);
+ pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxModelessDialog,TimerHdl));
}
/* [Description]
@@ -457,8 +457,8 @@ SfxFloatingWindow::SfxFloatingWindow( SfxBindings *pBindinx,
SetHelpId("");
if ( pBindinx )
pImp->StartListening( *pBindinx );
- pImp->aMoveTimer.SetTimeout(50);
- pImp->aMoveTimer.SetTimeoutHdl(LINK(this,SfxFloatingWindow,TimerHdl));
+ pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE);
+ pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxFloatingWindow,TimerHdl));
}
SfxFloatingWindow::SfxFloatingWindow( SfxBindings *pBindinx,
@@ -478,8 +478,8 @@ SfxFloatingWindow::SfxFloatingWindow( SfxBindings *pBindinx,
if ( pBindinx )
pImp->StartListening( *pBindinx );
- pImp->aMoveTimer.SetTimeout(50);
- pImp->aMoveTimer.SetTimeoutHdl(LINK(this,SfxFloatingWindow,TimerHdl));
+ pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE);
+ pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxFloatingWindow,TimerHdl));
}
bool SfxFloatingWindow::Close()
@@ -532,7 +532,7 @@ void SfxFloatingWindow::Resize()
if ( pImp->bConstructed && pImp->pMgr )
{
// start timer for saving window status information
- pImp->aMoveTimer.Start();
+ pImp->aMoveIdle.Start();
}
}
@@ -542,7 +542,7 @@ void SfxFloatingWindow::Move()
if ( pImp->bConstructed && pImp->pMgr )
{
// start timer for saving window status information
- pImp->aMoveTimer.Start();
+ pImp->aMoveIdle.Start();
}
}
@@ -552,7 +552,7 @@ void SfxFloatingWindow::Move()
*/
IMPL_LINK_NOARG(SfxFloatingWindow, TimerHdl)
{
- pImp->aMoveTimer.Stop();
+ pImp->aMoveIdle.Stop();
if ( pImp->bConstructed && pImp->pMgr )
{
if ( !IsRollUp() )
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx
index fa4c31cc056c..b5fabebb2faf 100644
--- a/sfx2/source/dialog/dockwin.cxx
+++ b/sfx2/source/dialog/dockwin.cxx
@@ -403,7 +403,7 @@ friend class SfxDockingWindow;
Size aMinSize;
SfxSplitWindow* pSplitWin;
bool bSplitable;
- Timer aMoveTimer;
+ Idle aMoveIdle;
// The following members are only valid in the time from startDocking to
// EndDocking:
@@ -447,7 +447,7 @@ void SfxDockingWindow::Resize()
if ( IsFloatingMode() )
{
// start timer for saving window status information
- pImp->aMoveTimer.Start();
+ pImp->aMoveIdle.Start();
}
else
{
@@ -888,8 +888,8 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW,
pImp->nPos = pImp->nDockPos = 0;
pImp->bNewLine = false;
pImp->SetLastAlignment(SFX_ALIGN_NOALIGNMENT);
- pImp->aMoveTimer.SetTimeout(50);
- pImp->aMoveTimer.SetTimeoutHdl(LINK(this,SfxDockingWindow,TimerHdl));
+ pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE);
+ pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxDockingWindow,TimerHdl));
}
@@ -939,8 +939,8 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW,
pImp->nPos = pImp->nDockPos = 0;
pImp->bNewLine = false;
pImp->SetLastAlignment(SFX_ALIGN_NOALIGNMENT);
- pImp->aMoveTimer.SetTimeout(50);
- pImp->aMoveTimer.SetTimeoutHdl(LINK(this,SfxDockingWindow,TimerHdl));
+ pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE);
+ pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxDockingWindow,TimerHdl));
}
@@ -1869,12 +1869,12 @@ void SfxDockingWindow::StateChanged( StateChangedType nStateChange )
void SfxDockingWindow::Move()
{
if ( pImp )
- pImp->aMoveTimer.Start();
+ pImp->aMoveIdle.Start();
}
IMPL_LINK_NOARG(SfxDockingWindow, TimerHdl)
{
- pImp->aMoveTimer.Stop();
+ pImp->aMoveIdle.Stop();
if ( IsReallyVisible() && IsFloatingMode() )
{
if( !GetFloatingWindow()->IsRollUp() )