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 /sc | |
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 'sc')
-rw-r--r-- | sc/source/core/tool/chartlis.cxx | 3 | ||||
-rw-r--r-- | sc/source/core/tool/chartlock.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/refreshtimer.cxx | 4 | ||||
-rw-r--r-- | sc/source/filter/oox/workbookfragment.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/cctrl/checklistmenu.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/dbgui/csvtablebox.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/dbgui/tpsort.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/datastream.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/docshell/externalrefmgr.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/fupoor.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/acredlin.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/conflictsdlg.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/dataproviderdlg.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/instbdlg.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/navipi/navipi.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/view/notemark.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/view/tabview.cxx | 1 |
18 files changed, 23 insertions, 13 deletions
diff --git a/sc/source/core/tool/chartlis.cxx b/sc/source/core/tool/chartlis.cxx index a534a0d7b5b9..18b69b12d92b 100644 --- a/sc/source/core/tool/chartlis.cxx +++ b/sc/source/core/tool/chartlis.cxx @@ -347,11 +347,11 @@ void ScChartListenerCollection::Init() { aIdle.SetInvokeHandler( LINK( this, ScChartListenerCollection, TimerHdl ) ); aIdle.SetPriority( TaskPriority::REPAINT ); - aIdle.SetDebugName( "sc::ScChartListenerCollection aIdle" ); } ScChartListenerCollection::ScChartListenerCollection( ScDocument& rDocP ) : meModifiedDuringUpdate( SC_CLCUPDATE_NONE ), + aIdle( "sc::ScChartListenerCollection aIdle" ), rDoc( rDocP ) { Init(); @@ -360,6 +360,7 @@ ScChartListenerCollection::ScChartListenerCollection( ScDocument& rDocP ) : ScChartListenerCollection::ScChartListenerCollection( const ScChartListenerCollection& rColl ) : meModifiedDuringUpdate( SC_CLCUPDATE_NONE ), + aIdle( "sc::ScChartListenerCollection aIdle" ), rDoc( rColl.rDoc ) { Init(); diff --git a/sc/source/core/tool/chartlock.cxx b/sc/source/core/tool/chartlock.cxx index 9b0338b95628..daeecbbc2d07 100644 --- a/sc/source/core/tool/chartlock.cxx +++ b/sc/source/core/tool/chartlock.cxx @@ -141,7 +141,7 @@ void ScChartLockGuard::AlsoLockThisChart( const Reference< frame::XModel >& xMod // ScTemporaryChartLock ScTemporaryChartLock::ScTemporaryChartLock( ScDocument* pDocP ) : - mpDoc( pDocP ) + mpDoc( pDocP ), maTimer("ScTemporaryChartLock maTimer") { maTimer.SetTimeout( SC_CHARTLOCKTIMEOUT ); maTimer.SetInvokeHandler( LINK( this, ScTemporaryChartLock, TimeoutHdl ) ); diff --git a/sc/source/core/tool/refreshtimer.cxx b/sc/source/core/tool/refreshtimer.cxx index bd1e0447d7a6..cd598f25b55d 100644 --- a/sc/source/core/tool/refreshtimer.cxx +++ b/sc/source/core/tool/refreshtimer.cxx @@ -46,12 +46,12 @@ ScRefreshTimerProtector::~ScRefreshTimerProtector() m_rpControl->SetAllowRefresh( true ); } -ScRefreshTimer::ScRefreshTimer() : ppControl(nullptr) +ScRefreshTimer::ScRefreshTimer() : AutoTimer("ScRefreshTimer"), ppControl(nullptr) { SetTimeout( 0 ); } -ScRefreshTimer::ScRefreshTimer( sal_uLong nSeconds ) : ppControl(nullptr) +ScRefreshTimer::ScRefreshTimer( sal_uLong nSeconds ) : AutoTimer("ScRefreshTimer"), ppControl(nullptr) { SetTimeout( nSeconds * 1000 ); Launch(); diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx index d703cef6580a..f21ac93117ad 100644 --- a/sc/source/filter/oox/workbookfragment.cxx +++ b/sc/source/filter/oox/workbookfragment.cxx @@ -285,7 +285,7 @@ class ProgressBarTimer : private Timer }; std::vector< ISegmentProgressBarRef > aSegments; public: - ProgressBarTimer() + ProgressBarTimer() : Timer("sc ProgressBarTimer") { SetTimeout( 500 ); } diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index 32c62ff367e8..4fd91a3451ce 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -47,7 +47,8 @@ ScCheckListMenuControl::MenuItemData::MenuItemData() } ScCheckListMenuControl::SubMenuItemData::SubMenuItemData(ScCheckListMenuControl* pParent) - : mpSubMenu(nullptr) + : maTimer("sc SubMenuItemData maTimer") + , mpSubMenu(nullptr) , mnMenuPos(MENU_NOT_SELECTED) , mpParent(pParent) { diff --git a/sc/source/ui/dbgui/csvtablebox.cxx b/sc/source/ui/dbgui/csvtablebox.cxx index ec2a11c5b739..884715813259 100644 --- a/sc/source/ui/dbgui/csvtablebox.cxx +++ b/sc/source/ui/dbgui/csvtablebox.cxx @@ -26,6 +26,7 @@ ScCsvTableBox::ScCsvTableBox(weld::Builder& rBuilder) , mxScroll(rBuilder.weld_scrolled_window("scrolledwindow", true)) , mxRulerWeld(new weld::CustomWeld(rBuilder, "csvruler", *mxRuler)) , mxGridWeld(new weld::CustomWeld(rBuilder, "csvgrid", *mxGrid)) + , maEndScrollIdle("ScCsvTableBox maEndScrollIdle") { Size aSize(mxScroll->get_approximate_digit_width() * 67, mxScroll->get_text_height() * 10); diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx index c9c1c15c04ab..b9cc96bc598c 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -72,6 +72,7 @@ ScTabPageSortFields::ScTabPageSortFields(weld::Container* pPage, weld::DialogCon : SfxTabPage(pPage, pController, "modules/scalc/ui/sortcriteriapage.ui", "SortCriteriaPage", &rArgSet) , + m_aIdle("ScTabPageSortFields Scroll To End Idle"), aStrUndefined ( ScResId( SCSTR_UNDEFINED ) ), aStrColumn ( ScResId( SCSTR_COLUMN ) ), aStrRow ( ScResId( SCSTR_ROW ) ), @@ -94,7 +95,6 @@ ScTabPageSortFields::ScTabPageSortFields(weld::Container* pPage, weld::DialogCon Init(); m_aIdle.SetInvokeHandler(LINK(this, ScTabPageSortFields, ScrollToEndHdl)); - m_aIdle.SetDebugName("ScTabPageSortFields Scroll To End Idle"); SetExchangeSupport(); } diff --git a/sc/source/ui/docshell/datastream.cxx b/sc/source/ui/docshell/datastream.cxx index 26a5a77300d7..3003b3cdac2b 100644 --- a/sc/source/ui/docshell/datastream.cxx +++ b/sc/source/ui/docshell/datastream.cxx @@ -283,6 +283,7 @@ DataStream::DataStream(ScDocShell *pShell, const OUString& rURL, const ScRange& mnLinesSinceRefresh(0), mfLastRefreshTime(0.0), mnCurRow(0), + maImportTimer("sc DataStream maImportTimer"), mbIsFirst(true), mbIsUpdate(false) { diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx index cff9b7e758ca..f1e010eba4bc 100644 --- a/sc/source/ui/docshell/externalrefmgr.cxx +++ b/sc/source/ui/docshell/externalrefmgr.cxx @@ -1639,11 +1639,11 @@ ScExternalRefManager::ScExternalRefManager(ScDocument& rDoc) : mrDoc(rDoc), mbInReferenceMarking(false), mbUserInteractionEnabled(true), - mbDocTimerEnabled(true) + mbDocTimerEnabled(true), + maSrcDocTimer( "sc::ScExternalRefManager maSrcDocTimer" ) { maSrcDocTimer.SetInvokeHandler( LINK(this, ScExternalRefManager, TimeOutHdl) ); maSrcDocTimer.SetTimeout(SRCDOC_SCAN_INTERVAL); - maSrcDocTimer.SetDebugName( "sc::ScExternalRefManager maSrcDocTimer" ); } ScExternalRefManager::~ScExternalRefManager() diff --git a/sc/source/ui/drawfunc/fupoor.cxx b/sc/source/ui/drawfunc/fupoor.cxx index 1db8e6a99d6d..a7fb3f38bd24 100644 --- a/sc/source/ui/drawfunc/fupoor.cxx +++ b/sc/source/ui/drawfunc/fupoor.cxx @@ -39,6 +39,8 @@ FuPoor::FuPoor(ScTabViewShell& rViewSh, vcl::Window* pWin, ScDrawView* pViewP, pWindow(pWin), pDrDoc(pDoc), aSfxRequest(rReq), + aScrollTimer("sc FuPoor aScrollTimer"), + aDragTimer("sc FuPoor aDragTimer"), bIsInDragMode(false), // remember MouseButton state mnCode(0) diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx index 06d4ef3a7b57..ece0eeb58739 100644 --- a/sc/source/ui/miscdlgs/acredlin.cxx +++ b/sc/source/ui/miscdlgs/acredlin.cxx @@ -70,7 +70,7 @@ ScAcceptChgDlg::ScAcceptChgDlg(SfxBindings* pB, SfxChildWindow* pCW, weld::Windo ScViewData* ptrViewData) : SfxModelessDialogController(pB, pCW, pParent, "svx/ui/acceptrejectchangesdialog.ui", "AcceptRejectChangesDialog") - , aSelectionIdle("ScAcceptChgDlg SelectionIdle") + , aSelectionIdle( "ScAcceptChgDlg aSelectionIdle" ) , aReOpenIdle("ScAcceptChgDlg ReOpenIdle") , pViewData( ptrViewData ) , pDoc( &ptrViewData->GetDocument() ) @@ -114,7 +114,6 @@ ScAcceptChgDlg::ScAcceptChgDlg(SfxBindings* pB, SfxChildWindow* pCW, weld::Windo pTheView = pTPView->GetTableControl(); pTheView->SetCalcView(); aSelectionIdle.SetInvokeHandler(LINK( this, ScAcceptChgDlg, UpdateSelectionHdl )); - aSelectionIdle.SetDebugName( "ScAcceptChgDlg aSelectionIdle" ); pTPFilter->SetReadyHdl(LINK( this, ScAcceptChgDlg, FilterHandle )); pTPFilter->SetRefHdl(LINK( this, ScAcceptChgDlg, RefHandle )); diff --git a/sc/source/ui/miscdlgs/conflictsdlg.cxx b/sc/source/ui/miscdlgs/conflictsdlg.cxx index 69c2979efe53..876febabfa76 100644 --- a/sc/source/ui/miscdlgs/conflictsdlg.cxx +++ b/sc/source/ui/miscdlgs/conflictsdlg.cxx @@ -335,7 +335,7 @@ ScConflictsDlg::ScConflictsDlg(weld::Window* pParent, ScViewData* pViewData, ScD , mpSharedDoc ( pSharedDoc ) , mpSharedTrack ( nullptr ) , mrConflictsList ( rConflictsList ) - , maSelectionIdle ( "ScConflictsDlg SelectionIdle" ) + , maSelectionIdle ( "ScConflictsDlg maSelectionIdle" ) , mbInSelectHdl ( false ) , m_xBtnKeepMine(m_xBuilder->weld_button("keepmine")) , m_xBtnKeepOther(m_xBuilder->weld_button("keepother")) @@ -364,7 +364,6 @@ ScConflictsDlg::ScConflictsDlg(weld::Window* pParent, ScViewData* pViewData, ScD rTreeView.set_size_request(-1, rTreeView.get_height_rows(16)); maSelectionIdle.SetInvokeHandler( LINK( this, ScConflictsDlg, UpdateSelectionHdl ) ); - maSelectionIdle.SetDebugName( "ScConflictsDlg maSelectionIdle" ); rTreeView.connect_changed(LINK(this, ScConflictsDlg, SelectHandle)); diff --git a/sc/source/ui/miscdlgs/dataproviderdlg.cxx b/sc/source/ui/miscdlgs/dataproviderdlg.cxx index 4671cf78e192..e3c8c517b404 100644 --- a/sc/source/ui/miscdlgs/dataproviderdlg.cxx +++ b/sc/source/ui/miscdlgs/dataproviderdlg.cxx @@ -761,6 +761,7 @@ ScDataProviderDlg::ScDataProviderDlg(weld::Window* pParent, std::shared_ptr<ScDo , mxEditID(m_xBuilder->weld_entry("ed_id")) , mxApplyBtn(m_xBuilder->weld_button("apply")) , mxBrowseBtn(m_xBuilder->weld_button("browse")) + , maIdle("ScDataProviderDlg maIdle") , mnIndex(0) { Size aPrefSize = mxTable->GetOptimalSize(); diff --git a/sc/source/ui/miscdlgs/instbdlg.cxx b/sc/source/ui/miscdlgs/instbdlg.cxx index 748318997fb6..1a7c6d804576 100644 --- a/sc/source/ui/miscdlgs/instbdlg.cxx +++ b/sc/source/ui/miscdlgs/instbdlg.cxx @@ -36,6 +36,7 @@ ScInsertTableDlg::ScInsertTableDlg(weld::Window* pParent, ScViewData& rData, SCTAB nTabCount, bool bFromFile) : GenericDialogController(pParent, "modules/scalc/ui/insertsheet.ui", "InsertSheetDialog") + , aBrowseTimer("ScInsertTableDlg aBrowseTimer") , rViewData(rData) , rDoc(rData.GetDocument()) , pDocShTables(nullptr) diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx index 756f89426fe4..ca3956ad8cd4 100644 --- a/sc/source/ui/navipi/navipi.cxx +++ b/sc/source/ui/navipi/navipi.cxx @@ -350,6 +350,7 @@ ScNavigatorDlg::ScNavigatorDlg(SfxBindings* pB, weld::Widget* pParent, SfxNaviga , m_xLbDocuments(m_xBuilder->weld_combo_box("documents")) , m_xDragModeMenu(m_xBuilder->weld_menu("dragmodemenu")) , m_xNavigatorDlg(pNavigatorDlg) + , aContentIdle("ScNavigatorDlg aContentIdle") , aStrActiveWin(ScResId(SCSTR_ACTIVEWIN)) , pViewData(nullptr ) , eListMode(NAV_LMODE_NONE) diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index ef01c2ab1abe..8e7bfff9d09e 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -369,6 +369,7 @@ ScGridWindow::ScGridWindow( vcl::Window* pParent, ScViewData& rData, ScSplitPos aCurMousePos( 0,0 ), nPaintCount( 0 ), aRFSelectedCorned( NONE ), + maShowPageBreaksTimer("ScGridWindow maShowPageBreaksTimer"), bEEMouse( false ), bDPMouse( false ), bRFMouse( false ), diff --git a/sc/source/ui/view/notemark.cxx b/sc/source/ui/view/notemark.cxx index fd9ce3b406e0..ba0d3c1da18b 100644 --- a/sc/source/ui/view/notemark.cxx +++ b/sc/source/ui/view/notemark.cxx @@ -43,6 +43,7 @@ ScNoteMarker::ScNoteMarker( vcl::Window* pWin, vcl::Window* pRight, vcl::Window* m_pDoc( pD ), m_aDocPos( aPos ), m_aUserText( rUser ), + m_aTimer("ScNoteMarker m_aTimer"), m_aMapMode( rMap ), m_bLeft( bLeftEdge ), m_bByKeyboard( bKeyboard ), diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index 530d78ec81ed..1315b2d88214 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -183,6 +183,7 @@ ScTabView::ScTabView( vcl::Window* pParent, ScDocShell& rDocSh, ScTabViewShell* aCornerButton( VclPtr<ScCornerButton>::Create( pFrameWin, &aViewData ) ), aTopButton( VclPtr<ScCornerButton>::Create( pFrameWin, &aViewData ) ), aScrollBarBox( VclPtr<ScrollBarBox>::Create( pFrameWin, WB_SIZEABLE ) ), + aScrollTimer("ScTabView aScrollTimer"), pTimerWindow( nullptr ), aExtraEditViewManager( pViewShell, pGridWin ), nTipVisible( nullptr ), |