From 826143684d2697a8620373dce18fa5f24332d5cb Mon Sep 17 00:00:00 2001 From: Tobias Madl Date: Wed, 14 Jan 2015 10:21:20 +0100 Subject: Timer: Adapted all idle includes and enum uses Change-Id: Id4ef36d6c80ad62306bdbaa7094c2cb0b8ff77da --- svtools/source/contnr/imivctl.hxx | 1 + svtools/source/contnr/imivctl1.cxx | 12 ++++++------ svtools/source/contnr/svimpbox.cxx | 4 ++-- svtools/source/misc/filechangedchecker.cxx | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) (limited to 'svtools') diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx index 9a448e458df1..a5027d3829ac 100644 --- a/svtools/source/contnr/imivctl.hxx +++ b/svtools/source/contnr/imivctl.hxx @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include "svtaccessiblefactory.hxx" diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index fe8d62d3864a..da10fb70dc04 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -135,16 +135,16 @@ SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl( nHorSBarHeight = aHorSBar.GetSizePixel().Height(); nVerSBarWidth = aVerSBar.GetSizePixel().Width(); - aEditIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST ); + aEditIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST ); aEditIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,EditTimeoutHdl)); - aAutoArrangeIdle.SetPriority( VCL_IDLE_PRIORITY_LOW ); + aAutoArrangeIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOW ); aAutoArrangeIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,AutoArrangeHdl)); - aCallSelectHdlIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST ); + aCallSelectHdlIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST ); aCallSelectHdlIdle.SetIdleHdl( LINK(this,SvxIconChoiceCtrl_Impl,CallSelectHdlHdl)); - aDocRectChangedIdle.SetPriority( VCL_IDLE_PRIORITY_MEDIUM ); + aDocRectChangedIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_MEDIUM ); aDocRectChangedIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,DocRectChangedHdl)); - aVisRectChangedIdle.SetPriority( VCL_IDLE_PRIORITY_MEDIUM ); + aVisRectChangedIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_MEDIUM ); aVisRectChangedIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,VisRectChangedHdl)); Clear( true ); @@ -3393,7 +3393,7 @@ bool IcnViewEdit_Impl::PreNotify( NotifyEvent& rNEvt ) ((!Application::GetFocusWindow()) || !IsChild(Application::GetFocusWindow()))) { bCanceled = false; - aIdle.SetPriority(VCL_IDLE_PRIORITY_REPAINT); + aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_REPAINT); aIdle.SetIdleHdl(LINK(this,IcnViewEdit_Impl,Timeout_Impl)); aIdle.Start(); } diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 760497e5a7d9..ba196635b5ba 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -89,7 +89,7 @@ SvImpLBox::SvImpLBox( SvTreeListBox* pLBView, SvTreeList* pLBTree, WinBits nWinS nNodeBmpWidth = 0; bAsyncBeginDrag = false; - aAsyncBeginDragIdle.SetPriority( VCL_IDLE_PRIORITY_HIGHEST ); + aAsyncBeginDragIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_HIGHEST ); aAsyncBeginDragIdle.SetIdleHdl( LINK(this,SvImpLBox,BeginDragHdl)); // button animation in listbox pActiveButton = 0; @@ -99,7 +99,7 @@ SvImpLBox::SvImpLBox( SvTreeListBox* pLBView, SvTreeList* pLBTree, WinBits nWinS nFlags = 0; nCurTabPos = FIRST_ENTRY_TAB; - aEditIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST ); + aEditIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST ); aEditIdle.SetIdleHdl( LINK(this,SvImpLBox,EditTimerCall) ); nMostRight = -1; diff --git a/svtools/source/misc/filechangedchecker.cxx b/svtools/source/misc/filechangedchecker.cxx index 33d500815cd2..71382d3ceaeb 100644 --- a/svtools/source/misc/filechangedchecker.cxx +++ b/svtools/source/misc/filechangedchecker.cxx @@ -34,7 +34,7 @@ void FileChangedChecker::resetTimer() mIdle.Start(); // Set lowest Priority - mIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST); + mIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST); } bool FileChangedChecker::getCurrentModTime(TimeValue& o_rValue) const -- cgit