diff options
author | Jennifer Liebel <jliebel94@gmail.com> | 2014-11-18 13:07:45 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:59 +0000 |
commit | 2a5500567544ef4e70528c0da0cf927d407dbf78 (patch) | |
tree | cf059658b3f551d4b4e23851876ad4cda082f988 /svtools | |
parent | 24afc4f09d29881159ed1f58d92b714c690534da (diff) |
changed timers to idle
Change-Id: I0d2119a297c9a6d9b99676a561ddf4dd654ecaea
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/imivctl.hxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/imivctl1.cxx | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx index ed244ad52090..688516acba38 100644 --- a/svtools/source/contnr/imivctl.hxx +++ b/svtools/source/contnr/imivctl.hxx @@ -165,7 +165,7 @@ class SvxIconChoiceCtrl_Impl Rectangle aCurSelectionRect; std::vector<Rectangle*> aSelectedRectList; Idle aEditIdle; // for editing in place - Timer aAutoArrangeTimer; + Idle aAutoArrangeIdle; Timer aDocRectChangedTimer; Timer aVisRectChangedTimer; Idle aCallSelectHdlIdle; diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index d25650802c42..8e7fcd13a0d3 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -137,8 +137,8 @@ SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl( aEditIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST ); aEditIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,EditTimeoutHdl)); - aAutoArrangeTimer.SetTimeout( 100 ); - aAutoArrangeTimer.SetTimeoutHdl(LINK(this,SvxIconChoiceCtrl_Impl,AutoArrangeHdl)); + aAutoArrangeIdle.SetPriority( VCL_IDLE_PRIORITY_LOW ); + aAutoArrangeIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,AutoArrangeHdl)); aCallSelectHdlIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST ); aCallSelectHdlIdle.SetIdleHdl( LINK(this,SvxIconChoiceCtrl_Impl,CallSelectHdlHdl)); @@ -583,7 +583,7 @@ void SvxIconChoiceCtrl_Impl::ImpArrange( bool bKeepPredecessors ) Rectangle aCurOutputArea( GetOutputRect() ); if( (nWinBits & WB_SMART_ARRANGE) && aCurOutputArea.TopLeft() != aEmptyPoint ) bUpdateMode = false; - aAutoArrangeTimer.Stop(); + aAutoArrangeIdle.Stop(); nFlags &= ~F_MOVED_ENTRIES; nFlags |= F_ARRANGING; StopEditTimer(); @@ -1901,7 +1901,7 @@ void SvxIconChoiceCtrl_Impl::SetEntryPos( SvxIconChoiceCtrlEntry* pEntry, const { SvxIconChoiceCtrlEntry* pPrev = FindEntryPredecessor( pEntry, rPos ); SetEntryPredecessor( pEntry, pPrev ); - aAutoArrangeTimer.Start(); + aAutoArrangeIdle.Start(); } ShowCursor( true ); } @@ -2888,7 +2888,7 @@ void SvxIconChoiceCtrl_Impl::ClearSelectedRectList() IMPL_LINK_NOARG(SvxIconChoiceCtrl_Impl, AutoArrangeHdl) { - aAutoArrangeTimer.Stop(); + aAutoArrangeIdle.Stop(); Arrange( IsAutoArrange() ); return 0; } @@ -3506,7 +3506,7 @@ void SvxIconChoiceCtrl_Impl::SetPositionMode( SvxIconChoiceCtrlPositionMode eMod // unwanted overlaps, as these entries aren't taken into account in // Arrange. if( aEntries.size() ) - aAutoArrangeTimer.Start(); + aAutoArrangeIdle.Start(); return; } @@ -3520,7 +3520,7 @@ void SvxIconChoiceCtrl_Impl::SetPositionMode( SvxIconChoiceCtrlPositionMode eMod } if( aEntries.size() ) - aAutoArrangeTimer.Start(); + aAutoArrangeIdle.Start(); } else if( ePositionMode == IcnViewPositionModeAutoAdjust ) { @@ -3575,7 +3575,7 @@ void SvxIconChoiceCtrl_Impl::SetEntryPredecessor( SvxIconChoiceCtrlEntry* pEntry if( bSetHead ) pHead = pEntry; pEntry->SetFlags( ICNVIEW_FLAG_PRED_SET ); - aAutoArrangeTimer.Start(); + aAutoArrangeIdle.Start(); } SvxIconChoiceCtrlEntry* SvxIconChoiceCtrl_Impl::FindEntryPredecessor( SvxIconChoiceCtrlEntry* pEntry, |