diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-28 10:59:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-28 19:35:13 +0200 |
commit | d72511eda923c827a6175bec9b8f24c237f82730 (patch) | |
tree | 2f0173ce3a9ff08b9cfccad0313db9a142f1a6ba /sw/source/uibase | |
parent | 0bcc4b55d723f73b2fb7a86fcfebeca49905079e (diff) |
gives names to all the Idles and Tasks
enforce it by making the constructor parameter non-default.
Change-Id: I321543e4dcf15ea0a43ad8cce91d2f8dc22df6ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122766
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/docvw/HeaderFooterWin.cxx | 3 | ||||
-rw-r--r-- | sw/source/uibase/docvw/OutlineContentVisibilityWin.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/docvw/PageBreakWin.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 3 | ||||
-rw-r--r-- | sw/source/uibase/fldui/fldwrap.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/misc/redlndlg.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/misc/swruler.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/uiview/view.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/uno/unomailmerge.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/utlui/glbltree.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/utlui/gloslst.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/utlui/navipi.cxx | 1 |
14 files changed, 17 insertions, 7 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index 9197e6bea4f3..532a142ca809 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -1607,9 +1607,7 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell, { // TODO: Instead of polling via an AutoTimer, post an Idle event, // if the main loop has been made thread-safe. - AutoTimer aEmailDispatcherPollTimer; - aEmailDispatcherPollTimer.SetDebugName( - "sw::SwDBManager aEmailDispatcherPollTimer" ); + AutoTimer aEmailDispatcherPollTimer("sw::SwDBManager aEmailDispatcherPollTimer"); aEmailDispatcherPollTimer.SetTimeout( 500 ); aEmailDispatcherPollTimer.Start(); while( IsMergeOk() && m_pImpl->m_xLastMessage.is() && !Application::IsQuit()) diff --git a/sw/source/uibase/docvw/HeaderFooterWin.cxx b/sw/source/uibase/docvw/HeaderFooterWin.cxx index e7808576e380..60ea0c1f08aa 100644 --- a/sw/source/uibase/docvw/HeaderFooterWin.cxx +++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx @@ -167,7 +167,8 @@ SwHeaderFooterWin::SwHeaderFooterWin( SwEditWin* pEditWin, const SwFrame *pFrame m_bIsHeader( bHeader ), m_pLine( nullptr ), m_bIsAppearing( false ), - m_nFadeRate( 100 ) + m_nFadeRate( 100 ), + m_aFadeTimer("SwHeaderFooterWin m_aFadeTimer") { m_xVirDev = m_xMenuButton->create_virtual_device(); SetVirDevFont(); diff --git a/sw/source/uibase/docvw/OutlineContentVisibilityWin.cxx b/sw/source/uibase/docvw/OutlineContentVisibilityWin.cxx index 3375c6896325..0253e8a93023 100644 --- a/sw/source/uibase/docvw/OutlineContentVisibilityWin.cxx +++ b/sw/source/uibase/docvw/OutlineContentVisibilityWin.cxx @@ -33,6 +33,7 @@ SwOutlineContentVisibilityWin::SwOutlineContentVisibilityWin(SwEditWin* pEditWin , m_pEditWin(pEditWin) , m_pFrame(pFrame) , m_nDelayAppearing(0) + , m_aDelayTimer("SwOutlineContentVisibilityWin m_aDelayTimer") , m_bDestroyed(false) , m_nOutlinePos(SwOutlineNodes::npos) { diff --git a/sw/source/uibase/docvw/PageBreakWin.cxx b/sw/source/uibase/docvw/PageBreakWin.cxx index 252651048fe9..7a79acb26d76 100644 --- a/sw/source/uibase/docvw/PageBreakWin.cxx +++ b/sw/source/uibase/docvw/PageBreakWin.cxx @@ -104,6 +104,7 @@ SwPageBreakWin::SwPageBreakWin( SwEditWin* pEditWin, const SwFrame *pFrame ) : m_bIsAppearing( false ), m_nFadeRate( 100 ), m_nDelayAppearing( 0 ), + m_aFadeTimer("SwPageBreakWin m_aFadeTimer"), m_bDestroyed( false ) { set_id("PageBreak"); // for uitest diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index b75ddcc2a553..0ddc009a54c2 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -5118,7 +5118,10 @@ SwEditWin::SwEditWin(vcl::Window *pParent, SwView &rMyView): DropTargetHelper( this ), DragSourceHelper( this ), + m_aTimer("SwEditWin"), + m_aKeyInputFlushTimer("SwEditWin m_aKeyInputFlushTimer"), m_eBufferLanguage(LANGUAGE_DONTKNOW), + m_aTemplateTimer("SwEditWin m_aTemplateTimer"), m_pUserMarkerObj( nullptr ), m_rView( rMyView ), diff --git a/sw/source/uibase/fldui/fldwrap.cxx b/sw/source/uibase/fldui/fldwrap.cxx index a2a41fa3443c..69e296eb7600 100644 --- a/sw/source/uibase/fldui/fldwrap.cxx +++ b/sw/source/uibase/fldui/fldwrap.cxx @@ -28,6 +28,7 @@ SFX_IMPL_CHILDWINDOW_WITHID(SwFieldDlgWrapper, FN_INSERT_FIELD) SwChildWinWrapper::SwChildWinWrapper(vcl::Window *pParentWindow, sal_uInt16 nId) : SfxChildWindow(pParentWindow, nId), + m_aUpdateTimer("SwChildWinWrapper m_aUpdateTimer"), m_pDocSh(nullptr) { // avoid flickering of buttons: diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx index bcfdf3ed4de6..caa4e5351a0a 100644 --- a/sw/source/uibase/misc/redlndlg.cxx +++ b/sw/source/uibase/misc/redlndlg.cxx @@ -140,6 +140,7 @@ SwModelessRedlineAcceptDlg::~SwModelessRedlineAcceptDlg() SwRedlineAcceptDlg::SwRedlineAcceptDlg(const std::shared_ptr<weld::Window>& rParent, weld::Builder *pBuilder, weld::Container *pContentArea, bool bAutoFormat) : m_xParentDlg(rParent) + , m_aSelectTimer("SwRedlineAcceptDlg m_aSelectTimer") , m_sInserted(SwResId(STR_REDLINE_INSERTED)) , m_sDeleted(SwResId(STR_REDLINE_DELETED)) , m_sFormated(SwResId(STR_REDLINE_FORMATTED)) diff --git a/sw/source/uibase/misc/swruler.cxx b/sw/source/uibase/misc/swruler.cxx index cfedd2ea011e..4166a754bf77 100644 --- a/sw/source/uibase/misc/swruler.cxx +++ b/sw/source/uibase/misc/swruler.cxx @@ -84,13 +84,13 @@ SwCommentRuler::SwCommentRuler(SwViewShell* pViewSh, vcl::Window* pParent, SwEdi , mpViewShell(pViewSh) , mpSwWin(pWin) , mbIsHighlighted(false) + , maFadeTimer("sw::SwCommentRuler maFadeTimer") , mnFadeRate(0) , maVirDev(VclPtr<VirtualDevice>::Create(*GetOutDev())) { // Set fading timeout: 5 x 40ms = 200ms maFadeTimer.SetTimeout(40); maFadeTimer.SetInvokeHandler(LINK(this, SwCommentRuler, FadeHandler)); - maFadeTimer.SetDebugName("sw::SwCommentRuler maFadeTimer"); // we have a little bit more space, as we don't draw ruler ticks vcl::Font aFont(maVirDev->GetFont()); diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx index 30b4d76aa4b5..a8d230f33793 100644 --- a/sw/source/uibase/uiview/view.cxx +++ b/sw/source/uibase/uiview/view.cxx @@ -710,6 +710,7 @@ void SwView::CheckReadonlySelection() SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh ) : SfxViewShell( _pFrame, SWVIEWFLAGS ), + m_aTimer( "sw::SwView m_aTimer" ), m_nNewPage(USHRT_MAX), m_nOldPageNum(0), m_pNumRuleNodeFromDoc(nullptr), @@ -1036,7 +1037,6 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh ) } m_aTimer.SetInvokeHandler(LINK(this, SwView, TimeoutHdl)); - m_aTimer.SetDebugName( "sw::SwView m_aTimer" ); m_bAttrChgNotified = m_bAttrChgNotifiedWithRegistrations = false; if (bOldModifyFlag) rDocSh.EnableSetModified(); diff --git a/sw/source/uibase/uno/unomailmerge.cxx b/sw/source/uibase/uno/unomailmerge.cxx index 6836a9a0bc6d..60bf789b2813 100644 --- a/sw/source/uibase/uno/unomailmerge.cxx +++ b/sw/source/uibase/uno/unomailmerge.cxx @@ -210,6 +210,7 @@ namespace DelayedFileDeletion::DelayedFileDeletion( const Reference< XModel >& _rxModel, const OUString& _rTemporaryFile ) : m_xDocument( _rxModel, UNO_QUERY ) + ,m_aDeleteTimer("sw DelayedFileDeletion m_aDeleteTimer") ,m_sTemporaryFile( _rTemporaryFile ) ,m_nPendingDeleteAttempts( 0 ) { diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index d7e6015fb9e9..5933b3cf26f8 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -1075,6 +1075,7 @@ SwContentTree::SwContentTree(std::unique_ptr<weld::TreeView> xTreeView, SwNaviga , m_aDropTargetHelper(*this) , m_pDialog(pDialog) , m_sSpace(OUString(" ")) + , m_aUpdTimer("SwContentTree m_aUpdTimer") , m_sInvisible(SwResId(STR_INVISIBLE)) , m_pHiddenShell(nullptr) , m_pActiveShell(nullptr) diff --git a/sw/source/uibase/utlui/glbltree.cxx b/sw/source/uibase/utlui/glbltree.cxx index 3594c0a198ab..12eb53ed87fe 100644 --- a/sw/source/uibase/utlui/glbltree.cxx +++ b/sw/source/uibase/utlui/glbltree.cxx @@ -127,6 +127,7 @@ SwGlobalTree::SwGlobalTree(std::unique_ptr<weld::TreeView> xTreeView, SwNavigati : m_xTreeView(std::move(xTreeView)) , m_aDropTargetHelper(*this) , m_pDialog(pDialog) + , m_aUpdateTimer("SwGlobalTree m_aUpdateTimer") , m_pActiveShell(nullptr) { m_xTreeView->set_size_request(m_xTreeView->get_approximate_digit_width() * 30, diff --git a/sw/source/uibase/utlui/gloslst.cxx b/sw/source/uibase/utlui/gloslst.cxx index 06658da32de4..35d0f80e50c2 100644 --- a/sw/source/uibase/utlui/gloslst.cxx +++ b/sw/source/uibase/utlui/gloslst.cxx @@ -85,7 +85,7 @@ IMPL_LINK_NOARG(SwGlossDecideDlg, SelectHdl, weld::TreeView&, void) } SwGlossaryList::SwGlossaryList() : - m_bFilled(false) + AutoTimer("SwGlossaryList"), m_bFilled(false) { SvtPathOptions aPathOpt; m_sPath = aPathOpt.GetAutoTextPath(); diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx index 186934f0fc75..7124c3a6b7d9 100644 --- a/sw/source/uibase/utlui/navipi.cxx +++ b/sw/source/uibase/utlui/navipi.cxx @@ -503,6 +503,7 @@ SwNavigationPI::SwNavigationPI(weld::Widget* pParent, , m_xGlobalBox(m_xBuilder->weld_widget("globalbox")) , m_xGlobalTree(new SwGlobalTree(m_xBuilder->weld_tree_view("globaltree"), this)) , m_xDocListBox(m_xBuilder->weld_combo_box("documents")) + , m_aPageChgIdle("SwNavigationPI m_aPageChgIdle") , m_xNavigatorDlg(pNavigatorDlg) , m_pContentView(nullptr) , m_pContentWrtShell(nullptr) |