diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-01-14 10:21:20 +0100 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-03-06 12:27:05 +0000 |
commit | 826143684d2697a8620373dce18fa5f24332d5cb (patch) | |
tree | 88be6f99b02c8c9fea849c3125b9e23a18be65f9 /svtools/source | |
parent | d8305248f687ffa522b56955508d82d60ad5b8c6 (diff) |
Timer: Adapted all idle includes and enum uses
Change-Id: Id4ef36d6c80ad62306bdbaa7094c2cb0b8ff77da
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/contnr/imivctl.hxx | 1 | ||||
-rw-r--r-- | svtools/source/contnr/imivctl1.cxx | 12 | ||||
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 4 | ||||
-rw-r--r-- | svtools/source/misc/filechangedchecker.cxx | 2 |
4 files changed, 10 insertions, 9 deletions
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 <vcl/virdev.hxx> #include <vcl/scrbar.hxx> #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <vcl/seleng.hxx> #include <tools/debug.hxx> #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 |