diff options
author | Jennifer Liebel <jliebel94@gmail.com> | 2014-11-06 11:52:02 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:51 +0000 |
commit | 18102201f4a68bc41f7caa21fc22ec761812b70b (patch) | |
tree | 92eeebc502ba9a332c3d3c020c1ace17aa7c0b02 /desktop | |
parent | changed timer to idle (diff) | |
download | core-18102201f4a68bc41f7caa21fc22ec761812b70b.tar.gz core-18102201f4a68bc41f7caa21fc22ec761812b70b.zip |
changed some timer to idle
Change-Id: If137dbd80f7260d9507e48709d3f0f14b60a25f6
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_dialog2.cxx | 20 | ||||
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_dialog2.hxx | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx index c4bb27407089..056f0b1b62d3 100644 --- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx +++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx @@ -709,14 +709,14 @@ ExtMgrDialog::ExtMgrDialog(vcl::Window *pParent, TheExtensionManager *pManager) m_pUpdateBtn->Enable(false); - m_aTimeoutTimer.SetTimeout( 500 ); // mSec - m_aTimeoutTimer.SetTimeoutHdl( LINK( this, ExtMgrDialog, TimeOutHdl ) ); + m_aIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST); + m_aIdle.SetIdleHdl( LINK( this, ExtMgrDialog, TimeOutHdl ) ); } ExtMgrDialog::~ExtMgrDialog() { - m_aTimeoutTimer.Stop(); + m_aIdle.Stop(); } @@ -951,7 +951,7 @@ IMPL_LINK( ExtMgrDialog, startProgress, void*, _bLockInterface ) bool bLockInterface = (bool) _bLockInterface; if ( m_bStartProgress && !m_bHasProgress ) - m_aTimeoutTimer.Start(); + m_aIdle.Start(); if ( m_bStopProgress ) { @@ -1096,7 +1096,7 @@ IMPL_LINK_NOARG(ExtMgrDialog, TimeOutHdl) if ( m_pProgressBar->IsVisible() ) m_pProgressBar->SetValue( (sal_uInt16) m_nProgress ); - m_aTimeoutTimer.Start(); + m_aIdle.Start(); } return 1; @@ -1191,13 +1191,13 @@ UpdateRequiredDialog::UpdateRequiredDialog(vcl::Window *pParent, TheExtensionMan m_pUpdateBtn->Enable( false ); m_pCloseBtn->GrabFocus(); - m_aTimeoutTimer.SetTimeout( 50 ); // mSec - m_aTimeoutTimer.SetTimeoutHdl( LINK( this, UpdateRequiredDialog, TimeOutHdl ) ); + m_aIdle.SetPriority( VCL_IDLE_PRIORITY_MEDIUM ); + m_aIdle.SetIdleHdl( LINK( this, UpdateRequiredDialog, TimeOutHdl ) ); } UpdateRequiredDialog::~UpdateRequiredDialog() { - m_aTimeoutTimer.Stop(); + m_aIdle.Stop(); } long UpdateRequiredDialog::addPackageToList( const uno::Reference< deployment::XPackage > &xPackage, @@ -1266,7 +1266,7 @@ IMPL_LINK( UpdateRequiredDialog, startProgress, void*, _bLockInterface ) bool bLockInterface = (bool) _bLockInterface; if ( m_bStartProgress && !m_bHasProgress ) - m_aTimeoutTimer.Start(); + m_aIdle.Start(); if ( m_bStopProgress ) { @@ -1427,7 +1427,7 @@ IMPL_LINK_NOARG(UpdateRequiredDialog, TimeOutHdl) if ( m_pProgressBar->IsVisible() ) m_pProgressBar->SetValue( (sal_uInt16) m_nProgress ); - m_aTimeoutTimer.Start(); + m_aIdle.Start(); } return 1; diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.hxx b/desktop/source/deployment/gui/dp_gui_dialog2.hxx index b639b73e7af2..e2c1629a4a15 100644 --- a/desktop/source/deployment/gui/dp_gui_dialog2.hxx +++ b/desktop/source/deployment/gui/dp_gui_dialog2.hxx @@ -121,7 +121,7 @@ class ExtMgrDialog : public ModelessDialog, bool m_bDisableWarning; bool m_bDeleteWarning; long m_nProgress; - Timer m_aTimeoutTimer; + Idle m_aIdle; TheExtensionManager *m_pManager; ::com::sun::star::uno::Reference< ::com::sun::star::task::XAbortChannel > m_xAbortChannel; @@ -191,7 +191,7 @@ class UpdateRequiredDialog : public ModalDialog, bool m_bDisableWarning; bool m_bHasLockedEntries; long m_nProgress; - Timer m_aTimeoutTimer; + Idle m_aIdle; TheExtensionManager *m_pManager; ::com::sun::star::uno::Reference< ::com::sun::star::task::XAbortChannel > m_xAbortChannel; |