diff options
-rw-r--r-- | sd/source/ui/dlg/filedlg.cxx | 12 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 6 | ||||
-rw-r--r-- | svtools/source/inc/svimpbox.hxx | 2 | ||||
-rw-r--r-- | svx/source/inc/fmshimp.hxx | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/sd/source/ui/dlg/filedlg.cxx b/sd/source/ui/dlg/filedlg.cxx index 725f89033754..c2791e10f83d 100644 --- a/sd/source/ui/dlg/filedlg.cxx +++ b/sd/source/ui/dlg/filedlg.cxx @@ -59,7 +59,7 @@ private: DECL_LINK( PlayMusicHdl, void * ); - Timer maUpdateTimer; + Idle maUpdateIdle; DECL_LINK( IsMusicStoppedHdl, void * ); @@ -97,7 +97,7 @@ void SAL_CALL SdFileDialog_Imp::ControlStateChanged( const css::ui::dialogs::Fil IMPL_LINK_NOARG(SdFileDialog_Imp, PlayMusicHdl) { - maUpdateTimer.Stop(); + maUpdateIdle.Stop(); mnPlaySoundEvent = 0; if (mxPlayer.is()) @@ -132,8 +132,8 @@ IMPL_LINK_NOARG(SdFileDialog_Imp, PlayMusicHdl) { mxPlayer.set( avmedia::MediaWindow::createPlayer( aUrl, "" ), css::uno::UNO_QUERY_THROW ); mxPlayer->start(); - maUpdateTimer.SetTimeout( 100 ); - maUpdateTimer.Start(); + maUpdateIdle.SetPriority( VCL_IDLE_PRIORITY_LOW ); + maUpdateIdle.Start(); } catch (const css::uno::Exception&) { @@ -171,7 +171,7 @@ IMPL_LINK_NOARG(SdFileDialog_Imp, IsMusicStoppedHdl) mxPlayer->getMediaTime() < mxPlayer->getDuration() ) { - maUpdateTimer.Start(); + maUpdateIdle.Start(); return 0L; } @@ -224,7 +224,7 @@ SdFileDialog_Imp::SdFileDialog_Imp( const short nDialogType, mbUsableSelection( bUsableSelection ), mbLabelPlaying(false) { - maUpdateTimer.SetTimeoutHdl(LINK(this, SdFileDialog_Imp, IsMusicStoppedHdl)); + maUpdateIdle.SetIdleHdl(LINK(this, SdFileDialog_Imp, IsMusicStoppedHdl)); css::uno::Reference < ::com::sun::star::ui::dialogs::XFilePicker > xFileDlg = GetFilePicker(); diff --git a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx index 5bab786f43fd..1c3af1ba1fbe 100644 --- a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx +++ b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx @@ -127,7 +127,7 @@ CacheCompactor::CacheCompactor( mnMaximalCacheSize(nMaximalCacheSize), mbIsCompactionRunning(false) { - maCompactionTimer.SetTimeout(100 /*ms*/); + maCompactionTimer.SetTimeout(100); maCompactionTimer.SetTimeoutHdl(LINK(this,CacheCompactor,CompactionCallback)); } diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 0162b97c739a..a72df0fd7b2a 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -89,8 +89,8 @@ SvImpLBox::SvImpLBox( SvTreeListBox* pLBView, SvTreeList* pLBTree, WinBits nWinS nNodeBmpWidth = 0; bAsyncBeginDrag = false; - aAsyncBeginDragIdle.SetPriority( VCL_IDLE_PRIORITY_HIGHEST ); - aAsyncBeginDragIdle.SetIdleHdl( LINK(this,SvImpLBox,BeginDragHdl)); + aAsyncBeginDragTimer.SetTimeout(0); + aAsyncBeginDragTimer.SetTimeoutHdl( LINK(this,SvImpLBox,BeginDragHdl)); // button animation in listbox pActiveButton = 0; pActiveEntry = 0; @@ -2933,7 +2933,7 @@ void SvImpLBox::BeginDrag() else { aAsyncBeginDragPos = aSelEng.GetMousePosPixel(); - aAsyncBeginDragIdle.Start(); + aAsyncBeginDragTimer.Start(); } } diff --git a/svtools/source/inc/svimpbox.hxx b/svtools/source/inc/svimpbox.hxx index 84a5235d9758..c98b62c4d730 100644 --- a/svtools/source/inc/svimpbox.hxx +++ b/svtools/source/inc/svimpbox.hxx @@ -125,7 +125,7 @@ private: Size aOutputSize; SelectionEngine aSelEng; ImpLBSelEng aFctSet; - Idle aAsyncBeginDragIdle; + Timer aAsyncBeginDragTimer; Point aAsyncBeginDragPos; long nYoffsNodeBmp; diff --git a/svx/source/inc/fmshimp.hxx b/svx/source/inc/fmshimp.hxx index 694609caacc3..ebb29c97cd6a 100644 --- a/svx/source/inc/fmshimp.hxx +++ b/svx/source/inc/fmshimp.hxx @@ -155,7 +155,7 @@ class SVX_DLLPUBLIC FmXFormShell : public FmXFormShell_BASE class SuspendPropertyTracking; friend class SuspendPropertyTracking; - // Timer um verzoegerte Markierung vorzunehmen + // timer for delayed mark Timer m_aMarkTimer; SdrObjArray m_arrSearchedControls; // We enable a permanent cursor for the grid we found a searched text, it's disabled in the next "found" event. |