diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-11-20 16:21:17 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:35:04 +0000 |
commit | eef25e0e7c03b53881e19bedb20532950323ef09 (patch) | |
tree | d44b0a32f20ba1a09c62bbb9dfa296eb3b0a3463 /svtools | |
parent | 50fdcff56a863ef69245c628e68d8673830ebbaa (diff) |
changed timers to idles
Change-Id: Iaceef008e7df91f3a9ad54fdaec25f2170100ee0
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/imivctl.hxx | 8 | ||||
-rw-r--r-- | svtools/source/contnr/imivctl1.cxx | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx index 688516acba38..c599a3985520 100644 --- a/svtools/source/contnr/imivctl.hxx +++ b/svtools/source/contnr/imivctl.hxx @@ -166,8 +166,8 @@ class SvxIconChoiceCtrl_Impl std::vector<Rectangle*> aSelectedRectList; Idle aEditIdle; // for editing in place Idle aAutoArrangeIdle; - Timer aDocRectChangedTimer; - Timer aVisRectChangedTimer; + Idle aDocRectChangedIdle; + Idle aVisRectChangedIdle; Idle aCallSelectHdlIdle; Size aVirtOutputSize; Size aImageSize; @@ -308,8 +308,8 @@ class SvxIconChoiceCtrl_Impl { return (ePositionMode == IcnViewPositionModeAutoAdjust); } - void DocRectChanged() { aDocRectChangedTimer.Start(); } - void VisRectChanged() { aVisRectChangedTimer.Start(); } + void DocRectChanged() { aDocRectChangedIdle.Start(); } + void VisRectChanged() { aVisRectChangedIdle.Start(); } void SetOrigin( const Point&, bool bDoNotUpdateWallpaper = false ); DECL_LINK(TextEditEndedHdl, void *); diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index 8e7fcd13a0d3..713b4c9ad774 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -142,10 +142,10 @@ SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl( aCallSelectHdlIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST ); aCallSelectHdlIdle.SetIdleHdl( LINK(this,SvxIconChoiceCtrl_Impl,CallSelectHdlHdl)); - aDocRectChangedTimer.SetTimeout( 50 ); - aDocRectChangedTimer.SetTimeoutHdl(LINK(this,SvxIconChoiceCtrl_Impl,DocRectChangedHdl)); - aVisRectChangedTimer.SetTimeout( 50 ); - aVisRectChangedTimer.SetTimeoutHdl(LINK(this,SvxIconChoiceCtrl_Impl,VisRectChangedHdl)); + aDocRectChangedIdle.SetPriority( VCL_IDLE_PRIORITY_MEDIUM ); + aDocRectChangedIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,DocRectChangedHdl)); + aVisRectChangedIdle.SetPriority( VCL_IDLE_PRIORITY_MEDIUM ); + aVisRectChangedIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,VisRectChangedHdl)); Clear( true ); @@ -2895,14 +2895,14 @@ IMPL_LINK_NOARG(SvxIconChoiceCtrl_Impl, AutoArrangeHdl) IMPL_LINK_NOARG(SvxIconChoiceCtrl_Impl, VisRectChangedHdl) { - aVisRectChangedTimer.Stop(); + aVisRectChangedIdle.Stop(); pView->VisibleRectChanged(); return 0; } IMPL_LINK_NOARG(SvxIconChoiceCtrl_Impl, DocRectChangedHdl) { - aDocRectChangedTimer.Stop(); + aDocRectChangedIdle.Stop(); pView->DocumentRectChanged(); return 0; } |