summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorTobias Madl <tobias.madl.dev@gmail.com>2014-11-14 15:31:13 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2014-12-09 12:34:57 +0000
commit821ae0fb9fa63e0171f987d5ec210ec121978b8f (patch)
tree36e16ed6cc082a0098147b02e99faa9cb8126a3f /extensions
parentea6399b837f1cd4fb28be91b8e311e9378988fc5 (diff)
changed timers to idles
Change-Id: I223026ce7676a3f8fcda7eb33326cd4ee949c6f0
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/bibcont.cxx6
-rw-r--r--extensions/source/bibliography/bibcont.hxx2
-rw-r--r--extensions/source/bibliography/toolbar.cxx6
-rw-r--r--extensions/source/bibliography/toolbar.hxx2
-rw-r--r--extensions/source/update/ui/updatecheckui.cxx12
5 files changed, 14 insertions, 14 deletions
diff --git a/extensions/source/bibliography/bibcont.cxx b/extensions/source/bibliography/bibcont.cxx
index 488a24f4e1ca..94160030370b 100644
--- a/extensions/source/bibliography/bibcont.cxx
+++ b/extensions/source/bibliography/bibcont.cxx
@@ -126,8 +126,8 @@ BibBookContainer::BibBookContainer(vcl::Window* pParent, WinBits nStyle):
pBottomWin(NULL)
{
pBibMod = OpenBibModul();
- aTimer.SetTimeoutHdl(LINK( this, BibBookContainer, SplitHdl));
- aTimer.SetTimeout(400);
+ aIdle.SetIdleHdl(LINK( this, BibBookContainer, SplitHdl));
+ aIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST);
}
BibBookContainer::~BibBookContainer()
@@ -156,7 +156,7 @@ BibBookContainer::~BibBookContainer()
void BibBookContainer::Split()
{
- aTimer.Start();
+ aIdle.Start();
}
IMPL_LINK( BibBookContainer, SplitHdl, Timer*,/*pT*/)
{
diff --git a/extensions/source/bibliography/bibcont.hxx b/extensions/source/bibliography/bibcont.hxx
index 7b2dacc01533..4c9e4873e61b 100644
--- a/extensions/source/bibliography/bibcont.hxx
+++ b/extensions/source/bibliography/bibcont.hxx
@@ -71,7 +71,7 @@ class BibBookContainer: public BibSplitWindow
BibWindowContainer* pTopWin;
BibWindowContainer* pBottomWin;
HdlBibModul pBibMod;
- Timer aTimer;
+ Idle aIdle;
DECL_LINK( SplitHdl, Timer*);
diff --git a/extensions/source/bibliography/toolbar.cxx b/extensions/source/bibliography/toolbar.cxx
index 86ef53333d13..17f595124c21 100644
--- a/extensions/source/bibliography/toolbar.cxx
+++ b/extensions/source/bibliography/toolbar.cxx
@@ -206,8 +206,8 @@ BibToolBar::BibToolBar(vcl::Window* pParent, Link aLink, WinBits nStyle):
SvtMiscOptions().AddListenerLink( LINK( this, BibToolBar, OptionsChanged_Impl ) );
Application::AddEventListener( LINK( this, BibToolBar, SettingsChanged_Impl ) );
- aTimer.SetTimeoutHdl(LINK( this, BibToolBar, SendSelHdl));
- aTimer.SetTimeout(400);
+ aIdle.SetIdleHdl(LINK( this, BibToolBar, SendSelHdl));
+ aIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST);
SetDropdownClickHdl( LINK( this, BibToolBar, MenuHdl));
@@ -453,7 +453,7 @@ bool BibToolBar::PreNotify( NotifyEvent& rNEvt )
IMPL_LINK( BibToolBar, SelHdl, ListBox*, /*pLb*/ )
{
- aTimer.Start();
+ aIdle.Start();
return 0;
}
diff --git a/extensions/source/bibliography/toolbar.hxx b/extensions/source/bibliography/toolbar.hxx
index a1e7886a3171..177fc0b195df 100644
--- a/extensions/source/bibliography/toolbar.hxx
+++ b/extensions/source/bibliography/toolbar.hxx
@@ -110,7 +110,7 @@ class BibToolBar: public ToolBox
BibToolBarListenerArr aListenerArr;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > xController;
- Timer aTimer;
+ Idle aIdle;
ImageList aImgLst;
ImageList aImgLstHC;
ImageList aBigImgLst;
diff --git a/extensions/source/update/ui/updatecheckui.cxx b/extensions/source/update/ui/updatecheckui.cxx
index 15209ce723ce..cccb0342ccbe 100644
--- a/extensions/source/update/ui/updatecheckui.cxx
+++ b/extensions/source/update/ui/updatecheckui.cxx
@@ -132,7 +132,7 @@ class UpdateCheckUI : public ::cppu::WeakImplHelper3
MenuBar* mpIconMBar;
ResMgr* mpUpdResMgr;
ResMgr* mpSfxResMgr;
- Timer maWaitTimer;
+ Idle maWaitIdle;
Timer maTimeoutTimer;
Link maWindowEventHdl;
Link maApplicationEventHdl;
@@ -212,8 +212,8 @@ UpdateCheckUI::UpdateCheckUI(const uno::Reference<uno::XComponentContext>& xCont
maBubbleImage = GetBubbleImage( maBubbleImageURL );
- maWaitTimer.SetTimeout( 400 );
- maWaitTimer.SetTimeoutHdl( LINK( this, UpdateCheckUI, WaitTimeOutHdl ) );
+ maWaitIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+ maWaitIdle.SetIdleHdl( LINK( this, UpdateCheckUI, WaitTimeOutHdl ) );
maTimeoutTimer.SetTimeout( 10000 );
maTimeoutTimer.SetTimeoutHdl( LINK( this, UpdateCheckUI, TimeOutHdl ) );
@@ -551,7 +551,7 @@ void UpdateCheckUI::RemoveBubbleWindow( bool bRemoveIcon )
{
SolarMutexGuard aGuard;
- maWaitTimer.Stop();
+ maWaitIdle.Stop();
maTimeoutTimer.Stop();
if ( mpBubbleWin )
@@ -584,7 +584,7 @@ IMPL_LINK_NOARG(UpdateCheckUI, ClickHdl)
{
SolarMutexGuard aGuard;
- maWaitTimer.Stop();
+ maWaitIdle.Stop();
if ( mpBubbleWin )
mpBubbleWin->Show( false );
@@ -606,7 +606,7 @@ IMPL_LINK_NOARG(UpdateCheckUI, ClickHdl)
IMPL_LINK( UpdateCheckUI, HighlightHdl, MenuBar::MenuBarButtonCallbackArg*, pData )
{
if ( pData->bHighlight )
- maWaitTimer.Start();
+ maWaitIdle.Start();
else
RemoveBubbleWindow( false );