summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJennifer Liebel <jliebel94@gmail.com>2014-11-17 09:18:52 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2014-12-09 12:34:58 +0000
commitd843f3de731667a298a83fc66637c7f983f3b24d (patch)
tree7858b40511f16654d93828676991d8a4b84a044a /svtools
parent821ae0fb9fa63e0171f987d5ec210ec121978b8f (diff)
changed timers to idle
Change-Id: I92f40d3dad133347f1b8db0b025b624d3305f885
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/imivctl1.cxx10
-rw-r--r--svtools/source/contnr/treelistbox.cxx8
-rw-r--r--svtools/source/control/tabbar.cxx12
3 files changed, 15 insertions, 15 deletions
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx
index b6c89e3198ad..d25650802c42 100644
--- a/svtools/source/contnr/imivctl1.cxx
+++ b/svtools/source/contnr/imivctl1.cxx
@@ -57,7 +57,7 @@ class IcnViewEdit_Impl : public MultiLineEdit
Link aCallBackHdl;
Accelerator aAccReturn;
Accelerator aAccEscape;
- Timer aTimer;
+ Idle aIdle;
bool bCanceled;
bool bAlreadyInCallback;
bool bGrabFocus;
@@ -3328,7 +3328,7 @@ IcnViewEdit_Impl::~IcnViewEdit_Impl()
void IcnViewEdit_Impl::CallCallBackHdl_Impl()
{
- aTimer.Stop();
+ aIdle.Stop();
if ( !bAlreadyInCallback )
{
bAlreadyInCallback = true;
@@ -3393,9 +3393,9 @@ bool IcnViewEdit_Impl::PreNotify( NotifyEvent& rNEvt )
((!Application::GetFocusWindow()) || !IsChild(Application::GetFocusWindow())))
{
bCanceled = false;
- aTimer.SetTimeout(10);
- aTimer.SetTimeoutHdl(LINK(this,IcnViewEdit_Impl,Timeout_Impl));
- aTimer.Start();
+ aIdle.SetPriority(VCL_IDLE_PRIORITY_REPAINT);
+ aIdle.SetIdleHdl(LINK(this,IcnViewEdit_Impl,Timeout_Impl));
+ aIdle.Start();
}
}
return false;
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 60e6fc2515db..5591635bda0c 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -233,9 +233,9 @@ void SvInplaceEdit2::LoseFocus()
)
{
bCanceled = false;
- aTimer.SetTimeout(10);
- aTimer.SetTimeoutHdl(LINK(this,SvInplaceEdit2,Timeout_Impl));
- aTimer.Start();
+ aIdle.SetPriority(VCL_IDLE_PRIORITY_REPAINT);
+ aIdle.SetIdleHdl(LINK(this,SvInplaceEdit2,Timeout_Impl));
+ aIdle.Start();
}
}
@@ -248,7 +248,7 @@ IMPL_LINK_NOARG_INLINE_END(SvInplaceEdit2, Timeout_Impl)
void SvInplaceEdit2::CallCallBackHdl_Impl()
{
- aTimer.Stop();
+ aIdle.Stop();
if ( !bAlreadyInCallBack )
{
bAlreadyInCallBack = true;
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 15df257b92b8..610646c0e3fa 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -245,7 +245,7 @@ void ImplTabSizer::Paint( const Rectangle& )
class TabBarEdit : public Edit
{
private:
- Timer maLoseFocusTimer;
+ Idle maLoseFocusIdle;
bool mbPostEvt;
DECL_LINK( ImplEndEditHdl, void* );
@@ -322,15 +322,15 @@ void TabBarEdit::LoseFocus()
IMPL_LINK( TabBarEdit, ImplEndEditHdl, void*, pCancel )
{
ResetPostEvent();
- maLoseFocusTimer.Stop();
+ maLoseFocusIdle.Stop();
// We need this query, because the edit gets a losefocus event,
// when it shows the context menu or the insert symbol dialog
if ( !HasFocus() && HasChildPathFocus( true ) )
{
- maLoseFocusTimer.SetTimeout( 30 );
- maLoseFocusTimer.SetTimeoutHdl( LINK( this, TabBarEdit, ImplEndTimerHdl ) );
- maLoseFocusTimer.Start();
+ maLoseFocusIdle.SetPriority( VCL_IDLE_PRIORITY_REPAINT );
+ maLoseFocusIdle.SetIdleHdl( LINK( this, TabBarEdit, ImplEndTimerHdl ) );
+ maLoseFocusIdle.Start();
}
else
GetParent()->EndEditMode( pCancel != 0 );
@@ -348,7 +348,7 @@ IMPL_LINK_NOARG(TabBarEdit, ImplEndTimerHdl)
// We need this query, because the edit gets a losefocus event,
// when it shows the context menu or the insert symbol dialog
if ( HasChildPathFocus( true ) )
- maLoseFocusTimer.Start();
+ maLoseFocusIdle.Start();
else
GetParent()->EndEditMode( true );