diff options
193 files changed, 281 insertions, 229 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index aeb49604cc50..52befe373a4f 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -239,6 +239,7 @@ EditorWindow::EditorWindow (vcl::Window* pParent, ModulWindow* pModulWindow) : nCurTextWidth(0), m_nSetSourceInBasicId(nullptr), aHighlighter(HighlighterLanguage::Basic), + aSyntaxIdle( "basctl EditorWindow aSyntaxIdle" ), bHighlighting(false), bDoSyntaxHighlight(true), bDelayHighlight(true), @@ -999,7 +1000,6 @@ void EditorWindow::CreateEditEngine() ImplSetFont(); aSyntaxIdle.SetInvokeHandler( LINK( this, EditorWindow, SyntaxTimerHdl ) ); - aSyntaxIdle.SetDebugName( "basctl EditorWindow aSyntaxIdle" ); bool bWasDoSyntaxHighlight = bDoSyntaxHighlight; bDoSyntaxHighlight = false; // too slow for large texts... diff --git a/basctl/source/dlged/dlgedfunc.cxx b/basctl/source/dlged/dlgedfunc.cxx index 8d666f0694d1..c43b22c8e16a 100644 --- a/basctl/source/dlged/dlgedfunc.cxx +++ b/basctl/source/dlged/dlgedfunc.cxx @@ -77,7 +77,7 @@ void DlgEdFunc::ForceScroll( const Point& rPos ) } DlgEdFunc::DlgEdFunc (DlgEditor& rParent_) : - rParent(rParent_) + rParent(rParent_), aScrollTimer("basctl DlgEdFunc aScrollTimer") { aScrollTimer.SetInvokeHandler( LINK( this, DlgEdFunc, ScrollTimeout ) ); aScrollTimer.SetTimeout( SELENG_AUTOREPEAT_INTERVAL ); diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx index 36595e53ca5e..b554f3f6c94e 100644 --- a/basic/source/runtime/methods1.cxx +++ b/basic/source/runtime/methods1.cxx @@ -573,7 +573,7 @@ void Wait_Impl( bool bDurationBased, SbxArray& rPar ) return; } - Timer aTimer; + Timer aTimer("basic Wait_Impl"); aTimer.SetTimeout( nWait ); aTimer.Start(); while ( aTimer.IsActive() && !Application::IsQuit()) diff --git a/chart2/inc/ChartView.hxx b/chart2/inc/ChartView.hxx index 2634288daed7..2830e89309f8 100644 --- a/chart2/inc/ChartView.hxx +++ b/chart2/inc/ChartView.hxx @@ -64,7 +64,7 @@ struct TimeBasedInfo bool bTimeBased; size_t nFrame; - Timer maTimer; + Timer maTimer { "chart2 TimeBasedInfo" }; // only valid when we are in the time based mode std::vector< std::vector< VDataSeries* > > m_aDataSeriesList; diff --git a/chart2/source/controller/dialogs/DataBrowser.cxx b/chart2/source/controller/dialogs/DataBrowser.cxx index 828bc883b2d3..82fa296222da 100644 --- a/chart2/source/controller/dialogs/DataBrowser.cxx +++ b/chart2/source/controller/dialogs/DataBrowser.cxx @@ -231,7 +231,7 @@ private: }; SeriesHeader::SeriesHeader(weld::Container* pParent, weld::Container* pColorParent) - : m_aUpdateDataTimer("UpdateDataTimer") + : m_aUpdateDataTimer( "SeriesHeader UpdateDataTimer" ) , m_xBuilder1(Application::CreateBuilder(pParent, "modules/schart/ui/columnfragment.ui")) , m_xBuilder2(Application::CreateBuilder(pColorParent, "modules/schart/ui/imagefragment.ui")) , m_pParent(pParent) @@ -248,7 +248,6 @@ SeriesHeader::SeriesHeader(weld::Container* pParent, weld::Container* pColorPare , m_bSeriesNameChangePending( false ) { m_aUpdateDataTimer.SetInvokeHandler(LINK(this, SeriesHeader, ImplUpdateDataHdl)); - m_aUpdateDataTimer.SetDebugName( "SeriesHeader UpdateDataTimer" ); m_aUpdateDataTimer.SetTimeout(4 * EDIT_UPDATEDATA_TIMEOUT); m_spSeriesName->SetModifyHdl(LINK(this, SeriesHeader, SeriesNameEdited)); diff --git a/chart2/source/controller/dialogs/TimerTriggeredControllerLock.cxx b/chart2/source/controller/dialogs/TimerTriggeredControllerLock.cxx index f64fc6fa11ff..554628317890 100644 --- a/chart2/source/controller/dialogs/TimerTriggeredControllerLock.cxx +++ b/chart2/source/controller/dialogs/TimerTriggeredControllerLock.cxx @@ -28,6 +28,7 @@ using namespace ::com::sun::star; TimerTriggeredControllerLock::TimerTriggeredControllerLock( const uno::Reference<frame::XModel>& xModel) : m_xModel(xModel) + , m_aTimer("chart2 TimerTriggeredControllerLock") { m_aTimer.SetTimeout(4 * EDIT_UPDATEDATA_TIMEOUT); m_aTimer.SetInvokeHandler(LINK(this, TimerTriggeredControllerLock, TimerTimeout)); diff --git a/chart2/source/controller/dialogs/tp_3D_SceneGeometry.cxx b/chart2/source/controller/dialogs/tp_3D_SceneGeometry.cxx index fca47ad13d45..3a76aa57f6dd 100644 --- a/chart2/source/controller/dialogs/tp_3D_SceneGeometry.cxx +++ b/chart2/source/controller/dialogs/tp_3D_SceneGeometry.cxx @@ -47,6 +47,8 @@ ThreeD_SceneGeometry_TabPage::ThreeD_SceneGeometry_TabPage(weld::Container* pPar const uno::Reference< beans::XPropertySet > & xSceneProperties, ControllerLockHelper & rControllerLockHelper) : m_xSceneProperties( xSceneProperties ) + , m_aAngleTimer("chart2 ThreeD_SceneGeometry_TabPage m_aAngleTimer") + , m_aPerspectiveTimer("chart2 ThreeD_SceneGeometry_TabPage m_aPerspectiveTimer") , m_nXRotation(0) , m_nYRotation(0) , m_nZRotation(0) diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index 5ae751ad96b0..e8551ba211d9 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -102,6 +102,7 @@ ChartController::ChartController(uno::Reference<uno::XComponentContext> const & m_xCC(xContext), m_aModel( nullptr, m_aModelMutex ), m_eDragMode(SdrDragMode::Move), + m_aDoubleClickTimer("chart2 ChartController m_aDoubleClickTimer"), m_bWaitingForDoubleClick(false), m_bWaitingForMouseUp(false), m_bFieldButtonDown(false), diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx index 98f965a6ce9e..dbe8eff7c832 100644 --- a/cui/source/customize/acccfg.cxx +++ b/cui/source/customize/acccfg.cxx @@ -834,7 +834,8 @@ SfxAcceleratorConfigPage::SfxAcceleratorConfigPage(weld::Container* pPage, , aFilterAllStr(SfxResId(STR_SFX_FILTERNAME_ALL)) , aFilterCfgStr(CuiResId(RID_SVXSTR_FILTERNAME_CFG)) , m_bStylesInfoInitialized(false) - , m_aUpdateDataTimer("UpdateDataTimer") + , m_aUpdateDataTimer("SfxAcceleratorConfigPage UpdateDataTimer") + , m_aFillGroupIdle("SfxAcceleratorConfigPage m_aFillGroupIdle") , m_xEntriesBox(m_xBuilder->weld_tree_view("shortcuts")) , m_xOfficeButton(m_xBuilder->weld_radio_button("office")) , m_xModuleButton(m_xBuilder->weld_radio_button("module")) @@ -904,12 +905,10 @@ SfxAcceleratorConfigPage::SfxAcceleratorConfigPage(weld::Container* pPage, m_xKeyBox->make_sorted(); m_aUpdateDataTimer.SetInvokeHandler(LINK(this, SfxAcceleratorConfigPage, ImplUpdateDataHdl)); - m_aUpdateDataTimer.SetDebugName("SfxAcceleratorConfigPage UpdateDataTimer"); m_aUpdateDataTimer.SetTimeout(EDIT_UPDATEDATA_TIMEOUT); m_aFillGroupIdle.SetInvokeHandler(LINK(this, SfxAcceleratorConfigPage, TimeOut_Impl)); m_aFillGroupIdle.SetPriority(TaskPriority::HIGHEST); - m_aFillGroupIdle.SetDebugName("SfxAcceleratorConfigPage m_aFillGroupIdle"); } SfxAcceleratorConfigPage::~SfxAcceleratorConfigPage() diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 57f6a467bc43..eb7f4ce17c62 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -970,7 +970,7 @@ IMPL_LINK(SvxMenuEntriesListBox, KeyInputHdl, const KeyEvent&, rKeyEvent, bool) *****************************************************************************/ SvxConfigPage::SvxConfigPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet) : SfxTabPage(pPage, pController, "cui/ui/menuassignpage.ui", "MenuAssignPage", &rSet) - , m_aUpdateDataTimer("UpdateDataTimer") + , m_aUpdateDataTimer( "SvxConfigPage UpdateDataTimer" ) , bInitialised(false) , pCurrentSaveInData(nullptr) , m_xCommandCategoryListBox(new CommandCategoryListBox(m_xBuilder->weld_combo_box("commandcategorylist"))) @@ -1002,7 +1002,6 @@ SvxConfigPage::SvxConfigPage(weld::Container* pPage, weld::DialogController* pCo m_xDescriptionField->set_size_request(aSize.Width(), m_xDescriptionField->get_height_rows(3)); m_aUpdateDataTimer.SetInvokeHandler(LINK(this, SvxConfigPage, ImplUpdateDataHdl)); - m_aUpdateDataTimer.SetDebugName( "SvxConfigPage UpdateDataTimer" ); m_aUpdateDataTimer.SetTimeout(EDIT_UPDATEDATA_TIMEOUT); m_xSearchEdit->connect_changed(LINK(this, SvxConfigPage, SearchUpdateHdl)); diff --git a/cui/source/dialogs/AdditionsDialog.cxx b/cui/source/dialogs/AdditionsDialog.cxx index 5ca2d10051ec..d1a2ee2388cd 100644 --- a/cui/source/dialogs/AdditionsDialog.cxx +++ b/cui/source/dialogs/AdditionsDialog.cxx @@ -451,7 +451,7 @@ void SearchAndParseThread::execute() AdditionsDialog::AdditionsDialog(weld::Window* pParent, const OUString& sAdditionsTag) : GenericDialogController(pParent, "cui/ui/additionsdialog.ui", "AdditionsDialog") - , m_aSearchDataTimer("SearchDataTimer") + , m_aSearchDataTimer("AdditionsDialog SearchDataTimer") , m_xEntrySearch(m_xBuilder->weld_entry("entrySearch")) , m_xButtonClose(m_xBuilder->weld_button("buttonClose")) , m_xMenuButtonSettings(m_xBuilder->weld_menu_button("buttonGear")) @@ -464,7 +464,6 @@ AdditionsDialog::AdditionsDialog(weld::Window* pParent, const OUString& sAdditio m_xGearBtn->set_item_active("gear_sort_voting", true); m_aSearchDataTimer.SetInvokeHandler(LINK(this, AdditionsDialog, ImplUpdateDataHdl)); - m_aSearchDataTimer.SetDebugName("AdditionsDialog SearchDataTimer"); m_aSearchDataTimer.SetTimeout(EDIT_UPDATEDATA_TIMEOUT); m_xEntrySearch->connect_changed(LINK(this, AdditionsDialog, SearchUpdateHdl)); diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index 6e8e590d107c..1d1c1429399a 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -583,6 +583,7 @@ std::unique_ptr<SfxTabPage> TPGalleryThemeGeneral::Create(weld::Container* pPage TPGalleryThemeProperties::TPGalleryThemeProperties(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet) : SfxTabPage(pPage, pController, "cui/ui/galleryfilespage.ui", "GalleryFilesPage", &rSet) , pData(nullptr) + , aPreviewTimer("cui TPGalleryThemeProperties aPreviewTimer") , bEntriesFound(false) , bInputAllowed(true) , bTakeAll(false) diff --git a/cui/source/dialogs/cuigrfflt.cxx b/cui/source/dialogs/cuigrfflt.cxx index 4f86d6e1a186..c67ee92d141c 100644 --- a/cui/source/dialogs/cuigrfflt.cxx +++ b/cui/source/dialogs/cuigrfflt.cxx @@ -127,6 +127,7 @@ GraphicFilterDialog::GraphicFilterDialog(weld::Window* pParent, const OUString& rUIXMLDescription, const OString& rID, const Graphic& rGraphic) : GenericDialogController(pParent, rUIXMLDescription, rID) + , maTimer("cui GraphicFilterDialog maTimer") , maModifyHdl(LINK(this, GraphicFilterDialog, ImplModifyHdl)) , mxPreview(new weld::CustomWeld(*m_xBuilder, "preview", maPreview)) { diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx index 3f20145aafac..987cf97514a9 100644 --- a/cui/source/dialogs/hltpbase.cxx +++ b/cui/source/dialogs/hltpbase.cxx @@ -118,6 +118,7 @@ SvxHyperlinkTabPageBase::SvxHyperlinkTabPageBase(weld::Container* pParent, , mbIsCloseDisabled( false ) , mpDialog( pDlg ) , mbStdControlsInit( false ) + , maTimer("cui SvxHyperlinkTabPageBase maTimer") { // create bookmark-window } diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx index e75db5fe5183..fef7b46fb537 100644 --- a/cui/source/tabpages/chardlg.cxx +++ b/cui/source/tabpages/chardlg.cxx @@ -170,7 +170,7 @@ void SvxCharBasePage::SetPrevFontEscapement( sal_uInt8 nProp, sal_uInt8 nEscProp struct SvxCharNamePage_Impl { - Idle m_aUpdateIdle; + Idle m_aUpdateIdle { "cui SvxCharNamePage_Impl m_aUpdateIdle" }; OUString m_aNoStyleText; std::unique_ptr<FontList> m_pFontList; int m_nExtraEntryPos; diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx index df3e47bf489b..9d4c176810d2 100644 --- a/cui/source/tabpages/macroass.cxx +++ b/cui/source/tabpages/macroass.cxx @@ -47,7 +47,7 @@ public: std::unique_ptr<weld::Frame> m_xMacroFrame; std::unique_ptr<CuiConfigFunctionListBox> m_xMacroLB; - Idle m_aFillGroupIdle; + Idle m_aFillGroupIdle { "cui SfxMacroTabPage m_aFillGroupIdle" }; bool m_bGotEvents; }; @@ -105,7 +105,6 @@ SfxMacroTabPage::SfxMacroTabPage(weld::Container* pPage, weld::DialogController* mpImpl->m_aFillGroupIdle.SetInvokeHandler( LINK( this, SfxMacroTabPage, TimeOut_Impl ) ); mpImpl->m_aFillGroupIdle.SetPriority( TaskPriority::HIGHEST ); - mpImpl->m_aFillGroupIdle.SetDebugName( "SfxMacroTabPage m_aFillGroupIdle" ); mpImpl->m_xEventLB.reset(new MacroEventListBox(m_xBuilder->weld_tree_view("assignments"))); mpImpl->m_xAssignPB = m_xBuilder->weld_button("assign"); diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index 59093e572c89..2761d418fa5c 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -1011,6 +1011,7 @@ IMPL_LINK_NOARG(SvxBitmapPickTabPage, ClickAddBrowseHdl_Impl, weld::Button&, voi SvxNumOptionsTabPage::SvxNumOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet) : SfxTabPage(pPage, pController, "cui/ui/numberingoptionspage.ui", "NumberingOptionsPage", &rSet) + , aInvalidateTimer("cui SvxNumOptionsTabPage aInvalidateTimer") , m_pLevelHdlEvent(nullptr) , bLastWidthModified(false) , bModified(false) diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx index e799ab9c30e6..3ae63b6012f4 100644 --- a/dbaccess/source/ui/browser/brwctrlr.cxx +++ b/dbaccess/source/ui/browser/brwctrlr.cxx @@ -525,6 +525,7 @@ Any SAL_CALL SbaXDataBrowserController::queryInterface(const Type& _rType) SbaXDataBrowserController::SbaXDataBrowserController(const Reference< css::uno::XComponentContext >& _rM) :SbaXDataBrowserController_Base(_rM) ,m_nRowSetPrivileges(0) + ,m_aInvalidateClipboard("dbaui::SbaXDataBrowserController m_aInvalidateClipboard") ,m_aAsyncGetCellFocus(LINK(this, SbaXDataBrowserController, OnAsyncGetCellFocus)) ,m_aAsyncDisplayError( LINK( this, SbaXDataBrowserController, OnAsyncDisplayError ) ) ,m_sStateSaveRecord(DBA_RES(RID_STR_SAVE_CURRENT_RECORD)) @@ -542,7 +543,6 @@ SbaXDataBrowserController::SbaXDataBrowserController(const Reference< css::uno:: } osl_atomic_decrement(&m_refCount); - m_aInvalidateClipboard.SetDebugName("dbaui::SbaXDataBrowserController m_aInvalidateClipboard"); m_aInvalidateClipboard.SetInvokeHandler(LINK(this, SbaXDataBrowserController, OnInvalidateClipboard)); m_aInvalidateClipboard.SetTimeout(300); } diff --git a/dbaccess/source/ui/control/dbtreelistbox.cxx b/dbaccess/source/ui/control/dbtreelistbox.cxx index 0935caf8ff5d..55c9d3877389 100644 --- a/dbaccess/source/ui/control/dbtreelistbox.cxx +++ b/dbaccess/source/ui/control/dbtreelistbox.cxx @@ -109,6 +109,7 @@ TreeListBox::TreeListBox(std::unique_ptr<weld::TreeView> xTreeView, bool bSQLTyp , m_aDropTargetHelper(*this) , m_pActionListener(nullptr) , m_pContextMenuProvider(nullptr) + , m_aTimer("dbaccess TreeListBox m_aTimer") { m_xTreeView->connect_key_press(LINK(this, TreeListBox, KeyInputHdl)); m_xTreeView->connect_changed(LINK(this, TreeListBox, SelectHdl)); diff --git a/dbaccess/source/ui/control/sqledit.cxx b/dbaccess/source/ui/control/sqledit.cxx index 0be854655593..f1b7e2add71a 100644 --- a/dbaccess/source/ui/control/sqledit.cxx +++ b/dbaccess/source/ui/control/sqledit.cxx @@ -67,7 +67,8 @@ private: }; SQLEditView::SQLEditView() - : m_aHighlighter(HighlighterLanguage::SQL) + : m_aUpdateDataTimer("dbaccess SQLEditView m_aUpdateDataTimer") + , m_aHighlighter(HighlighterLanguage::SQL) , m_bInUpdate(false) , m_bDisableInternalUndo(false) { diff --git a/dbaccess/source/ui/dlg/paramdialog.cxx b/dbaccess/source/ui/dlg/paramdialog.cxx index a7bd8ae1538f..5bb6024a4b67 100644 --- a/dbaccess/source/ui/dlg/paramdialog.cxx +++ b/dbaccess/source/ui/dlg/paramdialog.cxx @@ -50,6 +50,7 @@ namespace dbaui , m_nCurrentlySelected(-1) , m_xConnection(_rxConnection) , m_aPredicateInput( rxContext, _rxConnection, getParseContext() ) + , m_aResetVisitFlag("dbaccess OParameterDialog m_aResetVisitFlag") , m_xAllParams(m_xBuilder->weld_tree_view("allParamTreeview")) , m_xParam(m_xBuilder->weld_entry("paramEntry")) , m_xTravelNext(m_xBuilder->weld_button("next")) diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx index 5d0bd23534ae..b28ea923ebf2 100644 --- a/dbaccess/source/ui/querydesign/JoinTableView.cxx +++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx @@ -162,6 +162,7 @@ void OScrollWindowHelper::Resize() OJoinTableView::OJoinTableView( vcl::Window* pParent, OJoinDesignView* pView ) :Window( pParent,WB_BORDER ) ,DropTargetHelper(this) + ,m_aDragScrollIdle("dbaccess OJoinTableView m_aDragScrollIdle") ,m_aDragOffset( Point(0,0) ) ,m_aScrollOffset( Point(0,0) ) ,m_pDragWin( nullptr ) diff --git a/dbaccess/source/ui/querydesign/QueryTextView.cxx b/dbaccess/source/ui/querydesign/QueryTextView.cxx index 4af5a1c591a8..f67ebbe31ef6 100644 --- a/dbaccess/source/ui/querydesign/QueryTextView.cxx +++ b/dbaccess/source/ui/querydesign/QueryTextView.cxx @@ -35,6 +35,8 @@ OQueryTextView::OQueryTextView(OQueryContainerWindow* pParent, OQueryController& , m_rController(rController) , m_xSQL(new SQLEditView) , m_xSQLEd(new weld::CustomWeld(*m_xBuilder, "sql", *m_xSQL)) + , m_timerUndoActionCreation("dbaccess OQueryTextView m_timerUndoActionCreation") + , m_timerInvalidate("dbaccess OQueryTextView m_timerInvalidate") , m_bStopTimer(false) { m_xSQL->DisableInternalUndo(); diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx index f008ce03a2ba..f1b4d9563962 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx @@ -103,6 +103,7 @@ namespace OSelectionBrowseBox::OSelectionBrowseBox( vcl::Window* pParent ) :EditBrowseBox( pParent,EditBrowseBoxFlags::NO_HANDLE_COLUMN_CONTENT, WB_3DLOOK, BrowserMode::COLUMNSELECTION | BrowserMode::KEEPHIGHLIGHT | BrowserMode::HIDESELECT | BrowserMode::HIDECURSOR | BrowserMode::HLINES | BrowserMode::VLINES ) + ,m_timerInvalidate("dbaccess OSelectionBrowseBox m_timerInvalidate") ,m_nSeekRow(0) ,m_nMaxColumns(0) ,m_aFunctionStrings(DBA_RES(STR_QUERY_FUNCTIONS)) diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx index 8fa367060361..010ce0878c50 100644 --- a/dbaccess/source/ui/tabledesign/TEditControl.cxx +++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx @@ -69,7 +69,8 @@ using namespace ::com::sun::star::sdb; #define MAX_DESCR_LEN 256 OTableEditorCtrl::ClipboardInvalidator::ClipboardInvalidator(OTableEditorCtrl* _pOwner) -: m_pOwner(_pOwner) +: m_aInvalidateTimer("dbaccess ClipboardInvalidator") +, m_pOwner(_pOwner) { m_aInvalidateTimer.SetTimeout(500); diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 4943caa3cac9..bd5476af896d 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -425,10 +425,10 @@ Desktop::Desktop() , m_bServicesRegistered(false) , m_aBootstrapError(BE_OK) , m_aBootstrapStatus(BS_OK) + , m_firstRunTimer( "desktop::Desktop m_firstRunTimer" ) { m_firstRunTimer.SetTimeout(3000); // 3 sec. m_firstRunTimer.SetInvokeHandler(LINK(this, Desktop, AsyncInitFirstRun)); - m_firstRunTimer.SetDebugName( "desktop::Desktop m_firstRunTimer" ); } Desktop::~Desktop() @@ -1877,7 +1877,7 @@ namespace { class ExitTimer : public Timer { public: - ExitTimer() + ExitTimer() : Timer("desktop ExitTimer") { SetTimeout(500); Start(); diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx index 28eec755c563..9e700ff46a93 100644 --- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx +++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx @@ -419,6 +419,7 @@ ExtMgrDialog::ExtMgrDialog(weld::Window *pParent, TheExtensionManager *pManager) , m_bDeleteWarning(false) , m_bClosed(false) , m_nProgress(0) + , m_aIdle( "ExtMgrDialog m_aIdle TimeOutHdl" ) , m_pManager(pManager) , m_xExtensionBox(new ExtBoxWithBtns_Impl(m_xBuilder->weld_scrolled_window("scroll", true))) , m_xExtensionBoxWnd(new weld::CustomWeld(*m_xBuilder, "extensions", *m_xExtensionBox)) @@ -477,7 +478,6 @@ ExtMgrDialog::ExtMgrDialog(weld::Window *pParent, TheExtensionManager *pManager) } m_aIdle.SetPriority(TaskPriority::LOWEST); - m_aIdle.SetDebugName( "ExtMgrDialog m_aIdle TimeOutHdl" ); m_aIdle.SetInvokeHandler( LINK( this, ExtMgrDialog, TimeOutHdl ) ); } @@ -969,6 +969,7 @@ UpdateRequiredDialog::UpdateRequiredDialog(weld::Window *pParent, TheExtensionMa , m_bStopProgress(false) , m_bHasLockedEntries(false) , m_nProgress(0) + , m_aIdle( "UpdateRequiredDialog m_aIdle TimeOutHdl" ) , m_pManager(pManager) , m_xExtensionBox(new ExtensionBox_Impl(m_xBuilder->weld_scrolled_window("scroll", true))) , m_xExtensionBoxWnd(new weld::CustomWeld(*m_xBuilder, "extensions", *m_xExtensionBox)) @@ -995,7 +996,6 @@ UpdateRequiredDialog::UpdateRequiredDialog(weld::Window *pParent, TheExtensionMa m_xCloseBtn->grab_focus(); m_aIdle.SetPriority( TaskPriority::LOWEST ); - m_aIdle.SetDebugName( "UpdateRequiredDialog m_aIdle TimeOutHdl" ); m_aIdle.SetInvokeHandler( LINK( this, UpdateRequiredDialog, TimeOutHdl ) ); } diff --git a/desktop/source/deployment/gui/license_dialog.cxx b/desktop/source/deployment/gui/license_dialog.cxx index 34fa924b8128..23f184a333dc 100644 --- a/desktop/source/deployment/gui/license_dialog.cxx +++ b/desktop/source/deployment/gui/license_dialog.cxx @@ -79,6 +79,8 @@ LicenseDialogImpl::LicenseDialogImpl( const OUString & sLicenseText) : GenericDialogController(pParent, "desktop/ui/licensedialog.ui", "LicenseDialog") , m_bLicenseRead(false) + , m_aResized("desktop LicenseDialogImpl m_aResized") + , m_aRepeat("LicenseDialogImpl m_aRepeat") , m_xFtHead(m_xBuilder->weld_label("head")) , m_xArrow1(m_xBuilder->weld_widget("arrow1")) , m_xArrow2(m_xBuilder->weld_widget("arrow2")) diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx index f32e42bcf023..9129271bcb6b 100644 --- a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx +++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx @@ -75,10 +75,9 @@ public: }; VDevBuffer::VDevBuffer() - : Timer("VDevBuffer timer") + : Timer("drawinglayer::VDevBuffer via Invoke()") { SetTimeout(10L * 1000L); // ten seconds - SetDebugName("drawinglayer::VDevBuffer via Invoke()"); } VDevBuffer::~VDevBuffer() diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 90b7603a6b93..5a3fc449a9e3 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -105,6 +105,8 @@ ImpEditEngine::ImpEditEngine( EditEngine* pEE, SfxItemPool* pItemPool ) : eDefLanguage(LANGUAGE_DONTKNOW), nCurTextHeight(0), nCurTextHeightNTP(0), + aOnlineSpellTimer( "editeng::ImpEditEngine aOnlineSpellTimer" ), + aStatusTimer( "editeng::ImpEditEngine aStatusTimer" ), bKernAsianPunctuation(false), bAddExtLeading(false), bIsFormatting(false), @@ -131,15 +133,12 @@ ImpEditEngine::ImpEditEngine( EditEngine* pEE, SfxItemPool* pItemPool ) : aStatusTimer.SetTimeout( 200 ); aStatusTimer.SetInvokeHandler( LINK( this, ImpEditEngine, StatusTimerHdl ) ); - aStatusTimer.SetDebugName( "editeng::ImpEditEngine aStatusTimer" ); aIdleFormatter.SetPriority( TaskPriority::REPAINT ); aIdleFormatter.SetInvokeHandler( LINK( this, ImpEditEngine, IdleFormatHdl ) ); - aIdleFormatter.SetDebugName( "editeng::ImpEditEngine aIdleFormatter" ); aOnlineSpellTimer.SetTimeout( 100 ); aOnlineSpellTimer.SetInvokeHandler( LINK( this, ImpEditEngine, OnlineSpellHdl ) ); - aOnlineSpellTimer.SetDebugName( "editeng::ImpEditEngine aOnlineSpellTimer" ); // Access data already from here on! SetRefDevice( nullptr ); diff --git a/editeng/source/editeng/impedit5.cxx b/editeng/source/editeng/impedit5.cxx index 6a5842d61886..c9d7563e2ffe 100644 --- a/editeng/source/editeng/impedit5.cxx +++ b/editeng/source/editeng/impedit5.cxx @@ -783,6 +783,7 @@ void ImpEditEngine::ParaAttribsToCharAttribs( ContentNode* pNode ) } IdleFormattter::IdleFormattter() + : Idle("editeng::ImpEditEngine aIdleFormatter") { pView = nullptr; nRestarts = 0; diff --git a/extensions/source/bibliography/toolbar.cxx b/extensions/source/bibliography/toolbar.cxx index 8aafe10954da..ef6c8b8559a1 100644 --- a/extensions/source/bibliography/toolbar.cxx +++ b/extensions/source/bibliography/toolbar.cxx @@ -224,6 +224,7 @@ EditControl::~EditControl() BibToolBar::BibToolBar(vcl::Window* pParent, Link<void*,void> aLink) : ToolBox(pParent, "toolbar", "modules/sbibliography/ui/toolbar.ui") + , aIdle("BibToolBar") , xSource(VclPtr<ComboBoxControl>::Create(this)) , pLbSource(xSource->get_widget()) , xQuery(VclPtr<EditControl>::Create(this)) diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index f719ed3af040..a67249097d7d 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -1802,6 +1802,7 @@ namespace frm :OBoundControl( _rxFactory, VCL_CONTROL_LISTBOX, false ) ,m_aChangeListeners( m_aMutex ) ,m_aItemListeners( m_aMutex ) + ,m_aChangeIdle("forms OListBoxControl m_aChangedIdle") { osl_atomic_increment(&m_refCount); diff --git a/fpicker/source/office/autocmpledit.cxx b/fpicker/source/office/autocmpledit.cxx index e0166a33691e..5a31c7bdc501 100644 --- a/fpicker/source/office/autocmpledit.cxx +++ b/fpicker/source/office/autocmpledit.cxx @@ -11,11 +11,11 @@ AutocompleteEdit::AutocompleteEdit(std::unique_ptr<weld::Entry> xEntry) : m_xEntry(std::move(xEntry)) + , m_aChangedIdle("fpicker::AutocompleteEdit m_aChangedIdle") { m_xEntry->connect_changed(LINK(this, AutocompleteEdit, ChangedHdl)); m_aChangedIdle.SetInvokeHandler(LINK(this, AutocompleteEdit, TryAutoComplete)); - m_aChangedIdle.SetDebugName("fpicker::AutocompleteEdit m_aChangedIdle"); } IMPL_LINK_NOARG(AutocompleteEdit, ChangedHdl, weld::Entry&, void) diff --git a/fpicker/source/office/fileview.cxx b/fpicker/source/office/fileview.cxx index cf831a080c0d..42d39aca2689 100644 --- a/fpicker/source/office/fileview.cxx +++ b/fpicker/source/office/fileview.cxx @@ -125,7 +125,7 @@ private: ::osl::Mutex maMutex; SvtFileView_Impl* mpParent; - Timer maResetQuickSearch; + Timer maResetQuickSearch { "fpicker SvtFileView_Impl maResetQuickSearch" }; OUString maQuickSearchText; sal_uInt32 mnSearchIndex; bool mbEnableDelete; diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx index 86b43c038a5b..1b651cbdd3fe 100644 --- a/fpicker/source/office/iodlgimp.cxx +++ b/fpicker/source/office/iodlgimp.cxx @@ -123,6 +123,7 @@ SvtExpFileDlg_Impl::SvtExpFileDlg_Impl() , m_eMode( FILEDLG_MODE_OPEN ) , m_eDlgType( FILEDLG_TYPE_FILEDLG ) , m_nStyle( PickerFlags::NONE ) + , m_aFilterIdle("fpicker SvtExpFileDlg_Impl m_aFilterIdle") , m_bDoubleClick( false ) , m_bMultiSelection( false ) { diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index 788e0796c8df..bed044cc5523 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -106,6 +106,7 @@ LayoutManager::LayoutManager( const Reference< XComponentContext >& xContext ) : , m_xModuleManager( ModuleManager::create( xContext )) , m_xUIElementFactoryManager( ui::theUIElementFactoryManager::get(xContext) ) , m_xPersistentWindowStateSupplier( ui::theWindowStateConfiguration::get( xContext ) ) + , m_aAsyncLayoutTimer( "framework::LayoutManager m_aAsyncLayoutTimer" ) , m_aListenerContainer( m_aMutex ) { // Initialize statusbar member @@ -120,7 +121,6 @@ LayoutManager::LayoutManager( const Reference< XComponentContext >& xContext ) : m_aAsyncLayoutTimer.SetPriority( TaskPriority::HIGH_IDLE ); m_aAsyncLayoutTimer.SetTimeout( 50 ); m_aAsyncLayoutTimer.SetInvokeHandler( LINK( this, LayoutManager, AsyncLayoutHdl ) ); - m_aAsyncLayoutTimer.SetDebugName( "framework::LayoutManager m_aAsyncLayoutTimer" ); registerProperty( LAYOUTMANAGER_PROPNAME_ASCII_AUTOMATICTOOLBARS, LAYOUTMANAGER_PROPHANDLE_AUTOMATICTOOLBARS, css::beans::PropertyAttribute::TRANSIENT, &m_bAutomaticToolbars, cppu::UnoType<decltype(m_bAutomaticToolbars)>::get() ); registerProperty( LAYOUTMANAGER_PROPNAME_ASCII_HIDECURRENTUI, LAYOUTMANAGER_PROPHANDLE_HIDECURRENTUI, beans::PropertyAttribute::TRANSIENT, &m_bHideCurrentUI, cppu::UnoType<decltype(m_bHideCurrentUI)>::get() ); diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx index 4455f810a938..9fc7470bf398 100644 --- a/framework/source/services/autorecovery.cxx +++ b/framework/source/services/autorecovery.cxx @@ -1215,7 +1215,7 @@ AutoRecovery::AutoRecovery(const css::uno::Reference< css::uno::XComponentContex , m_bListenForConfigChanges (false ) , m_nAutoSaveTimeIntervall (0 ) , m_eJob (Job::NoJob) - , m_aTimer ( "Auto save timer" ) + , m_aTimer( "framework::AutoRecovery m_aTimer" ) , m_xAsyncDispatcher (new vcl::EventPoster( LINK( this, AutoRecovery, implts_asyncDispatch ) )) , m_eTimerType (E_DONT_START_TIMER ) , m_nIdPool (0 ) @@ -1224,7 +1224,6 @@ AutoRecovery::AutoRecovery(const css::uno::Reference< css::uno::XComponentContex , m_nMinSpaceDocSave (MIN_DISCSPACE_DOCSAVE ) , m_nMinSpaceConfigSave (MIN_DISCSPACE_CONFIGSAVE ) { - m_aTimer.SetDebugName( "framework::AutoRecovery m_aTimer" ); } void AutoRecovery::initListeners() diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx index 42168962f21e..7e6b202d4353 100644 --- a/framework/source/uielement/menubarmanager.cxx +++ b/framework/source/uielement/menubarmanager.cxx @@ -93,8 +93,8 @@ MenuBarManager::MenuBarManager( , m_xContext(rxContext) , m_xURLTransformer(_xURLTransformer) , m_sIconTheme( SvtMiscOptions().GetIconTheme() ) + , m_aAsyncSettingsTimer( "framework::MenuBarManager::Deactivate m_aAsyncSettingsTimer" ) { - m_aAsyncSettingsTimer.SetDebugName( "framework::MenuBarManager::Deactivate m_aAsyncSettingsTimer" ); m_xPopupMenuControllerFactory = frame::thePopupMenuControllerFactory::get(m_xContext); FillMenuManager( pMenu, rFrame, rDispatchProvider, rModuleIdentifier, bDelete ); } diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index 774216a251bf..857d797bd542 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -576,6 +576,7 @@ ToolBarManager::ToolBarManager( const Reference< XComponentContext >& rxContext, m_xFrame( rFrame ), m_aListenerContainer( m_mutex ), m_xContext( rxContext ), + m_aAsyncUpdateControllersTimer( "framework::ToolBarManager m_aAsyncUpdateControllersTimer" ), m_sIconTheme( SvtMiscOptions().GetIconTheme() ) { Init(); @@ -596,6 +597,7 @@ ToolBarManager::ToolBarManager( const Reference< XComponentContext >& rxContext, m_xFrame( rFrame ), m_aListenerContainer( m_mutex ), m_xContext( rxContext ), + m_aAsyncUpdateControllersTimer( "framework::ToolBarManager m_aAsyncUpdateControllersTimer" ), m_sIconTheme( SvtMiscOptions().GetIconTheme() ) { Init(); @@ -637,7 +639,6 @@ void ToolBarManager::Init() m_aAsyncUpdateControllersTimer.SetTimeout( 50 ); m_aAsyncUpdateControllersTimer.SetInvokeHandler( LINK( this, ToolBarManager, AsyncUpdateControllersHdl ) ); - m_aAsyncUpdateControllersTimer.SetDebugName( "framework::ToolBarManager m_aAsyncUpdateControllersTimer" ); SvtMiscOptions().AddListenerLink( LINK( this, ToolBarManager, MiscOptionsChanged ) ); } diff --git a/include/vcl/dockwin.hxx b/include/vcl/dockwin.hxx index afca81622a2f..e6ce2b30830e 100644 --- a/include/vcl/dockwin.hxx +++ b/include/vcl/dockwin.hxx @@ -153,8 +153,6 @@ private: DockingWindow & operator= (const DockingWindow &) = delete; protected: - SAL_DLLPRIVATE void SetIdleDebugName( const char *pDebugName ); - using Window::ImplInit; SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle ); SAL_DLLPRIVATE void ImplInitSettings(); @@ -173,11 +171,11 @@ public: SAL_DLLPRIVATE bool isDeferredInit() const { return mbIsDeferredInit; } virtual void doDeferredInit(WinBits nBits); protected: - DockingWindow( WindowType nType ); - + DockingWindow( WindowType nType, const char* pIdleDebugName = "vcl::DockingWindow maLayoutIdle"); public: - DockingWindow(vcl::Window* pParent, WinBits nStyle); + DockingWindow(vcl::Window* pParent, WinBits nStyle, const char* pIdleDebugName = "vcl::DockingWindow maLayoutIdle"); DockingWindow(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription, + const char* pIdleDebugName = "vcl::DockingWindow maLayoutIdle", const css::uno::Reference<css::frame::XFrame> &rFrame = css::uno::Reference<css::frame::XFrame>()); virtual ~DockingWindow() override; virtual void dispose() override; diff --git a/include/vcl/idle.hxx b/include/vcl/idle.hxx index 9abafae440d8..d5162efcb70f 100644 --- a/include/vcl/idle.hxx +++ b/include/vcl/idle.hxx @@ -44,7 +44,7 @@ protected: Idle( bool bAuto, const char *pDebugName ); public: - Idle( const char *pDebugName = nullptr ); + Idle( const char *pDebugName ); virtual void Start(bool bStartTimer = true) override; }; diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx index 7108bc2ba927..0c35073aec09 100644 --- a/include/vcl/syswin.hxx +++ b/include/vcl/syswin.hxx @@ -135,7 +135,7 @@ private: protected: // Single argument ctors shall be explicit. - explicit SystemWindow(WindowType nType); + explicit SystemWindow(WindowType nType, const char* pIdleDebugName); void loadUI(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription, const css::uno::Reference<css::frame::XFrame> &rFrame = css::uno::Reference<css::frame::XFrame>()); void SetWindowStateData( const WindowStateData& rData ); @@ -144,8 +144,6 @@ protected: SAL_DLLPRIVATE void DoInitialLayout(); - SAL_DLLPRIVATE void SetIdleDebugName( const char *pDebugName ); - public: virtual ~SystemWindow() override; virtual void dispose() override; @@ -247,10 +245,4 @@ public: VclPtr<VirtualDevice> createScreenshot(); }; -inline void SystemWindow::SetIdleDebugName( const char *pDebugName ) -{ - maLayoutIdle.SetDebugName( pDebugName ); -} - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/vcl/task.hxx b/include/vcl/task.hxx index 3785e37fba53..5ed8cde7ff21 100644 --- a/include/vcl/task.hxx +++ b/include/vcl/task.hxx @@ -79,7 +79,6 @@ public: void SetPriority(TaskPriority ePriority); TaskPriority GetPriority() const { return mePriority; } - void SetDebugName( const char *pDebugName ) { mpDebugName = pDebugName; } const char *GetDebugName() const { return mpDebugName; } // Call handler diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx index cd8733518093..89cc623a180e 100644 --- a/include/vcl/timer.hxx +++ b/include/vcl/timer.hxx @@ -36,7 +36,7 @@ protected: Timer( bool bAuto, const char *pDebugName ); public: - Timer( const char *pDebugName = nullptr ); + Timer( const char *pDebugName ); Timer( const Timer& rTimer ); virtual ~Timer() override; Timer& operator=( const Timer& rTimer ); @@ -66,7 +66,7 @@ public: class VCL_DLLPUBLIC AutoTimer : public Timer { public: - AutoTimer( const char *pDebugName = nullptr ); + AutoTimer( const char *pDebugName ); }; /// Value suitable as a timeout user input into an EditBox to an expensive update diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 898eeaf2256a..72f93042dde2 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -396,6 +396,7 @@ void LngSvcMgrListenerHelper::RemoveLngSvcEvtBroadcaster( LngSvcMgr::LngSvcMgr() : utl::ConfigItem("Office.Linguistic") , aEvtListeners(GetLinguMutex()) + , aUpdateIdle("LngSvcMgr aUpdateIdle") { bDisposing = false; diff --git a/reportdesign/source/ui/report/dlgedfunc.cxx b/reportdesign/source/ui/report/dlgedfunc.cxx index f6e236cd3c0c..e258f659e05b 100644 --- a/reportdesign/source/ui/report/dlgedfunc.cxx +++ b/reportdesign/source/ui/report/dlgedfunc.cxx @@ -109,6 +109,7 @@ void DlgEdFunc::ForceScroll( const Point& rPos ) DlgEdFunc::DlgEdFunc( OReportSection* _pParent ) : m_pParent(_pParent) , m_rView(_pParent->getSectionView()) + , aScrollTimer("reportdesign DlgEdFunc aScrollTimer") , m_pOverlappingObj(nullptr) , m_nOverlappedControlColor(0) , m_nOldColor(0) 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 ), diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx index f3a4291f9ea6..d82a89e65da3 100644 --- a/sd/source/core/CustomAnimationEffect.cxx +++ b/sd/source/core/CustomAnimationEffect.cxx @@ -3043,6 +3043,7 @@ void SAL_CALL AnimationChangeListener::disposing( const css::lang::EventObject& MainSequence::MainSequence() : mxTimingRootNode(SequenceTimeContainer::create(::comphelper::getProcessComponentContext())) + , maTimer("sd MainSequence maTimer") , mbTimerMode(false) , mbRebuilding( false ) , mnRebuildLockGuard( 0 ) @@ -3060,6 +3061,7 @@ MainSequence::MainSequence() MainSequence::MainSequence( const css::uno::Reference< css::animations::XAnimationNode >& xNode ) : mxTimingRootNode( xNode, UNO_QUERY ) + , maTimer("sd MainSequence maTimer") , mbTimerMode( false ) , mbRebuilding( false ) , mnRebuildLockGuard( 0 ) diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx index f96d2f8f7133..77850c52b887 100644 --- a/sd/source/ui/animations/CustomAnimationPane.cxx +++ b/sd/source/ui/animations/CustomAnimationPane.cxx @@ -151,6 +151,7 @@ CustomAnimationPane::CustomAnimationPane( weld::Widget* pParent, ViewShellBase& , mnCurvePathPos(-1) , mnPolygonPathPos(-1) , mnFreeformPathPos(-1) + , maLateInitTimer("sd CustomAnimationPane maLateInitTimer") { initialize(); } diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx index 09298265a667..efb58db6b3cd 100644 --- a/sd/source/ui/animations/SlideTransitionPane.cxx +++ b/sd/source/ui/animations/SlideTransitionPane.cxx @@ -398,7 +398,8 @@ SlideTransitionPane::SlideTransitionPane( mpDrawDoc( rBase.GetDocShell() ? rBase.GetDocShell()->GetDoc() : nullptr ), mbHasSelection( false ), mbUpdatingControls( false ), - mbIsMainViewChangePending( false ) + mbIsMainViewChangePending( false ), + maLateInitTimer("sd SlideTransitionPane maLateInitTimer") { Initialize(mpDrawDoc); } diff --git a/sd/source/ui/dlg/BulletAndPositionDlg.cxx b/sd/source/ui/dlg/BulletAndPositionDlg.cxx index e8e5d62ef058..8b42d63c8add 100644 --- a/sd/source/ui/dlg/BulletAndPositionDlg.cxx +++ b/sd/source/ui/dlg/BulletAndPositionDlg.cxx @@ -76,6 +76,7 @@ class SdDrawDocument; SvxBulletAndPositionDlg::SvxBulletAndPositionDlg(weld::Window* pWindow, const SfxItemSet& rSet, const ::sd::View* pView) : GenericDialogController(pWindow, "cui/ui/bulletandposition.ui", "BulletAndPosition") + , aInvalidateTimer("sd SvxBulletAndPositionDlg aInvalidateTimer") , rFirstStateSet(rSet) , bLastWidthModified(false) , bModified(false) diff --git a/sd/source/ui/dlg/brkdlg.cxx b/sd/source/ui/dlg/brkdlg.cxx index 8edfac4e1aa4..bc1d0f5cff99 100644 --- a/sd/source/ui/dlg/brkdlg.cxx +++ b/sd/source/ui/dlg/brkdlg.cxx @@ -45,10 +45,10 @@ BreakDlg::BreakDlg(weld::Window* pWindow, DrawView* pDrView, DrawDocShell* pShel , m_xBtnCancel(m_xBuilder->weld_button("cancel")) , m_pDrView(pDrView) , m_bCancel(false) + , m_aUpdateIdle( "sd::BreakDlg m_aUpdateIdle" ) { m_aUpdateIdle.SetPriority( TaskPriority::REPAINT ); m_aUpdateIdle.SetInvokeHandler( LINK( this, BreakDlg, InitialUpdate ) ); - m_aUpdateIdle.SetDebugName( "sd::BreakDlg m_aUpdateIdle" ); m_xBtnCancel->connect_clicked(LINK(this, BreakDlg, CancelButtonHdl)); diff --git a/sd/source/ui/dlg/filedlg.cxx b/sd/source/ui/dlg/filedlg.cxx index a545f6dc946f..b2087c408acf 100644 --- a/sd/source/ui/dlg/filedlg.cxx +++ b/sd/source/ui/dlg/filedlg.cxx @@ -174,9 +174,9 @@ SdFileDialog_Imp::SdFileDialog_Imp(weld::Window* pParent) : FileDialogHelper(css::ui::dialogs::TemplateDescription::FILEOPEN_LINK_PLAY, FileDialogFlags::NONE, pParent) , mnPlaySoundEvent(nullptr) , mbLabelPlaying(false) + , maUpdateIdle( "SdFileDialog_Imp maUpdateIdle" ) { maUpdateIdle.SetInvokeHandler(LINK(this, SdFileDialog_Imp, IsMusicStoppedHdl)); - maUpdateIdle.SetDebugName( "SdFileDialog_Imp maUpdateIdle" ); css::uno::Reference < css::ui::dialogs::XFilePicker3 > xFileDlg = GetFilePicker(); diff --git a/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx b/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx index 7c31619e8b48..ceb5693275a1 100644 --- a/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx @@ -70,6 +70,7 @@ ConfigurationUpdater::ConfigurationUpdater ( mbUpdatePending(false), mbUpdateBeingProcessed(false), mnLockCount(0), + maUpdateTimer("sd::ConfigurationUpdater maUpdateTimer"), mnFailedUpdateCount(0), mpResourceManager(rpResourceManager) { @@ -77,7 +78,6 @@ ConfigurationUpdater::ConfigurationUpdater ( // and the requested configuration differ. With the timer we try // updates until the two configurations are the same. maUpdateTimer.SetTimeout(snNormalTimeout); - maUpdateTimer.SetDebugName("sd::ConfigurationUpdater maUpdateTimer"); maUpdateTimer.SetInvokeHandler(LINK(this,ConfigurationUpdater,TimeoutHandler)); mxControllerManager = rxControllerManager; } diff --git a/sd/source/ui/func/fupoor.cxx b/sd/source/ui/func/fupoor.cxx index db84fdf5ad19..067b281950eb 100644 --- a/sd/source/ui/func/fupoor.cxx +++ b/sd/source/ui/func/fupoor.cxx @@ -65,8 +65,11 @@ FuPoor::FuPoor ( mpDocSh( pDrDoc->GetDocSh() ), mpDoc(pDrDoc), nSlotId( rReq.GetSlot() ), + aScrollTimer("sd FuPoor aScrollTimer"), + aDragTimer("sd FuPoor aDragTimer"), bIsInDragMode(false), bNoScrollUntilInside (true), + aDelayToScrollTimer("sd FuPoor aDelayToScrollTimer"), bScrollable (false), bDelayActive (false), bFirstMouseMove (false), diff --git a/sd/source/ui/remotecontrol/ImagePreparer.cxx b/sd/source/ui/remotecontrol/ImagePreparer.cxx index 8279ddf33b4e..2647b213884e 100644 --- a/sd/source/ui/remotecontrol/ImagePreparer.cxx +++ b/sd/source/ui/remotecontrol/ImagePreparer.cxx @@ -42,7 +42,8 @@ using namespace ::com::sun::star::uno; ImagePreparer::ImagePreparer( const uno::Reference<presentation::XSlideShowController>& rxController, Transmitter *aTransmitter ) - : xController( rxController ), + : Timer("sd ImagePreparer"), + xController( rxController ), pTransmitter( aTransmitter ) { SAL_INFO( "sdremote", "ImagePreparer - start" ); diff --git a/sd/source/ui/remotecontrol/Receiver.cxx b/sd/source/ui/remotecontrol/Receiver.cxx index 3c0309e9e461..1ba8f1c02678 100644 --- a/sd/source/ui/remotecontrol/Receiver.cxx +++ b/sd/source/ui/remotecontrol/Receiver.cxx @@ -28,7 +28,7 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::presentation; using namespace ::com::sun::star::beans; -Receiver::Receiver( Transmitter *aTransmitter ) +Receiver::Receiver( Transmitter *aTransmitter ) : Timer("sd Receiver") { pTransmitter = aTransmitter; SetTimeout( 0 ); diff --git a/sd/source/ui/sidebar/MasterPageContainerQueue.cxx b/sd/source/ui/sidebar/MasterPageContainerQueue.cxx index 325ad4ff704c..229f3d9728c8 100644 --- a/sd/source/ui/sidebar/MasterPageContainerQueue.cxx +++ b/sd/source/ui/sidebar/MasterPageContainerQueue.cxx @@ -94,6 +94,7 @@ MasterPageContainerQueue::MasterPageContainerQueue ( const std::weak_ptr<ContainerAdapter>& rpContainer) : mpWeakContainer(rpContainer), mpRequestQueue(new RequestQueue()), + maDelayedPreviewCreationTimer("sd MasterPageContainerQueue maDelayedPreviewCreationTimer"), mnRequestsServedCount(0) { } diff --git a/sd/source/ui/slideshow/showwin.cxx b/sd/source/ui/slideshow/showwin.cxx index 2e961e45e4b2..417b7a12306e 100644 --- a/sd/source/ui/slideshow/showwin.cxx +++ b/sd/source/ui/slideshow/showwin.cxx @@ -47,6 +47,8 @@ const sal_uInt64 SHOW_MOUSE_TIMEOUT = 1000; ShowWindow::ShowWindow( const ::rtl::Reference< SlideshowImpl >& xController, vcl::Window* pParent ) : ::sd::Window( pParent ) +, maPauseTimer("sd ShowWindow maPauseTimer") +, maMouseTimer("sd ShowWindow maMouseTimer") , mnPauseTimeout( SLIDE_NO_TIMEOUT ) , mnRestartPageIndex( PAGE_NO_END ) , meShowWindowMode(SHOWWINDOWMODE_NORMAL) diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 37ba68c6baba..e50a3f595236 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -490,6 +490,9 @@ constexpr OUStringLiteral gsVerb( u"Verb" ); SlideshowImpl::SlideshowImpl( const Reference< XPresentation2 >& xPresentation, ViewShell* pViewSh, ::sd::View* pView, SdDrawDocument* pDoc, vcl::Window* pParentWindow ) : SlideshowImplBase( m_aMutex ) , mxModel(pDoc->getUnoModel(),UNO_QUERY_THROW) +, maUpdateTimer("SlideShowImpl maUpdateTimer") +, maInputFreezeTimer("SlideShowImpl maInputFreezeTimer") +, maDeactivateTimer("SlideShowImpl maDeactivateTimer") , mpView(pView) , mpViewShell(pViewSh) , mpDocSh(pDoc->GetDocSh()) @@ -519,16 +522,13 @@ SlideshowImpl::SlideshowImpl( const Reference< XPresentation2 >& xPresentation, if( mpViewShell ) mpOldActiveWindow = mpViewShell->GetActiveWindow(); - maUpdateTimer.SetDebugName("SlideShowImpl maUpdateTimer"); maUpdateTimer.SetInvokeHandler(LINK(this, SlideshowImpl, updateHdl)); // Priority must not be too high or we'll starve input handling etc. maUpdateTimer.SetPriority(TaskPriority::REPAINT); - maDeactivateTimer.SetDebugName("SlideShowImpl maDeactivateTimer"); maDeactivateTimer.SetInvokeHandler(LINK(this, SlideshowImpl, deactivateHdl)); maDeactivateTimer.SetTimeout( 20 ); - maInputFreezeTimer.SetDebugName("SlideShowImpl maInputFreezeTimer"); maInputFreezeTimer.SetInvokeHandler( LINK( this, SlideshowImpl, ReadyForNextInputHdl ) ); maInputFreezeTimer.SetTimeout( 20 ); diff --git a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx index 3e4bf42882a4..79ab9fab27f8 100644 --- a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx +++ b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx @@ -122,11 +122,11 @@ CacheCompactor::CacheCompactor( sal_Int32 nMaximalCacheSize) : mrCache(rCache), mnMaximalCacheSize(nMaximalCacheSize), + maCompactionTimer("sd CacheCompactor maCompactionTimer"), mbIsCompactionRunning(false) { maCompactionTimer.SetTimeout(100); maCompactionTimer.SetInvokeHandler(LINK(this,CacheCompactor,CompactionCallback)); - } IMPL_LINK_NOARG(CacheCompactor, CompactionCallback, Timer *, void) diff --git a/sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx b/sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx index 67653997278d..e3a4de5e3a06 100644 --- a/sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx +++ b/sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx @@ -60,7 +60,6 @@ std::shared_ptr<CacheConfiguration> CacheConfiguration::Instance() rInstancePtr->m_ReleaseTimer.SetInvokeHandler( LINK(rInstancePtr.get(),CacheConfiguration,TimerCallback)); rInstancePtr->m_ReleaseTimer.SetTimeout(5000 /* 5s */); - rInstancePtr->m_ReleaseTimer.SetDebugName("sd::CacheConfiguration maReleaseTimer"); rInstancePtr->m_ReleaseTimer.Start(); } } @@ -68,6 +67,7 @@ std::shared_ptr<CacheConfiguration> CacheConfiguration::Instance() } CacheConfiguration::CacheConfiguration() + : m_ReleaseTimer("sd::CacheConfiguration maReleaseTimer") { // Get the cache size from configuration. try diff --git a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx index eb6b8cf40005..077c48709de6 100644 --- a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx +++ b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx @@ -35,7 +35,8 @@ QueueProcessor::QueueProcessor ( const Size& rPreviewSize, const bool bDoSuperSampling, const SharedCacheContext& rpCacheContext) - : maPreviewSize(rPreviewSize), + : maTimer("sd::QueueProcessor maTimer"), + maPreviewSize(rPreviewSize), mbDoSuperSampling(bDoSuperSampling), mpCacheContext(rpCacheContext), mrQueue(rQueue), @@ -44,7 +45,6 @@ QueueProcessor::QueueProcessor ( { maTimer.SetInvokeHandler (LINK(this,QueueProcessor,ProcessRequestHdl)); maTimer.SetTimeout (10); - maTimer.SetDebugName ("sd::QueueProcessor maTimer"); } QueueProcessor::~QueueProcessor() diff --git a/sd/source/ui/slidesorter/controller/SlsCurrentSlideManager.cxx b/sd/source/ui/slidesorter/controller/SlsCurrentSlideManager.cxx index cb3067a6ec59..9203c06e8f9f 100644 --- a/sd/source/ui/slidesorter/controller/SlsCurrentSlideManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsCurrentSlideManager.cxx @@ -43,7 +43,8 @@ namespace sd::slidesorter::controller { CurrentSlideManager::CurrentSlideManager (SlideSorter& rSlideSorter) : mrSlideSorter(rSlideSorter), - mnCurrentSlideIndex(-1) + mnCurrentSlideIndex(-1), + maSwitchPageDelayTimer("sd CurrentSlideManager maSwitchPageDelayTimer") { maSwitchPageDelayTimer.SetTimeout(100); maSwitchPageDelayTimer.SetInvokeHandler(LINK(this,CurrentSlideManager,SwitchPageCallback)); diff --git a/sd/source/ui/slidesorter/controller/SlsScrollBarManager.cxx b/sd/source/ui/slidesorter/controller/SlsScrollBarManager.cxx index 0a922859c6de..83192414f126 100644 --- a/sd/source/ui/slidesorter/controller/SlsScrollBarManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsScrollBarManager.cxx @@ -46,6 +46,7 @@ ScrollBarManager::ScrollBarManager (SlideSorter& rSlideSorter) mnVerticalPosition (0), maScrollBorder (20,20), mpScrollBarFiller(mrSlideSorter.GetScrollBarFiller()), + maAutoScrollTimer("sd ScrollBarManager maAutoScrollTimer"), maAutoScrollOffset(0,0), mbIsAutoScrollActive(false), mpContentWindow(mrSlideSorter.GetContentWindow()) diff --git a/sd/source/ui/slidesorter/view/SlsToolTip.cxx b/sd/source/ui/slidesorter/view/SlsToolTip.cxx index 08a4ff6ec7f8..c266bbe3db8e 100644 --- a/sd/source/ui/slidesorter/view/SlsToolTip.cxx +++ b/sd/source/ui/slidesorter/view/SlsToolTip.cxx @@ -35,12 +35,12 @@ namespace sd::slidesorter::view { ToolTip::ToolTip (SlideSorter& rSlideSorter) : mrSlideSorter(rSlideSorter), - mnHelpWindowHandle(nullptr) + mnHelpWindowHandle(nullptr), + maShowTimer("sd::slidesorter::view::ToolTip maShowTimer"), + maHiddenTimer("sd::slidesorter::view::ToolTip maHiddenTimer") { - maShowTimer.SetDebugName("sd::slidesorter::view::ToolTip maShowTimer"); maShowTimer.SetTimeout(HelpSettings::GetTipDelay()); maShowTimer.SetInvokeHandler(LINK(this, ToolTip, DelayTrigger)); - maHiddenTimer.SetDebugName("sd::slidesorter::view::ToolTip maHiddenTimer"); maHiddenTimer.SetTimeout(HelpSettings::GetTipDelay()); } diff --git a/sd/source/ui/tools/AsynchronousCall.cxx b/sd/source/ui/tools/AsynchronousCall.cxx index 5d7323775dd4..b7b70f63a04a 100644 --- a/sd/source/ui/tools/AsynchronousCall.cxx +++ b/sd/source/ui/tools/AsynchronousCall.cxx @@ -23,6 +23,7 @@ namespace sd::tools { AsynchronousCall::AsynchronousCall() + : maTimer("sd AsynchronousCall") { maTimer.SetInvokeHandler(LINK(this, AsynchronousCall, TimerCallback)); } diff --git a/sd/source/ui/tools/TimerBasedTaskExecution.cxx b/sd/source/ui/tools/TimerBasedTaskExecution.cxx index b3343b701b2d..ae1f2233f91f 100644 --- a/sd/source/ui/tools/TimerBasedTaskExecution.cxx +++ b/sd/source/ui/tools/TimerBasedTaskExecution.cxx @@ -84,6 +84,7 @@ TimerBasedTaskExecution::TimerBasedTaskExecution ( sal_uInt32 nMillisecondsBetweenSteps, sal_uInt32 nMaxTimePerStep) : mpTask(rpTask), + maTimer("sd TimerBasedTaskExecution maTimer"), mnMaxTimePerStep(nMaxTimePerStep) { maTimer.SetInvokeHandler( LINK(this,TimerBasedTaskExecution,TimerCallback) ); diff --git a/sd/source/ui/view/ViewShellImplementation.cxx b/sd/source/ui/view/ViewShellImplementation.cxx index 3f301c2efcd1..5725feb2cc4f 100644 --- a/sd/source/ui/view/ViewShellImplementation.cxx +++ b/sd/source/ui/view/ViewShellImplementation.cxx @@ -331,7 +331,8 @@ std::shared_ptr<ViewShell::Implementation::ToolBarManagerLock> ViewShell::Implementation::ToolBarManagerLock::ToolBarManagerLock ( const std::shared_ptr<ToolBarManager>& rpManager) - : mpLock(new ToolBarManager::UpdateLock(rpManager)) + : mpLock(new ToolBarManager::UpdateLock(rpManager)), + maTimer("sd ToolBarManagerLock maTimer") { // Start a timer that will unlock the ToolBarManager update lock when // that is not done explicitly by calling Release(). diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx index 233a2bd46334..c37e01281977 100644 --- a/sfx2/source/appl/appcfg.cxx +++ b/sfx2/source/appl/appcfg.cxx @@ -89,10 +89,9 @@ SfxEventAsyncer_Impl::SfxEventAsyncer_Impl( const SfxEventHint& rHint ) { if( rHint.GetObjShell() ) StartListening( *rHint.GetObjShell() ); - pIdle.reset( new Idle("SfxEventASyncer") ); + pIdle.reset( new Idle("sfx::SfxEventAsyncer_Impl pIdle") ); pIdle->SetInvokeHandler( LINK(this, SfxEventAsyncer_Impl, IdleHdl) ); pIdle->SetPriority( TaskPriority::HIGH_IDLE ); - pIdle->SetDebugName( "sfx::SfxEventAsyncer_Impl pIdle" ); pIdle->Start(); } diff --git a/sfx2/source/appl/linksrc.cxx b/sfx2/source/appl/linksrc.cxx index 83b5c83cf055..fb9ec11431c4 100644 --- a/sfx2/source/appl/linksrc.cxx +++ b/sfx2/source/appl/linksrc.cxx @@ -46,7 +46,7 @@ public: } SvLinkSourceTimer::SvLinkSourceTimer( SvLinkSource * pOwn ) - : pOwner( pOwn ) + : Timer("sfx2 SvLinkSourceTimer"), pOwner( pOwn ) { } diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index bc3848821d2a..3749b3cf8a12 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -393,6 +393,7 @@ IndexTabPage_Impl::IndexTabPage_Impl(weld::Widget* pParent, SfxHelpIndexWindow_I , m_xOpenBtn(m_xBuilder->weld_button("display")) , aFactoryIdle("sfx2 appl IndexTabPage_Impl Factory") , aAutoCompleteIdle("sfx2 appl IndexTabPage_Impl AutoComplete") + , aKeywordTimer("sfx2::IndexTabPage_Impl aKeywordTimer") , bIsActivated(false) , nRowHeight(m_xIndexList->get_height_rows(1)) , nAllHeight(0) diff --git a/sfx2/source/appl/openuriexternally.cxx b/sfx2/source/appl/openuriexternally.cxx index 8ef0ed2ea5ba..f3f6edf11eee 100644 --- a/sfx2/source/appl/openuriexternally.cxx +++ b/sfx2/source/appl/openuriexternally.cxx @@ -33,7 +33,7 @@ namespace { class URITools { private: - Timer aOpenURITimer; + Timer aOpenURITimer { "sfx2::openUriExternallyTimer" }; OUString msURI; bool mbHandleSystemShellExecuteException; DECL_LINK(onOpenURI, Timer*, void); @@ -72,7 +72,6 @@ void URITools::openURI(const OUString& sURI, bool bHandleSystemShellExecuteExcep #else aOpenURITimer.SetTimeout(0); #endif - aOpenURITimer.SetDebugName("sfx2::openUriExternallyTimer"); aOpenURITimer.Start(); } diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index 1fd72c1dbdfb..5f929846107c 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -114,7 +114,7 @@ public: bool bAllMsgDirty; // Has a MessageServer been invalidated? bool bAllDirty; // After InvalidateAll bool bCtrlReleased; // while EnterRegistrations - AutoTimer aAutoTimer; // for volatile Slots + AutoTimer aAutoTimer { "sfx::SfxBindings aAutoTimer" }; // for volatile Slots bool bInUpdate; // for Assertions bool bInNextJob; // for Assertions bool bFirstRound; // First round in Update @@ -146,7 +146,6 @@ SfxBindings::SfxBindings() // all caches are valid (no pending invalidate-job) // create the list of caches pImpl->aAutoTimer.SetInvokeHandler( LINK(this, SfxBindings, NextJob) ); - pImpl->aAutoTimer.SetDebugName( "sfx::SfxBindings aAutoTimer" ); } diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 111f39ec5593..e4965467ed0e 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -111,7 +111,7 @@ struct SfxDispatcher_Impl std::vector<std::unique_ptr<SfxRequest>> aReqArr; SfxShellStack_Impl aStack; // active functionality - Idle aIdle; // for Flush + Idle aIdle { "sfx::SfxDispatcher_Impl aIdle" }; // for Flush std::deque<SfxToDo_Impl> aToDoStack; // not processed Push/Pop SfxViewFrame* pFrame; // NULL or associated Frame tools::SvRef<SfxHintPoster> @@ -306,7 +306,6 @@ void SfxDispatcher::Construct_Impl() xImp->aIdle.SetPriority(TaskPriority::HIGH_IDLE ); xImp->aIdle.SetInvokeHandler( LINK(this, SfxDispatcher, EventHdl_Impl ) ); - xImp->aIdle.SetDebugName( "sfx::SfxDispatcher_Impl aIdle" ); } SfxDispatcher::SfxDispatcher() diff --git a/sfx2/source/control/itemdel.cxx b/sfx2/source/control/itemdel.cxx index b0f25212c863..2b8e7db73fc6 100644 --- a/sfx2/source/control/itemdel.cxx +++ b/sfx2/source/control/itemdel.cxx @@ -43,11 +43,10 @@ public: SfxItemDisruptor_Impl::SfxItemDisruptor_Impl(std::unique_ptr<SfxPoolItem> pItemToDisrupt) : pItem(std::move(pItemToDisrupt)) - , m_Idle("sfx SfxItemDisruptor_Impl::Delete") + , m_Idle("sfx::SfxItemDisruptor_Impl m_Idle") { m_Idle.SetInvokeHandler(LINK(this, SfxItemDisruptor_Impl, Delete)); m_Idle.SetPriority(TaskPriority::DEFAULT_IDLE); - m_Idle.SetDebugName("sfx::SfxItemDisruptor_Impl m_Idle"); DBG_ASSERT(0 == pItem->GetRefCount(), "disrupting pooled item"); pItem->SetKind(SfxItemKind::DeleteOnIdle); diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx index daa43f456738..f28d31d7882d 100644 --- a/sfx2/source/dialog/basedlgs.cxx +++ b/sfx2/source/dialog/basedlgs.cxx @@ -43,7 +43,7 @@ public: bool bClosing; void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; - Idle aMoveIdle; + Idle aMoveIdle { "SfxModelessDialog_Impl aMoveIdle" }; }; void SfxModelessDialog_Impl::Notify( SfxBroadcaster&, const SfxHint& rHint ) diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 7427d441ff8c..1a3cdec7e08f 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1298,13 +1298,14 @@ CustomPropertiesWindow::CustomPropertiesWindow(weld::Container& rParent, weld::L , m_pCurrentLine(nullptr) , m_aNumberFormatter(::comphelper::getProcessComponentContext(), Application::GetSettings().GetLanguageTag().getLanguageType()) + , m_aEditLoseFocusIdle("sfx2 CustomPropertiesWindow loseFocusIdle") + , m_aBoxLoseFocusIdle("sfx2 CustomPropertiesWindow m_aBoxLoseFocusIdle") , m_rBody(rParent) , m_rHeaderAccName(rHeaderAccName) , m_rHeaderAccType(rHeaderAccType) , m_rHeaderAccValue(rHeaderAccValue) { m_aEditLoseFocusIdle.SetPriority( TaskPriority::LOWEST ); - m_aEditLoseFocusIdle.SetDebugName("sfx2 CustomPropertiesWindow loseFocusIdle"); m_aEditLoseFocusIdle.SetInvokeHandler( LINK( this, CustomPropertiesWindow, EditTimeoutHdl ) ); m_aBoxLoseFocusIdle.SetPriority( TaskPriority::LOWEST ); m_aBoxLoseFocusIdle.SetInvokeHandler( LINK( this, CustomPropertiesWindow, BoxTimeoutHdl ) ); diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx index 5e1c5d3e1c35..cd70cbd7feb6 100644 --- a/sfx2/source/dialog/dockwin.cxx +++ b/sfx2/source/dialog/dockwin.cxx @@ -406,6 +406,7 @@ SfxDockingWindow_Impl::SfxDockingWindow_Impl(SfxDockingWindow* pBase) ,eDockAlignment(SfxChildAlignment::NOALIGNMENT) ,bConstructed(false) ,pSplitWin(nullptr) + ,aMoveIdle( "sfx::SfxDockingWindow_Impl aMoveIdle" ) ,nHorizontalSize(0) ,nVerticalSize(0) ,nLine(0) @@ -417,7 +418,6 @@ SfxDockingWindow_Impl::SfxDockingWindow_Impl(SfxDockingWindow* pBase) { aMoveIdle.SetPriority(TaskPriority::RESIZE); aMoveIdle.SetInvokeHandler(LINK(pBase,SfxDockingWindow,TimerHdl)); - aMoveIdle.SetDebugName( "sfx::SfxDockingWindow_Impl aMoveIdle" ); } /* [Description] diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index 8551227b3c33..6bf8fc9b6036 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -855,7 +855,8 @@ FileDialogHelper_Impl::FileDialogHelper_Impl( const OUString& sStandardDir, const css::uno::Sequence< OUString >& rDenyList ) - :m_nDialogType ( nDialogType ) + :maPreviewIdle("sfx2 FileDialogHelper_Impl maPreviewIdle") + ,m_nDialogType ( nDialogType ) ,meContext ( FileDialogHelper::UnknownContext ) { const char* pServiceName=nullptr; diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx index d6e2a34e0043..9ca00fb95e47 100644 --- a/sfx2/source/dialog/infobar.cxx +++ b/sfx2/source/dialog/infobar.cxx @@ -347,11 +347,11 @@ IMPL_LINK_NOARG(SfxInfoBarWindow, CloseHandler, const OString&, void) SfxInfoBarContainerWindow::SfxInfoBarContainerWindow(SfxInfoBarContainerChild* pChildWin) : Window(pChildWin->GetParent(), WB_DIALOGCONTROL) , m_pChildWin(pChildWin) + , m_aLayoutIdle("SfxInfoBarContainerWindow m_aLayoutIdle") , m_bResizing(false) { m_aLayoutIdle.SetPriority(TaskPriority::HIGHEST); m_aLayoutIdle.SetInvokeHandler(LINK(this, SfxInfoBarContainerWindow, DoUpdateLayout)); - m_aLayoutIdle.SetDebugName("SfxInfoBarContainerWindow m_aLayoutIdle"); } IMPL_LINK_NOARG(SfxInfoBarContainerWindow, DoUpdateLayout, Timer*, void) { m_pChildWin->Update(); } diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx index 1389dd8e1dbe..6625b85d5aaf 100644 --- a/sfx2/source/dialog/splitwin.cxx +++ b/sfx2/source/dialog/splitwin.cxx @@ -101,6 +101,7 @@ public: , bAutoHide( false ) , bSplit( false ) , bEndAutoHide( false ) + , aTimer("sfx2 SfxEmptySplitWin_Impl aTimer") , nState( 1 ) { aTimer.SetInvokeHandler( diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx index 832079218bbb..2de3a680bd4d 100644 --- a/sfx2/source/doc/new.cxx +++ b/sfx2/source/doc/new.cxx @@ -229,6 +229,7 @@ sal_uInt16 SfxNewFileDialog::GetSelectedTemplatePos() const SfxNewFileDialog::SfxNewFileDialog(weld::Window *pParent, SfxNewFileDialogMode nFlags) : SfxDialogController(pParent, "sfx/ui/loadtemplatedialog.ui", "LoadTemplateDialog") + , m_aPrevIdle("SfxNewFileDialog m_aPrevIdle") , m_nFlags(nFlags) , m_xPreviewController(new SfxPreviewWin_Impl) , m_xRegionLb(m_xBuilder->weld_tree_view("categories")) diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index 48c3491f91a3..91e338413410 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -1266,7 +1266,7 @@ void SfxObjectShell::CancelTransfers() AutoReloadTimer_Impl::AutoReloadTimer_Impl( const OUString& rURL, sal_uInt32 nTime, SfxObjectShell* pSh ) - : aUrl( rURL ), pObjSh( pSh ) + : Timer("sfx2 AutoReloadTimer_Impl"), aUrl( rURL ), pObjSh( pSh ) { SetTimeout( nTime ); } diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index 2c2d2a87a157..6efb8d87f2e6 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -157,7 +157,7 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg(weld::Window *pParent) : GenericDialogController(pParent, "sfx/ui/templatedlg.ui", "TemplateDialog") , maSelTemplates(cmpSelectionItems) , mxDesktop(Desktop::create(comphelper::getProcessComponentContext())) - , m_aUpdateDataTimer("UpdateDataTimer") + , m_aUpdateDataTimer( "SfxTemplateManagerDlg UpdateDataTimer" ) , mxSearchFilter(m_xBuilder->weld_entry("search_filter")) , mxCBApp(m_xBuilder->weld_combo_box("filter_application")) , mxCBFolder(m_xBuilder->weld_combo_box("filter_folder")) @@ -240,7 +240,6 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg(weld::Window *pParent) mxLocalView->Show(); m_aUpdateDataTimer.SetInvokeHandler(LINK(this, SfxTemplateManagerDlg, ImplUpdateDataHdl)); - m_aUpdateDataTimer.SetDebugName( "SfxTemplateManagerDlg UpdateDataTimer" ); m_aUpdateDataTimer.SetTimeout(EDIT_UPDATEDATA_TIMEOUT); mxLocalView->connect_focus_rect(LINK(this, SfxTemplateManagerDlg, FocusRectLocalHdl)); @@ -1341,6 +1340,7 @@ void SfxTemplateCategoryDialog::SetCategoryLBEntries(std::vector<OUString> aFold SfxTemplateSelectionDlg::SfxTemplateSelectionDlg(weld::Window* pParent) : SfxTemplateManagerDlg(pParent) + , maIdle("sfx2 SfxTemplateManagerDlg maIdle") { mxCBApp->set_active(MNI_IMPRESS); mxCBFolder->set_active(0); @@ -1377,7 +1377,6 @@ short SfxTemplateSelectionDlg::run() // tdf#125079 toggle off the size tracking at some future idle point maIdle.SetPriority(TaskPriority::LOWEST); - maIdle.SetDebugName("sfx2 SfxTemplateManagerDlg maIdle"); maIdle.SetInvokeHandler(LINK(this,SfxTemplateSelectionDlg,TimeOut)); maIdle.Start(); setTemplateViewMode(TemplateViewMode::eThumbnailView); diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx index 7484033b2808..3b87e2be21bd 100644 --- a/sfx2/source/view/ipclient.cxx +++ b/sfx2/source/view/ipclient.cxx @@ -102,7 +102,7 @@ class SfxInPlaceClient_Impl : public ::cppu::WeakImplHelper< embed::XEmbeddedCli embed::XWindowSupplier > { public: - Timer m_aTimer; // activation timeout, starts after object connection + Timer m_aTimer { "sfx::SfxInPlaceClient m_xImpl::m_aTimer" }; // activation timeout, starts after object connection tools::Rectangle m_aObjArea; // area of object in coordinate system of the container (without scaling) Fraction m_aScaleWidth; // scaling that was applied to the object when it was not active Fraction m_aScaleHeight; @@ -631,7 +631,6 @@ SfxInPlaceClient::SfxInPlaceClient( SfxViewShell* pViewShell, vcl::Window *pDraw m_xImp->m_nAspect = nAspect; m_xImp->m_aScaleWidth = m_xImp->m_aScaleHeight = Fraction(1,1); pViewShell->NewIPClient_Impl(this); - m_xImp->m_aTimer.SetDebugName( "sfx::SfxInPlaceClient m_xImpl::m_aTimer" ); m_xImp->m_aTimer.SetTimeout( SFX_CLIENTACTIVATE_TIMEOUT ); m_xImp->m_aTimer.SetInvokeHandler( LINK( m_xImp.get(), SfxInPlaceClient_Impl, TimerHdl ) ); } diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 22f3065190b9..24be9325d957 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -287,6 +287,7 @@ SmGraphicWidget::SmGraphicWidget(SmViewShell& rShell, SmGraphicWindow& rGraphicW : mrGraphicWindow(rGraphicWindow) , bIsCursorVisible(false) , bIsLineVisible(false) + , aCaretBlinkTimer("SmGraphicWidget aCaretBlinkTimer") , mrViewShell(rShell) { } @@ -816,6 +817,7 @@ SmCmdBoxWindow::SmCmdBoxWindow(SfxBindings *pBindings_, SfxChildWindow *pChildWi , m_xEdit(new SmEditWindow(*this, *m_xBuilder)) , aController(*m_xEdit, SID_TEXT, *pBindings_) , bExiting(false) + , aInitialFocusTimer("SmCmdBoxWindow aInitialFocusTimer") { set_id("math_edit"); diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx index 87ae8ef1d92c..5a34a39fe3c5 100644 --- a/svtools/source/brwbox/datwin.cxx +++ b/svtools/source/brwbox/datwin.cxx @@ -177,6 +177,7 @@ BrowserDataWin::BrowserDataWin( BrowseBox* pParent ) ,pHeaderBar( nullptr ) ,pCornerWin( nullptr ) ,bInDtor( false ) + ,aMouseTimer("BrowserDataWin aMouseTimer") ,bInPaint( false ) ,bInCommand( false ) ,bNoHScroll( false ) diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index 6fee437ead94..9d78a805c18d 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -849,7 +849,8 @@ IMPL_LINK_NOARG(SvtURLBox, TryAutoComplete, Timer *, void) } SvtURLBox::SvtURLBox(std::unique_ptr<weld::ComboBox> pWidget) - : eSmartProtocol(INetProtocol::NotValid) + : aChangedIdle("svtools::URLBox aChangedIdle") + , eSmartProtocol(INetProtocol::NotValid) , bOnlyDirectories( false ) , bHistoryDisabled( false ) , bNoSelection( false ) @@ -866,7 +867,6 @@ SvtURLBox::SvtURLBox(std::unique_ptr<weld::ComboBox> pWidget) m_xWidget->connect_changed(LINK(this, SvtURLBox, ChangedHdl)); aChangedIdle.SetInvokeHandler(LINK(this, SvtURLBox, TryAutoComplete)); - aChangedIdle.SetDebugName("svtools::URLBox aChangedIdle"); } void SvtURLBox::Init() diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 4e0cc77e1040..65c1d27074b3 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -336,13 +336,13 @@ public: TabBarEdit::TabBarEdit(TabBar* pParent) : InterimItemWindow(pParent, "svt/ui/tabbaredit.ui", "TabBarEdit") , m_xEntry(m_xBuilder->weld_entry("entry")) + , maLoseFocusIdle( "svtools::TabBarEdit maLoseFocusIdle" ) { InitControlBase(m_xEntry.get()); mbPostEvt = false; maLoseFocusIdle.SetPriority( TaskPriority::REPAINT ); maLoseFocusIdle.SetInvokeHandler( LINK( this, TabBarEdit, ImplEndTimerHdl ) ); - maLoseFocusIdle.SetDebugName( "svtools::TabBarEdit maLoseFocusIdle" ); m_xEntry->connect_activate(LINK(this, TabBarEdit, ActivatedHdl)); m_xEntry->connect_key_press(LINK(this, TabBarEdit, KeyInputHdl)); diff --git a/svtools/source/dialogs/prnsetup.cxx b/svtools/source/dialogs/prnsetup.cxx index fd7fca5ba098..5f41e355e3a8 100644 --- a/svtools/source/dialogs/prnsetup.cxx +++ b/svtools/source/dialogs/prnsetup.cxx @@ -223,6 +223,7 @@ PrinterSetupDialog::PrinterSetupDialog(weld::Window* pParent) , m_xFiType(m_xBuilder->weld_label("type")) , m_xFiLocation(m_xBuilder->weld_label("location")) , m_xFiComment(m_xBuilder->weld_label("comment")) + , maStatusTimer("PrinterSetupDialog maStatusTimer") { m_xLbName->make_sorted(); diff --git a/svx/source/dialog/imapimp.hxx b/svx/source/dialog/imapimp.hxx index f2a10e45e98d..50862f625f83 100644 --- a/svx/source/dialog/imapimp.hxx +++ b/svx/source/dialog/imapimp.hxx @@ -38,7 +38,8 @@ public: bool bExecState; IMapOwnData() - : pUpdateEditingObject(nullptr) + : aIdle("svx IMapOwnData") + , pUpdateEditingObject(nullptr) , bExecState(false) { } diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx index b266d04acd9f..f28c5bdfc3b8 100644 --- a/svx/source/dialog/srchdlg.cxx +++ b/svx/source/dialog/srchdlg.cxx @@ -128,7 +128,7 @@ struct SearchDlg_Impl bool bSaveToModule : 1, bFocusOnSearch : 1; WhichRangesContainer pRanges; - Timer aSelectionTimer; + Timer aSelectionTimer { "svx SearchDlg_Impl aSelectionTimer" }; uno::Reference< frame::XDispatch > xCommand1Dispatch; uno::Reference< frame::XDispatch > xCommand2Dispatch; diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx index 46ae7647e94a..45d7f8ab284e 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -1262,6 +1262,7 @@ namespace svxform , m_nLastSelectedPos(-1) , m_bShowDetails(false) , m_bIsNotifyDisabled(false) + , m_aUpdateTimer("svx DataNavigatorWindow m_aUpdateTimer") , m_xDataListener(new DataListener(this)) { // handler @@ -2516,6 +2517,7 @@ namespace svxform const OUString& _rPropertyName, const Reference< XPropertySet >& _rPropSet) : GenericDialogController(pParent, "svx/ui/addconditiondialog.ui", "AddConditionDialog") + , m_aResultIdle("svx AddConditionDialog m_aResultIdle") , m_sPropertyName(_rPropertyName) , m_xBinding(_rPropSet) , m_xConditionED(m_xBuilder->weld_text_view("condition")) diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index b9946f270619..e5c35ff39cc7 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -603,6 +603,7 @@ FmXFormShell_Base_Disambiguation::FmXFormShell_Base_Disambiguation( ::osl::Mutex FmXFormShell::FmXFormShell( FmFormShell& _rShell, SfxViewFrame* _pViewFrame ) :FmXFormShell_BASE(m_aMutex) ,FmXFormShell_CFGBASE("Office.Common/Misc", ConfigItemMode::NONE) + ,m_aMarkTimer("svx::FmXFormShell m_aMarkTimer") ,m_eNavigate( NavigationBarMode_NONE ) ,m_nInvalidationEvent( nullptr ) ,m_nActivationEvent( nullptr ) @@ -625,7 +626,6 @@ FmXFormShell::FmXFormShell( FmFormShell& _rShell, SfxViewFrame* _pViewFrame ) { m_aMarkTimer.SetTimeout(100); m_aMarkTimer.SetInvokeHandler(LINK(this, FmXFormShell, OnTimeOut_Lock)); - m_aMarkTimer.SetDebugName("svx::FmXFormShell m_aMarkTimer"); m_xAttachedFrame = _pViewFrame->GetFrame().GetFrameInterface(); diff --git a/svx/source/form/fmtextcontrolshell.cxx b/svx/source/form/fmtextcontrolshell.cxx index bb6937277aa1..67d43d734b7f 100644 --- a/svx/source/form/fmtextcontrolshell.cxx +++ b/svx/source/form/fmtextcontrolshell.cxx @@ -524,6 +524,7 @@ namespace svx ,m_bActiveControlIsRichText( false ) ,m_pViewFrame( _pFrame ) ,m_rBindings( _pFrame->GetBindings() ) + ,m_aClipboardInvalidation("svx FmTextControlShell m_aClipboardInvalidation") ,m_bNeedClipboardInvalidation( true ) { m_aClipboardInvalidation.SetInvokeHandler( LINK( this, FmTextControlShell, OnInvalidateClipboard ) ); diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx index f9887a6a62c1..ebaa1cc86939 100644 --- a/svx/source/form/formcontroller.cxx +++ b/svx/source/form/formcontroller.cxx @@ -532,6 +532,8 @@ FormController::FormController(const Reference< css::uno::XComponentContext > & ,m_aRowSetApproveListeners(m_aMutex) ,m_aParameterListeners(m_aMutex) ,m_aFilterListeners(m_aMutex) + ,m_aTabActivationIdle("svx FormController m_aTabActivationIdle") + ,m_aFeatureInvalidationTimer("svx FormController m_aFeatureInvalidationTimer") ,m_aMode( OUString( "DataMode" ) ) ,m_aLoadEvent( LINK( this, FormController, OnLoad ) ) ,m_aToggleEvent( LINK( this, FormController, OnToggleAutoFields ) ) diff --git a/svx/source/form/navigatortree.cxx b/svx/source/form/navigatortree.cxx index 2a5d15deec43..436b1d604355 100644 --- a/svx/source/form/navigatortree.cxx +++ b/svx/source/form/navigatortree.cxx @@ -131,6 +131,7 @@ namespace svxform NavigatorTree::NavigatorTree(std::unique_ptr<weld::TreeView> xTreeView) :m_xTreeView(std::move(xTreeView)) ,m_aDropTargetHelper(*this) + ,m_aSynchronizeTimer("svx NavigatorTree m_aSynchronizeTimer") ,nEditEvent(nullptr) ,m_sdiState(SDI_DIRTY) ,m_nSelectLock(0) diff --git a/svx/source/sdr/animation/scheduler.cxx b/svx/source/sdr/animation/scheduler.cxx index 2e3ea1d4a057..d4451c099a65 100644 --- a/svx/source/sdr/animation/scheduler.cxx +++ b/svx/source/sdr/animation/scheduler.cxx @@ -45,11 +45,11 @@ namespace sdr::animation } Scheduler::Scheduler() - : mnTime(0), + : Timer("sdr::animation::Scheduler"), + mnTime(0), mnDeltaTime(0), mbIsPaused(false) { - SetDebugName("sdr::animation::Scheduler"); SetPriority(TaskPriority::POST_PAINT); } diff --git a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx index 07b133b123af..d9e9909e8ff7 100644 --- a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx @@ -75,7 +75,7 @@ public: PagePrimitiveExtractor::PagePrimitiveExtractor( ViewObjectContactOfPageObj& rVOC) -: ObjectContactOfPagePainter(rVOC.GetObjectContact()), +: ObjectContactOfPagePainter(rVOC.GetObjectContact()), Idle("svx PagePrimitiveExtractor"), mrViewObjectContactOfPageObj(rVOC) { // make this renderer a preview renderer diff --git a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx index 05f6c1b592aa..19babd089e54 100644 --- a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx +++ b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx @@ -351,12 +351,11 @@ namespace sdr::overlay : OverlayManager(rOutputDevice), mpBufferDevice(VclPtr<VirtualDevice>::Create()), mpOutputBufferDevice(VclPtr<VirtualDevice>::Create()), - maBufferIdle("sdr overlay OverlayManagerBuffered Idle") + maBufferIdle( "sdr::overlay::OverlayManagerBuffered maBufferIdle" ) { // Init timer maBufferIdle.SetPriority( TaskPriority::POST_PAINT ); maBufferIdle.SetInvokeHandler(LINK(this, OverlayManagerBuffered, ImpBufferTimerHandler)); - maBufferIdle.SetDebugName( "sdr::overlay::OverlayManagerBuffered maBufferIdle" ); } rtl::Reference<OverlayManager> OverlayManagerBuffered::create( diff --git a/svx/source/stbctrls/modctrl.cxx b/svx/source/stbctrls/modctrl.cxx index 2d3fc7a5d133..d658175260a2 100644 --- a/svx/source/stbctrls/modctrl.cxx +++ b/svx/source/stbctrls/modctrl.cxx @@ -48,7 +48,7 @@ struct SvxModifyControl::ImplData MODIFICATION_STATE_SIZE }; - Idle maIdle; + Idle maIdle { "svx::SvxModifyControl maIdle" }; Image maImages[MODIFICATION_STATE_SIZE]; ModificationState mnModState; @@ -61,7 +61,6 @@ struct SvxModifyControl::ImplData maImages[MODIFICATION_STATE_FEEDBACK] = Image(StockImage::Yes, RID_SVXBMP_DOC_MODIFIED_FEEDBACK); maIdle.SetPriority(TaskPriority::LOWEST); - maIdle.SetDebugName("svx::SvxModifyControl maIdle"); } }; diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx index 188dae9ff881..15e4aefcb897 100644 --- a/svx/source/svdraw/svdpntv.cxx +++ b/svx/source/svdraw/svdpntv.cxx @@ -133,6 +133,7 @@ SdrPaintView::SdrPaintView(SdrModel& rSdrModel, OutputDevice* pOut) , mpDragWin(nullptr) , mpDefaultStyleSheet(nullptr) , maDefaultAttr(rSdrModel.GetItemPool()) + , maComeBackIdle( "svx::SdrPaintView aComeBackIdle" ) , meAnimationMode(SdrAnimationMode::Animate) , mnHitTolPix(2) , mnMinMovPix(3) @@ -166,7 +167,6 @@ SdrPaintView::SdrPaintView(SdrModel& rSdrModel, OutputDevice* pOut) { maComeBackIdle.SetPriority(TaskPriority::REPAINT); maComeBackIdle.SetInvokeHandler(LINK(this,SdrPaintView,ImpComeBackHdl)); - maComeBackIdle.SetDebugName( "svx::SdrPaintView aComeBackIdle" ); if (mpModel) SetDefaultStyleSheet(mpModel->GetDefaultStyleSheet(), true); diff --git a/svx/source/tbxctrls/formatpaintbrushctrl.cxx b/svx/source/tbxctrls/formatpaintbrushctrl.cxx index 45c412ef78d1..0089212bdd01 100644 --- a/svx/source/tbxctrls/formatpaintbrushctrl.cxx +++ b/svx/source/tbxctrls/formatpaintbrushctrl.cxx @@ -37,10 +37,10 @@ SFX_IMPL_TOOLBOX_CONTROL( FormatPaintBrushToolBoxControl, SfxBoolItem ); FormatPaintBrushToolBoxControl::FormatPaintBrushToolBoxControl( sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox& rTbx ) : SfxToolBoxControl( nSlotId, nId, rTbx ) , m_bPersistentCopy(false) + , m_aDoubleClickTimer("FormatPaintBrushToolBoxControl m_aDoubleClickTimer") { sal_uInt64 nDblClkTime = rTbx.GetSettings().GetMouseSettings().GetDoubleClickTime(); - m_aDoubleClickTimer.SetDebugName("FormatPaintBrushToolBoxControl m_aDoubleClickTimer"); m_aDoubleClickTimer.SetInvokeHandler( LINK(this, FormatPaintBrushToolBoxControl, WaitDoubleClickHdl) ); m_aDoubleClickTimer.SetTimeout(nDblClkTime); } diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx index 4baee3c82a83..0faca2b75891 100644 --- a/svx/source/tbxctrls/grafctrl.cxx +++ b/svx/source/tbxctrls/grafctrl.cxx @@ -195,6 +195,7 @@ ImplGrafControl::ImplGrafControl( const OUString& rCmd, const Reference< XFrame >& rFrame) : InterimItemWindow(pParent, "svx/ui/grafctrlbox.ui", "GrafCtrlBox") + , maIdle("svx ImplGrafControl maIdle") , maCommand(rCmd) , mxFrame(rFrame) , mxImage(m_xBuilder->weld_image("image")) diff --git a/sw/inc/SwDocIdle.hxx b/sw/inc/SwDocIdle.hxx index 7b3801dc395e..2eeeee1c9870 100644 --- a/sw/inc/SwDocIdle.hxx +++ b/sw/inc/SwDocIdle.hxx @@ -41,7 +41,7 @@ private: virtual sal_uInt64 UpdateMinPeriod(sal_uInt64 nTimeNow) const override; public: - SwDocIdle(SwDoc& doc); + SwDocIdle(SwDoc& doc, const char* pDebugIdleName); virtual ~SwDocIdle() override; }; } diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index f857b3f8da01..99b47f73ac52 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -4130,7 +4130,7 @@ class IdleTask DECL_LINK( FlipFlag, Timer *, void ); private: bool flag; - Idle maIdle; + Idle maIdle { "sw uiwriter IdleTask" }; }; } diff --git a/sw/source/core/doc/DocumentStatisticsManager.cxx b/sw/source/core/doc/DocumentStatisticsManager.cxx index c222017cfda8..ead31cbd332a 100644 --- a/sw/source/core/doc/DocumentStatisticsManager.cxx +++ b/sw/source/core/doc/DocumentStatisticsManager.cxx @@ -37,15 +37,14 @@ using namespace ::com::sun::star; namespace sw { -DocumentStatisticsManager::DocumentStatisticsManager( SwDoc& i_rSwdoc ) : m_rDoc( i_rSwdoc ), - mpDocStat( new SwDocStat ), - mbInitialized( false ), - maStatsUpdateIdle( i_rSwdoc ) - +DocumentStatisticsManager::DocumentStatisticsManager( SwDoc& i_rSwdoc ) + : m_rDoc( i_rSwdoc ), + mpDocStat( new SwDocStat ), + mbInitialized( false ), + maStatsUpdateIdle( i_rSwdoc, "sw::DocumentStatisticsManager maStatsUpdateIdle" ) { maStatsUpdateIdle.SetPriority( TaskPriority::LOWEST ); maStatsUpdateIdle.SetInvokeHandler( LINK( this, DocumentStatisticsManager, DoIdleStatsUpdate ) ); - maStatsUpdateIdle.SetDebugName( "sw::DocumentStatisticsManager maStatsUpdateIdle" ); } void DocumentStatisticsManager::DocInfoChgd(bool const isEnableSetModified) diff --git a/sw/source/core/doc/DocumentTimerManager.cxx b/sw/source/core/doc/DocumentTimerManager.cxx index 4f4875cf775c..10de8efbebac 100644 --- a/sw/source/core/doc/DocumentTimerManager.cxx +++ b/sw/source/core/doc/DocumentTimerManager.cxx @@ -42,13 +42,12 @@ DocumentTimerManager::DocumentTimerManager(SwDoc& i_rSwdoc) : m_rDoc(i_rSwdoc) , m_nIdleBlockCount(0) , m_bStartOnUnblock(false) - , m_aDocIdle(i_rSwdoc) + , m_aDocIdle(i_rSwdoc, "sw::DocumentTimerManager m_aDocIdle") , m_aFireIdleJobsTimer("sw::DocumentTimerManager m_aFireIdleJobsTimer") , m_bWaitForLokInit(true) { m_aDocIdle.SetPriority(TaskPriority::LOWEST); m_aDocIdle.SetInvokeHandler(LINK(this, DocumentTimerManager, DoIdleJobs)); - m_aDocIdle.SetDebugName("sw::DocumentTimerManager m_aDocIdle"); m_aFireIdleJobsTimer.SetInvokeHandler(LINK(this, DocumentTimerManager, FireIdleJobsTimeout)); m_aFireIdleJobsTimer.SetTimeout(1000); // Enough time for LOK to render the first tiles. diff --git a/sw/source/core/doc/SwDocIdle.cxx b/sw/source/core/doc/SwDocIdle.cxx index 24f51c90e908..8c37642899b2 100644 --- a/sw/source/core/doc/SwDocIdle.cxx +++ b/sw/source/core/doc/SwDocIdle.cxx @@ -48,8 +48,8 @@ sal_uInt64 SwDocIdle::UpdateMinPeriod( sal_uInt64 /* nTimeNow */ ) const ? Scheduler::ImmediateTimeoutMs : Scheduler::InfiniteTimeoutMs; } -SwDocIdle::SwDocIdle( SwDoc &doc ) - : m_rDoc( doc ) +SwDocIdle::SwDocIdle( SwDoc &doc, const char * pDebugIdleName ) + : Idle(pDebugIdleName), m_rDoc( doc ) { } diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx index c8279d4164d5..d75392ba3205 100644 --- a/sw/source/core/doc/docnew.cxx +++ b/sw/source/core/doc/docnew.cxx @@ -203,6 +203,7 @@ static void lcl_DelFormatIndices( SwFormat const * pFormat ) SwDoc::SwDoc() : m_pNodes(new SwNodes(*this)), mpAttrPool(new SwAttrPool(this)), + maOLEModifiedIdle( "sw::SwDoc maOLEModifiedIdle" ), mpMarkManager(new ::sw::mark::MarkManager(*this)), m_pMetaFieldManager(new ::sw::MetaFieldManager()), m_pDocumentDrawModelManager( new ::sw::DocumentDrawModelManager( *this ) ), @@ -335,7 +336,6 @@ SwDoc::SwDoc() maOLEModifiedIdle.SetPriority( TaskPriority::LOWEST ); maOLEModifiedIdle.SetInvokeHandler( LINK( this, SwDoc, DoUpdateModifiedOLE )); - maOLEModifiedIdle.SetDebugName( "sw::SwDoc maOLEModifiedIdle" ); #if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS // Create DBManager diff --git a/sw/source/core/doc/htmltbl.cxx b/sw/source/core/doc/htmltbl.cxx index 8aba28a8b806..1c46a8ffdac7 100644 --- a/sw/source/core/doc/htmltbl.cxx +++ b/sw/source/core/doc/htmltbl.cxx @@ -157,7 +157,8 @@ SwHTMLTableLayout::SwHTMLTableLayout( const SwTable * pTable, sal_uInt16 nLMargin, sal_uInt16 nRMargin, sal_uInt16 nBWidth, sal_uInt16 nLeftBWidth, sal_uInt16 nRightBWidth ) - : m_aColumns( nCls ) + : m_aResizeTimer("SwHTMLTableLayout m_aResizeTimer") + , m_aColumns( nCls ) , m_aCells( static_cast<size_t>(nRws)*nCls ) , m_pSwTable( pTable ) , m_nMin( 0 ) diff --git a/sw/source/core/txtnode/SwGrammarContact.cxx b/sw/source/core/txtnode/SwGrammarContact.cxx index 9ca33f6102e0..0b3b49da48e4 100644 --- a/sw/source/core/txtnode/SwGrammarContact.cxx +++ b/sw/source/core/txtnode/SwGrammarContact.cxx @@ -65,11 +65,13 @@ public: } -SwGrammarContact::SwGrammarContact() : m_isFinished( false ), m_pTextNode(nullptr) +SwGrammarContact::SwGrammarContact() + : m_aTimer( "sw::SwGrammarContact TimerRepaint" ), + m_isFinished( false ), + m_pTextNode(nullptr) { m_aTimer.SetTimeout( 2000 ); // Repaint of grammar check after 'setChecked' m_aTimer.SetInvokeHandler( LINK(this, SwGrammarContact, TimerRepaint) ); - m_aTimer.SetDebugName( "sw::SwGrammarContact TimerRepaint" ); } IMPL_LINK( SwGrammarContact, TimerRepaint, Timer *, pTimer, void ) diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx index b1adbc7b5731..a5fc70e0debb 100644 --- a/sw/source/core/unocore/unochart.cxx +++ b/sw/source/core/unocore/unochart.cxx @@ -83,11 +83,11 @@ void SwChartHelper::DoUpdateAllCharts( SwDoc* pDoc ) SwChartLockController_Helper::SwChartLockController_Helper( SwDoc *pDocument ) : m_pDoc( pDocument ) + , m_aUnlockTimer( "sw::SwChartLockController_Helper aUnlockTimer" ) , m_bIsLocked( false ) { m_aUnlockTimer.SetTimeout( 1500 ); m_aUnlockTimer.SetInvokeHandler( LINK( this, SwChartLockController_Helper, DoUnlockAllCharts )); - m_aUnlockTimer.SetDebugName( "sw::SwChartLockController_Helper aUnlockTimer" ); } SwChartLockController_Helper::~SwChartLockController_Helper() COVERITY_NOEXCEPT_FALSE diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx index 65bdcfbc4030..b596928f8732 100644 --- a/sw/source/ui/dbui/mmaddressblockpage.cxx +++ b/sw/source/ui/dbui/mmaddressblockpage.cxx @@ -458,6 +458,7 @@ SwCustomizeAddressBlockDialog::SwCustomizeAddressBlockDialog( , m_aTextFilter("<>") , m_rConfigItem(rConfig) , m_eType(eType) + , m_aSelectionChangedIdle("SwCustomizeAddressBlockDialog m_aSelectionChangedIdle") , m_xAddressElementsFT(m_xBuilder->weld_label("addressesft")) , m_xAddressElementsLB(m_xBuilder->weld_tree_view("addresses")) , m_xInsertFieldIB(m_xBuilder->weld_button("toaddr")) diff --git a/sw/source/ui/dbui/mmoutputtypepage.cxx b/sw/source/ui/dbui/mmoutputtypepage.cxx index 10db4fe24b85..27026e86830f 100644 --- a/sw/source/ui/dbui/mmoutputtypepage.cxx +++ b/sw/source/ui/dbui/mmoutputtypepage.cxx @@ -84,7 +84,7 @@ struct SwSendMailDialog_Impl Idle aRemoveIdle; SwSendMailDialog_Impl() : - nCurrentDescriptor(0) + nCurrentDescriptor(0), aRemoveIdle("SwSendMailDialog_Impl aRemoveIdle") { aRemoveIdle.SetPriority(TaskPriority::LOWEST); } diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index ffddc80892db..df78688fb6c1 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -2556,6 +2556,7 @@ SwTokenWindow::SwTokenWindow(std::unique_ptr<weld::Container> xParent) , m_bValid(false) , m_sCharStyle(SwResId(STR_CHARSTYLE)) , m_pActiveCtrl(nullptr) + , m_aAdjustPositionsIdle("SwTokenWindow m_aAdjustPositionsIdle") , m_pParent(nullptr) , m_xParentWidget(std::move(xParent)) , m_xBuilder(Application::CreateBuilder(m_xParentWidget.get(), "modules/swriter/ui/tokenwidget.ui")) 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) diff --git a/vbahelper/source/vbahelper/vbaapplicationbase.cxx b/vbahelper/source/vbahelper/vbaapplicationbase.cxx index 382ad3eea6ab..7f1de5b89681 100644 --- a/vbahelper/source/vbahelper/vbaapplicationbase.cxx +++ b/vbahelper/source/vbahelper/vbaapplicationbase.cxx @@ -60,7 +60,7 @@ class VbaTimer ::rtl::Reference< VbaApplicationBase > m_xBase; public: - VbaTimer() + VbaTimer() : m_aTimer("VbaTimer") {} ~VbaTimer() diff --git a/vcl/backendtest/VisualBackendTest.cxx b/vcl/backendtest/VisualBackendTest.cxx index 120b420dc516..c5ca687242e6 100644 --- a/vcl/backendtest/VisualBackendTest.cxx +++ b/vcl/backendtest/VisualBackendTest.cxx @@ -99,6 +99,7 @@ private: public: VisualBackendTestWindow() : WorkWindow(nullptr, WB_APP | WB_STDWORK) + , maUpdateTimer("VisualBackendTestWindow maUpdateTimer") , mnTest(10 * gnNumberOfTests) , mbAnimate(mnTest % gnNumberOfTests == gnNumberOfTests - 1) , mpVDev(VclPtr<VirtualDevice>::Create()) diff --git a/vcl/inc/toolbox.h b/vcl/inc/toolbox.h index 9b6ae789e221..10377e664b13 100644 --- a/vcl/inc/toolbox.h +++ b/vcl/inc/toolbox.h @@ -122,7 +122,7 @@ struct ImplToolBoxPrivateData // called when dropdown items are clicked Link<ToolBox *, void> maDropdownClickHdl; - Timer maDropdownTimer; // for opening dropdown items on "long click" + Timer maDropdownTimer { "vcl::ToolBox mpData->maDropdownTimer" }; // for opening dropdown items on "long click" // large or small buttons ? ToolBoxButtonSize meButtonSize; diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx index 647cbc65927e..9424c4e90909 100644 --- a/vcl/osx/salinst.cxx +++ b/vcl/osx/salinst.cxx @@ -99,6 +99,7 @@ class AquaDelayedSettingsChanged : public Idle public: AquaDelayedSettingsChanged( bool bInvalidate ) : + Idle("AquaSalInstance AquaDelayedSettingsChanged"), mbInvalidate( bInvalidate ) { } @@ -129,7 +130,6 @@ void AquaSalInstance::delayedSettingsChanged( bool bInvalidate ) { osl::Guard< comphelper::SolarMutex > aGuard( *GetYieldMutex() ); AquaDelayedSettingsChanged* pIdle = new AquaDelayedSettingsChanged( bInvalidate ); - pIdle->SetDebugName( "AquaSalInstance AquaDelayedSettingsChanged" ); pIdle->Start(); } diff --git a/vcl/source/animate/Animation.cxx b/vcl/source/animate/Animation.cxx index 06de392f584b..ae7fc1a214fb 100644 --- a/vcl/source/animate/Animation.cxx +++ b/vcl/source/animate/Animation.cxx @@ -34,7 +34,8 @@ sal_uLong Animation::mnAnimCount = 0; Animation::Animation() - : mnLoopCount(0) + : maTimer("vcl::Animation") + , mnLoopCount(0) , mnLoops(0) , mnPos(0) , mbIsInAnimation(false) @@ -45,6 +46,7 @@ Animation::Animation() Animation::Animation(const Animation& rAnimation) : maBitmapEx(rAnimation.maBitmapEx) + , maTimer("vcl::Animation") , maGlobalSize(rAnimation.maGlobalSize) , mnLoopCount(rAnimation.mnLoopCount) , mnPos(rAnimation.mnPos) diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx index 06851eae1589..5fc3ed4b2a91 100644 --- a/vcl/source/app/help.cxx +++ b/vcl/source/app/help.cxx @@ -255,7 +255,9 @@ void Help::HidePopover(vcl::Window const * pParent, void* nId) HelpTextWindow::HelpTextWindow( vcl::Window* pParent, const OUString& rText, sal_uInt16 nHelpWinStyle, QuickHelpFlags nStyle ) : FloatingWindow( pParent, WB_SYSTEMWINDOW|WB_TOOLTIPWIN ), // #105827# if we change the parent, mirroring will not work correctly when positioning this window - maHelpText( rText ) + maHelpText( rText ), + maShowTimer( "vcl::HelpTextWindow maShowTimer" ), + maHideTimer( "vcl::HelpTextWindow maHideTimer" ) { SetType( WindowType::HELPTEXTWINDOW ); ImplSetMouseTransparent( true ); @@ -276,12 +278,10 @@ HelpTextWindow::HelpTextWindow( vcl::Window* pParent, const OUString& rText, sal maShowTimer.SetInvokeHandler( LINK( this, HelpTextWindow, TimerHdl ) ); - maShowTimer.SetDebugName( "vcl::HelpTextWindow maShowTimer" ); const HelpSettings& rHelpSettings = pParent->GetSettings().GetHelpSettings(); maHideTimer.SetTimeout( rHelpSettings.GetTipTimeout() ); maHideTimer.SetInvokeHandler( LINK( this, HelpTextWindow, TimerHdl ) ); - maHideTimer.SetDebugName( "vcl::HelpTextWindow maHideTimer" ); } void HelpTextWindow::ApplySettings(vcl::RenderContext& rRenderContext) diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 5a907cd45e8e..fd17e157d8ce 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -1818,6 +1818,7 @@ public: bool bTakeOwnership) : SalInstanceDialog(pDialog, pBuilder, bTakeOwnership) , m_xWizard(pDialog) + , m_aUpdateRoadmapIdle("SalInstanceAssistant m_aUpdateRoadmapIdle") { m_xWizard->SetItemSelectHdl(LINK(this, SalInstanceAssistant, OnRoadmapItemSelected)); diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx index c6f3f6b737d4..2d0cf4b9686b 100644 --- a/vcl/source/app/scheduler.cxx +++ b/vcl/source/app/scheduler.cxx @@ -628,6 +628,7 @@ Task::Task( const char *pDebugName ) , mbActive( false ) , mbStatic( false ) { + assert(mpDebugName); } Task::Task( const Task& rTask ) @@ -637,6 +638,7 @@ Task::Task( const Task& rTask ) , mbActive( false ) , mbStatic( false ) { + assert(mpDebugName); if ( rTask.IsActive() ) Start(); } diff --git a/vcl/source/app/weldutils.cxx b/vcl/source/app/weldutils.cxx index db8989ac2fe3..12a8c6547199 100644 --- a/vcl/source/app/weldutils.cxx +++ b/vcl/source/app/weldutils.cxx @@ -554,6 +554,7 @@ void WidgetStatusListener::dispose() ButtonPressRepeater::ButtonPressRepeater(weld::Button& rButton, const Link<Button&, void>& rLink, const Link<const CommandEvent&, void>& rContextLink) : m_rButton(rButton) + , m_aRepeat("vcl ButtonPressRepeater m_aRepeat") , m_aLink(rLink) , m_aContextLink(rContextLink) , m_bModKey(false) diff --git a/vcl/source/control/InterimItemWindow.cxx b/vcl/source/control/InterimItemWindow.cxx index 462370e65cd4..ac7c2ab44596 100644 --- a/vcl/source/control/InterimItemWindow.cxx +++ b/vcl/source/control/InterimItemWindow.cxx @@ -15,10 +15,10 @@ InterimItemWindow::InterimItemWindow(vcl::Window* pParent, const OUString& rUIXM sal_uInt64 nLOKWindowId) : Control(pParent, WB_TABSTOP) , m_pWidget(nullptr) // inheritors are expected to call InitControlBase + , m_aLayoutIdle("InterimItemWindow m_aLayoutIdle") { m_aLayoutIdle.SetPriority(TaskPriority::RESIZE); m_aLayoutIdle.SetInvokeHandler(LINK(this, InterimItemWindow, DoLayout)); - m_aLayoutIdle.SetDebugName("InterimItemWindow m_aLayoutIdle"); m_xVclContentArea = VclPtr<VclVBox>::Create(this); m_xVclContentArea->Show(); diff --git a/vcl/source/control/imivctl1.cxx b/vcl/source/control/imivctl1.cxx index ce983e088fa2..953f90f2ad39 100644 --- a/vcl/source/control/imivctl1.cxx +++ b/vcl/source/control/imivctl1.cxx @@ -56,10 +56,10 @@ SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl( aVerSBar( VclPtr<ScrollBar>::Create(pCurView, WB_DRAG | WB_VSCROLL) ), aHorSBar( VclPtr<ScrollBar>::Create(pCurView, WB_DRAG | WB_HSCROLL) ), aScrBarBox( VclPtr<ScrollBarBox>::Create(pCurView) ), - aAutoArrangeIdle ( "svtools contnr SvxIconChoiceCtrl_Impl AutoArrange" ), - aDocRectChangedIdle ( "svtools contnr SvxIconChoiceCtrl_Impl DocRectChanged" ), - aVisRectChangedIdle ( "svtools contnr SvxIconChoiceCtrl_Impl VisRectChanged" ), - aCallSelectHdlIdle ( "svtools contnr SvxIconChoiceCtrl_Impl CallSelectHdl" ), + aAutoArrangeIdle( "svtools::SvxIconChoiceCtrl_Impl aAutoArrangeIdle" ), + aDocRectChangedIdle( "svtools::SvxIconChoiceCtrl_Impl aDocRectChangedIdle" ), + aVisRectChangedIdle( "svtools::SvxIconChoiceCtrl_Impl aVisRectChangedIdle" ), + aCallSelectHdlIdle( "svtools::SvxIconChoiceCtrl_Impl aCallSelectHdlIdle" ), aImageSize( 32 * pCurView->GetDPIScaleFactor(), 32 * pCurView->GetDPIScaleFactor()), pView(pCurView), nMaxVirtWidth(DEFAULT_MAX_VIRT_WIDTH), nMaxVirtHeight(DEFAULT_MAX_VIRT_HEIGHT), nFlags(IconChoiceFlags::NONE), nUserEventAdjustScrBars(nullptr), @@ -81,19 +81,15 @@ SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl( aAutoArrangeIdle.SetPriority( TaskPriority::HIGH_IDLE ); aAutoArrangeIdle.SetInvokeHandler(LINK(this,SvxIconChoiceCtrl_Impl,AutoArrangeHdl)); - aAutoArrangeIdle.SetDebugName( "svtools::SvxIconChoiceCtrl_Impl aAutoArrangeIdle" ); aCallSelectHdlIdle.SetPriority( TaskPriority::LOWEST ); aCallSelectHdlIdle.SetInvokeHandler( LINK(this,SvxIconChoiceCtrl_Impl,CallSelectHdlHdl)); - aCallSelectHdlIdle.SetDebugName( "svtools::SvxIconChoiceCtrl_Impl aCallSelectHdlIdle" ); aDocRectChangedIdle.SetPriority( TaskPriority::HIGH_IDLE ); aDocRectChangedIdle.SetInvokeHandler(LINK(this,SvxIconChoiceCtrl_Impl,DocRectChangedHdl)); - aDocRectChangedIdle.SetDebugName( "svtools::SvxIconChoiceCtrl_Impl aDocRectChangedIdle" ); aVisRectChangedIdle.SetPriority( TaskPriority::HIGH_IDLE ); aVisRectChangedIdle.SetInvokeHandler(LINK(this,SvxIconChoiceCtrl_Impl,VisRectChangedHdl)); - aVisRectChangedIdle.SetDebugName( "svtools::SvxIconChoiceCtrl_Impl aVisRectChangedIdle" ); Clear( true ); Size gridSize(100,70); diff --git a/vcl/source/control/quickselectionengine.cxx b/vcl/source/control/quickselectionengine.cxx index 290eab55976f..777e00e0bc73 100644 --- a/vcl/source/control/quickselectionengine.cxx +++ b/vcl/source/control/quickselectionengine.cxx @@ -39,10 +39,10 @@ namespace vcl explicit QuickSelectionEngine_Data( ISearchableStringList& _entryList ) :rEntryList( _entryList ) + ,aSearchTimeout( "vcl::QuickSelectionEngine_Data aSearchTimeout" ) { aSearchTimeout.SetTimeout( 2500 ); aSearchTimeout.SetInvokeHandler( LINK( this, QuickSelectionEngine_Data, SearchStringTimeout ) ); - aSearchTimeout.SetDebugName( "vcl::QuickSelectionEngine_Data aSearchTimeout" ); } ~QuickSelectionEngine_Data() diff --git a/vcl/source/control/roadmapwizard.cxx b/vcl/source/control/roadmapwizard.cxx index 9530d8df3848..b1738d5bef83 100644 --- a/vcl/source/control/roadmapwizard.cxx +++ b/vcl/source/control/roadmapwizard.cxx @@ -123,6 +123,7 @@ namespace vcl //= RoadmapWizard RoadmapWizard::RoadmapWizard(vcl::Window* pParent, WinBits nStyle, InitFlag eFlag) : Dialog(pParent, nStyle, eFlag) + , maWizardLayoutIdle("vcl RoadmapWizard maWizardLayoutIdle") , m_pFinish(nullptr) , m_pCancel(nullptr) , m_pNextPage(nullptr) diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx index 9a31a58fc4b3..87385872c0de 100644 --- a/vcl/source/control/scrbar.cxx +++ b/vcl/source/control/scrbar.cxx @@ -64,7 +64,7 @@ struct ImplScrollBarData { - AutoTimer maTimer; // Timer + AutoTimer maTimer { "vcl::ScrollBar mpData->maTimer" }; bool mbHide; }; @@ -1138,7 +1138,6 @@ void ScrollBar::GetFocus() { mpData.reset(new ImplScrollBarData); mpData->maTimer.SetInvokeHandler( LINK( this, ScrollBar, ImplAutoTimerHdl ) ); - mpData->maTimer.SetDebugName( "vcl::ScrollBar mpData->maTimer" ); mpData->mbHide = false; } ImplInvert(); // react immediately diff --git a/vcl/source/control/spinbtn.cxx b/vcl/source/control/spinbtn.cxx index 084fc570a739..c800fdc7d0c9 100644 --- a/vcl/source/control/spinbtn.cxx +++ b/vcl/source/control/spinbtn.cxx @@ -51,6 +51,7 @@ void SpinButton::ImplInit( vcl::Window* pParent, WinBits nStyle ) SpinButton::SpinButton( vcl::Window* pParent, WinBits nStyle ) : Control(WindowType::SPINBUTTON) + , maRepeatTimer("SpinButton maRepeatTimer") , mbUpperIsFocused(false) { ImplInit(pParent, nStyle); diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index 0abaae7a8981..8db25dfbc699 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -336,7 +336,7 @@ void SpinField::ImplInit(vcl::Window* pParent, WinBits nWinStyle) } SpinField::SpinField(vcl::Window* pParent, WinBits nWinStyle, WindowType nType) : - Edit(nType) + Edit(nType), maRepeatTimer("SpinField maRepeatTimer") { ImplInitSpinFieldData(); ImplInit(pParent, nWinStyle); diff --git a/vcl/source/control/throbber.cxx b/vcl/source/control/throbber.cxx index 0f38fe11baca..d1c769a3bcd3 100644 --- a/vcl/source/control/throbber.cxx +++ b/vcl/source/control/throbber.cxx @@ -44,6 +44,7 @@ Throbber::Throbber( vcl::Window* i_parentWindow, WinBits i_style ) ,mbRepeat( true ) ,mnStepTime( 100 ) ,mnCurStep( 0 ) + ,maWaitTimer("Throbber maWaitTimer") { maWaitTimer.SetTimeout( mnStepTime ); maWaitTimer.SetInvokeHandler( LINK( this, Throbber, TimeOutHdl ) ); diff --git a/vcl/source/edit/textdata.cxx b/vcl/source/edit/textdata.cxx index b0a919b1698e..3cf859704281 100644 --- a/vcl/source/edit/textdata.cxx +++ b/vcl/source/edit/textdata.cxx @@ -268,7 +268,8 @@ TEParaPortions::~TEParaPortions() } IdleFormatter::IdleFormatter() - : mpView(nullptr) + : Idle("vcl::TextEngine mpIdleFormatter") + , mpView(nullptr) , mnRestarts(0) { SetPriority(TaskPriority::HIGH_IDLE); diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 5435865e4f04..594439666238 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -89,7 +89,6 @@ TextEngine::TextEngine() mpIdleFormatter.reset( new IdleFormatter ); mpIdleFormatter->SetInvokeHandler( LINK( this, TextEngine, IdleFormatHdl ) ); - mpIdleFormatter->SetDebugName( "vcl::TextEngine mpIdleFormatter" ); mpRefDev = VclPtr<VirtualDevice>::Create(); diff --git a/vcl/source/graphic/Manager.cxx b/vcl/source/graphic/Manager.cxx index e637e16e1442..b07c52b9541c 100644 --- a/vcl/source/graphic/Manager.cxx +++ b/vcl/source/graphic/Manager.cxx @@ -71,7 +71,6 @@ Manager::Manager() { maSwapOutTimer.SetInvokeHandler(LINK(this, Manager, SwapOutTimerHandler)); maSwapOutTimer.SetTimeout(10000); - maSwapOutTimer.SetDebugName("graphic::Manager maSwapOutTimer"); maSwapOutTimer.Start(); } } diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx index f5d48c4073cc..cdbc4b98578e 100644 --- a/vcl/source/treelist/svimpbox.cxx +++ b/vcl/source/treelist/svimpbox.cxx @@ -53,6 +53,7 @@ SvImpLBox::SvImpLBox( SvTreeListBox* pLBView, SvTreeList* pLBTree, WinBits nWinS , m_aScrBarBox(VclPtr<ScrollBarBox>::Create(pLBView)) , m_aFctSet(this, pLBView) , mbForceMakeVisible (false) + , m_aEditIdle("SvImpLBox m_aEditIdle") , m_aVerSBar(VclPtr<ScrollBar>::Create(pLBView, WB_DRAG | WB_VSCROLL)) , m_aOutputSize(0, 0) , mbNoAutoCurEntry(false) diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx index 069b1d9c95ce..35eb3271f403 100644 --- a/vcl/source/treelist/treelistbox.cxx +++ b/vcl/source/treelist/treelistbox.cxx @@ -63,7 +63,7 @@ class SvInplaceEdit2 Link<SvInplaceEdit2&,void> aCallBackHdl; Accelerator aAccReturn; Accelerator aAccEscape; - Idle aIdle; + Idle aIdle { "svtools::SvInplaceEdit2 aIdle" }; VclPtr<Edit> pEdit; bool bCanceled; bool bAlreadyInCallBack; @@ -237,7 +237,6 @@ void SvInplaceEdit2::LoseFocus() bCanceled = false; aIdle.SetPriority(TaskPriority::REPAINT); aIdle.SetInvokeHandler(LINK(this,SvInplaceEdit2,Timeout_Impl)); - aIdle.SetDebugName( "svtools::SvInplaceEdit2 aIdle" ); aIdle.Start(); } } diff --git a/vcl/source/uitest/uno/uiobject_uno.cxx b/vcl/source/uitest/uno/uiobject_uno.cxx index 9041dc7f14e0..2490a48c479b 100644 --- a/vcl/source/uitest/uno/uiobject_uno.cxx +++ b/vcl/source/uitest/uno/uiobject_uno.cxx @@ -95,10 +95,9 @@ public: IMPL_LINK_NOARG(ExecuteWrapper, ExecuteActionHdl, Timer*, void) { { - Idle aIdle; + Idle aIdle("UI Test Idle Handler2"); { mFunc(); - aIdle.SetDebugName("UI Test Idle Handler2"); aIdle.SetPriority(TaskPriority::LOWEST); aIdle.SetInvokeHandler(mHandler); aIdle.Start(); @@ -118,8 +117,7 @@ void SAL_CALL UIObjectUnoObj::executeAction(const OUString& rAction, const css:: if (!mpObj) throw css::uno::RuntimeException(); - auto aIdle = std::make_unique<Idle>(); - aIdle->SetDebugName("UI Test Idle Handler"); + auto aIdle = std::make_unique<Idle>("UI Test Idle Handler"); aIdle->SetPriority(TaskPriority::HIGHEST); std::function<void()> func = [&rAction, &rPropValues, this](){ diff --git a/vcl/source/window/bubblewindow.cxx b/vcl/source/window/bubblewindow.cxx index f4e491242c52..a0c20cedd99e 100644 --- a/vcl/source/window/bubblewindow.cxx +++ b/vcl/source/window/bubblewindow.cxx @@ -215,7 +215,9 @@ void BubbleWindow::RecalcTextRects() } MenuBarUpdateIconManager::MenuBarUpdateIconManager() - : mnIconID (0) + : maTimeoutTimer("MenuBarUpdateIconManager") + , maWaitIdle("vcl MenuBarUpdateIconManager maWaitIdle") + , mnIconID (0) , mbShowMenuIcon(false) , mbShowBubble(false) , mbBubbleChanged( false ) diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx index bab975a0b602..09406b927e00 100644 --- a/vcl/source/window/cursor.cxx +++ b/vcl/source/window/cursor.cxx @@ -32,7 +32,7 @@ struct ImplCursorData { - AutoTimer maTimer; // Timer + AutoTimer maTimer { "vcl ImplCursorData maTimer" }; // Timer Point maPixPos; // Pixel-Position Point maPixRotOff; // Pixel-Offset-Position Size maPixSize; // Pixel-Size @@ -212,7 +212,6 @@ void vcl::Cursor::ImplDoShow( bool bDrawDirect, bool bRestore ) mpData.reset( new ImplCursorData ); mpData->mbCurVisible = false; mpData->maTimer.SetInvokeHandler( LINK( this, Cursor, ImplTimerHdl ) ); - mpData->maTimer.SetDebugName( "vcl ImplCursorData maTimer" ); } mpData->mpWindow = pWindow; diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index a3ae03980540..8292e62b2b6e 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -541,7 +541,7 @@ void Dialog::ImplLOKNotifier(vcl::Window* pParent) } Dialog::Dialog( WindowType nType ) - : SystemWindow( nType ) + : SystemWindow( nType, "vcl::Dialog maLayoutIdle" ) , mnInitFlag(InitFlag::Default) { ImplInitDialogData(); @@ -571,7 +571,7 @@ void Dialog::doDeferredInit(WinBits nBits) } Dialog::Dialog(vcl::Window* pParent, std::u16string_view rID, const OUString& rUIXMLDescription) - : SystemWindow(WindowType::DIALOG) + : SystemWindow(WindowType::DIALOG, "vcl::Dialog maLayoutIdle") , mnInitFlag(InitFlag::Default) { ImplLOKNotifier(pParent); @@ -580,7 +580,7 @@ Dialog::Dialog(vcl::Window* pParent, std::u16string_view rID, const OUString& rU } Dialog::Dialog(vcl::Window* pParent, WinBits nStyle, InitFlag eFlag) - : SystemWindow(WindowType::DIALOG) + : SystemWindow(WindowType::DIALOG, "vcl::Dialog maLayoutIdle") , mnInitFlag(eFlag) { ImplLOKNotifier(pParent); diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx index 645aa8dc19e5..e71c7f420580 100644 --- a/vcl/source/window/dockmgr.cxx +++ b/vcl/source/window/dockmgr.cxx @@ -74,6 +74,8 @@ ImplDockFloatWin2::ImplDockFloatWin2( vcl::Window* pParent, WinBits nWinBits, FloatingWindow( pParent, nWinBits ), mpDockWin( pDockingWin ), mnLastTicks( tools::Time::GetSystemTicks() ), + m_aDockTimer("vcl::ImplDockFloatWin2 m_aDockTimer"), + m_aEndDockTimer( "vcl::ImplDockFloatWin2 m_aEndDockTimer" ), mbInMove( false ), mnLastUserEvent( nullptr ) { @@ -93,12 +95,10 @@ ImplDockFloatWin2::ImplDockFloatWin2( vcl::Window* pParent, WinBits nWinBits, m_aDockTimer.SetInvokeHandler( LINK( this, ImplDockFloatWin2, DockTimerHdl ) ); m_aDockTimer.SetPriority( TaskPriority::HIGH_IDLE ); m_aDockTimer.SetTimeout( 50 ); - m_aDockTimer.SetDebugName( "vcl::ImplDockFloatWin2 m_aDockTimer" ); m_aEndDockTimer.SetInvokeHandler( LINK( this, ImplDockFloatWin2, EndDockTimerHdl ) ); m_aEndDockTimer.SetPriority( TaskPriority::HIGH_IDLE ); m_aEndDockTimer.SetTimeout( 50 ); - m_aEndDockTimer.SetDebugName( "vcl::ImplDockFloatWin2 m_aEndDockTimer" ); } ImplDockFloatWin2::~ImplDockFloatWin2() diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx index 892a1cf95727..99c4f1bba398 100644 --- a/vcl/source/window/dockwin.cxx +++ b/vcl/source/window/dockwin.cxx @@ -86,6 +86,7 @@ ImplDockFloatWin::ImplDockFloatWin( vcl::Window* pParent, WinBits nWinBits, FloatingWindow( pParent, nWinBits ), mpDockWin( pDockingWin ), mnLastTicks( tools::Time::GetSystemTicks() ), + maDockIdle( "vcl::ImplDockFloatWin maDockIdle" ), mbInMove( false ), mnLastUserEvent( nullptr ) { @@ -104,7 +105,6 @@ ImplDockFloatWin::ImplDockFloatWin( vcl::Window* pParent, WinBits nWinBits, maDockIdle.SetInvokeHandler( LINK( this, ImplDockFloatWin, DockTimerHdl ) ); maDockIdle.SetPriority( TaskPriority::HIGH_IDLE ); - maDockIdle.SetDebugName( "vcl::ImplDockFloatWin maDockIdle" ); } ImplDockFloatWin::~ImplDockFloatWin() @@ -307,7 +307,6 @@ void DockingWindow::ImplInitDockingWindowData() //To-Do, reuse maResizeTimer maLayoutIdle.SetPriority(TaskPriority::RESIZE); maLayoutIdle.SetInvokeHandler( LINK( this, DockingWindow, ImplHandleLayoutTimerHdl ) ); - maLayoutIdle.SetDebugName( "vcl::DockingWindow maLayoutIdle" ); } void DockingWindow::ImplInit( vcl::Window* pParent, WinBits nStyle ) @@ -344,14 +343,16 @@ void DockingWindow::ImplInitSettings() SetBackground( aColor ); } -DockingWindow::DockingWindow( WindowType nType ) : - Window(nType) +DockingWindow::DockingWindow( WindowType nType, const char* pIdleDebugName ) : + Window(nType), + maLayoutIdle( pIdleDebugName ) { ImplInitDockingWindowData(); } -DockingWindow::DockingWindow( vcl::Window* pParent, WinBits nStyle ) : - Window( WindowType::DOCKINGWINDOW ) +DockingWindow::DockingWindow( vcl::Window* pParent, WinBits nStyle, const char* pIdleDebugName ) : + Window( WindowType::DOCKINGWINDOW ), + maLayoutIdle( pIdleDebugName ) { ImplInitDockingWindowData(); ImplInit( pParent, nStyle ); @@ -375,8 +376,10 @@ void DockingWindow::loadUI(vcl::Window* pParent, const OString& rID, const OUStr } DockingWindow::DockingWindow(vcl::Window* pParent, const OString& rID, - const OUString& rUIXMLDescription, const css::uno::Reference<css::frame::XFrame> &rFrame) - : Window(WindowType::DOCKINGWINDOW) + const OUString& rUIXMLDescription, const char* pIdleDebugName, + const css::uno::Reference<css::frame::XFrame> &rFrame) + : Window(WindowType::DOCKINGWINDOW), + maLayoutIdle( pIdleDebugName ) { ImplInitDockingWindowData(); @@ -1074,11 +1077,6 @@ void DockingWindow::SetFloatingPos( const Point& rNewPos ) maFloatPos = rNewPos; } -void DockingWindow::SetIdleDebugName( const char *pDebugName ) -{ - maLayoutIdle.SetDebugName( pDebugName ); -} - SystemWindow* DockingWindow::GetFloatingWindow() const { return mpFloatWin; @@ -1088,6 +1086,7 @@ DropdownDockingWindow::DropdownDockingWindow(vcl::Window* pParent, const css::un : DockingWindow(pParent, !bTearable ? OString("InterimDockParent") : OString("InterimTearableParent"), !bTearable ? OUString("vcl/ui/interimdockparent.ui") : OUString("vcl/ui/interimtearableparent.ui"), + "vcl::DropdownDockingWindow maLayoutIdle", rFrame) , m_xBox(m_pUIBuilder->get("box")) { @@ -1105,13 +1104,13 @@ void DropdownDockingWindow::dispose() } ResizableDockingWindow::ResizableDockingWindow(vcl::Window* pParent, const css::uno::Reference<css::frame::XFrame>& rFrame) - : DockingWindow(pParent, "DockingWindow", "vcl/ui/dockingwindow.ui", rFrame) + : DockingWindow(pParent, "DockingWindow", "vcl/ui/dockingwindow.ui", "vcl::ResizableDockingWindow maLayoutIdle", rFrame) , m_xBox(m_pUIBuilder->get("box")) { } ResizableDockingWindow::ResizableDockingWindow(vcl::Window* pParent, WinBits nStyle) - : DockingWindow(pParent, nStyle) + : DockingWindow(pParent, nStyle, "vcl::ResizableDockingWindow maLayoutIdle") { } diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx index d218e243f862..f8beb309b3d8 100644 --- a/vcl/source/window/floatwin.cxx +++ b/vcl/source/window/floatwin.cxx @@ -149,13 +149,13 @@ void FloatingWindow::ImplInitSettings() } FloatingWindow::FloatingWindow(vcl::Window* pParent, WinBits nStyle) : - SystemWindow(WindowType::FLOATINGWINDOW) + SystemWindow(WindowType::FLOATINGWINDOW, "vcl::FloatingWindow maLayoutIdle") { ImplInitFloating(pParent, nStyle); } FloatingWindow::FloatingWindow(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription, const css::uno::Reference<css::frame::XFrame> &rFrame) - : SystemWindow(WindowType::FLOATINGWINDOW) + : SystemWindow(WindowType::FLOATINGWINDOW, "vcl::FloatingWindow maLayoutIdle") , mpNextFloat(nullptr) , mpFirstPopupModeWin(nullptr) , mnPostId(nullptr) diff --git a/vcl/source/window/menufloatingwindow.cxx b/vcl/source/window/menufloatingwindow.cxx index f78036a6459c..85478ac64764 100644 --- a/vcl/source/window/menufloatingwindow.cxx +++ b/vcl/source/window/menufloatingwindow.cxx @@ -31,6 +31,9 @@ MenuFloatingWindow::MenuFloatingWindow( Menu* pMen, vcl::Window* pParent, WinBits nStyle ) : FloatingWindow( pParent, nStyle ), pMenu(pMen), + aHighlightChangedTimer("vcl::MenuFloatingWindow aHighlightChangedTimer"), + aSubmenuCloseTimer( "vcl::MenuFloatingWindow aSubmenuCloseTimer" ), + aScrollTimer( "vcl::MenuFloatingWindow aScrollTimer" ), nHighlightedItem(ITEMPOS_INVALID), nMBDownPos(ITEMPOS_INVALID), nScrollerHeight(0), @@ -51,14 +54,11 @@ MenuFloatingWindow::MenuFloatingWindow( Menu* pMen, vcl::Window* pParent, WinBit aHighlightChangedTimer.SetInvokeHandler( LINK( this, MenuFloatingWindow, HighlightChanged ) ); aHighlightChangedTimer.SetTimeout( GetSettings().GetMouseSettings().GetMenuDelay() ); - aHighlightChangedTimer.SetDebugName( "vcl::MenuFloatingWindow aHighlightChangedTimer" ); aSubmenuCloseTimer.SetTimeout( GetSettings().GetMouseSettings().GetMenuDelay() ); aSubmenuCloseTimer.SetInvokeHandler( LINK( this, MenuFloatingWindow, SubmenuClose ) ); - aSubmenuCloseTimer.SetDebugName( "vcl::MenuFloatingWindow aSubmenuCloseTimer" ); aScrollTimer.SetInvokeHandler( LINK( this, MenuFloatingWindow, AutoScroll ) ); - aScrollTimer.SetDebugName( "vcl::MenuFloatingWindow aScrollTimer" ); AddEventListener( LINK( this, MenuFloatingWindow, ShowHideListener ) ); } diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx index 88e1c1a5f6dd..f81ffe6cd6d3 100644 --- a/vcl/source/window/seleng.cxx +++ b/vcl/source/window/seleng.cxx @@ -36,6 +36,7 @@ inline bool SelectionEngine::ShouldDeselect( bool bModifierKey1 ) const SelectionEngine::SelectionEngine( vcl::Window* pWindow, FunctionSet* pFuncSet ) : pWin( pWindow ), + aWTimer( "vcl::SelectionEngine aWTimer" ), nUpdateInterval( SELENG_AUTOREPEAT_INTERVAL ) { eSelMode = SelectionMode::Single; @@ -45,7 +46,6 @@ SelectionEngine::SelectionEngine( vcl::Window* pWindow, FunctionSet* pFuncSet ) aWTimer.SetInvokeHandler( LINK( this, SelectionEngine, ImpWatchDog ) ); aWTimer.SetTimeout( nUpdateInterval ); - aWTimer.SetDebugName( "vcl::SelectionEngine aWTimer" ); } SelectionEngine::~SelectionEngine() diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx index fa3cada9ecfa..1cb8389fac99 100644 --- a/vcl/source/window/splitwin.cxx +++ b/vcl/source/window/splitwin.cxx @@ -1137,10 +1137,9 @@ void SplitWindow::ImplInitSettings() } SplitWindow::SplitWindow( vcl::Window* pParent, WinBits nStyle ) : - DockingWindow( WindowType::SPLITWINDOW ) + DockingWindow( WindowType::SPLITWINDOW, "vcl::SplitWindow maLayoutIdle" ) { ImplInit( pParent, nStyle ); - DockingWindow::SetIdleDebugName( "vcl::SplitWindow maLayoutIdle" ); } SplitWindow::~SplitWindow() diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx index d6991ab11636..c624c373aa77 100644 --- a/vcl/source/window/syswin.cxx +++ b/vcl/source/window/syswin.cxx @@ -64,7 +64,7 @@ SystemWindow::ImplData::ImplData() maMaxOutSize = Size( SHRT_MAX, SHRT_MAX ); } -SystemWindow::SystemWindow(WindowType nType) +SystemWindow::SystemWindow(WindowType nType, const char* pIdleDebugName) : Window(nType) , mbDockBtn(false) , mbHideBtn(false) @@ -74,6 +74,7 @@ SystemWindow::SystemWindow(WindowType nType) , mnMenuBarMode(MenuBarMode::Normal) , mnIcon(0) , mpImplData(new ImplData) + , maLayoutIdle( pIdleDebugName ) , mbIsDeferredInit(false) { mpWindowImpl->mbSysWin = true; @@ -82,7 +83,6 @@ SystemWindow::SystemWindow(WindowType nType) //To-Do, reuse maResizeTimer maLayoutIdle.SetPriority(TaskPriority::RESIZE); maLayoutIdle.SetInvokeHandler( LINK( this, SystemWindow, ImplHandleLayoutTimerHdl ) ); - maLayoutIdle.SetDebugName( "vcl::SystemWindow maLayoutIdle" ); } void SystemWindow::loadUI(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription, diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 6cfe69aff8a8..82d301840e9a 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -1167,7 +1167,6 @@ void ToolBox::ImplInitToolBoxData() // set timeout and handler for dropdown items mpData->maDropdownTimer.SetTimeout( 250 ); mpData->maDropdownTimer.SetInvokeHandler( LINK( this, ToolBox, ImplDropdownLongClickHdl ) ); - mpData->maDropdownTimer.SetDebugName( "vcl::ToolBox mpData->maDropdownTimer" ); } void ToolBox::ImplInit( vcl::Window* pParent, WinBits nStyle ) @@ -1274,7 +1273,7 @@ void ToolBox::queue_resize(StateChangedType eReason) } ToolBox::ToolBox( vcl::Window* pParent, WinBits nStyle ) : - DockingWindow( WindowType::TOOLBOX ) + DockingWindow( WindowType::TOOLBOX, "vcl::ToolBox maLayoutIdle" ) { ImplInitToolBoxData(); ImplInit( pParent, nStyle ); @@ -1282,7 +1281,7 @@ ToolBox::ToolBox( vcl::Window* pParent, WinBits nStyle ) : ToolBox::ToolBox(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription, const css::uno::Reference<css::frame::XFrame> &rFrame) - : DockingWindow(WindowType::TOOLBOX) + : DockingWindow(WindowType::TOOLBOX, "vcl::ToolBox maLayoutIdle") { ImplInitToolBoxData(); diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index c02dc534337b..f5cf9b855103 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -760,6 +760,8 @@ ImplWinData::~ImplWinData() } ImplFrameData::ImplFrameData( vcl::Window *pWindow ) + : maPaintIdle( "vcl::Window maPaintIdle" ), + maResizeIdle( "vcl::Window maResizeIdle" ) { ImplSVData* pSVData = ImplGetSVData(); assert (pSVData->maFrameData.mpFirstFrame.get() != pWindow); @@ -799,10 +801,8 @@ ImplFrameData::ImplFrameData( vcl::Window *pWindow ) mbSysObjFocus = false; maPaintIdle.SetPriority( TaskPriority::REPAINT ); maPaintIdle.SetInvokeHandler( LINK( pWindow, vcl::Window, ImplHandlePaintHdl ) ); - maPaintIdle.SetDebugName( "vcl::Window maPaintIdle" ); maResizeIdle.SetPriority( TaskPriority::RESIZE ); maResizeIdle.SetInvokeHandler( LINK( pWindow, vcl::Window, ImplHandleResizeTimerHdl ) ); - maResizeIdle.SetDebugName( "vcl::Window maResizeIdle" ); mbInternalDragGestureRecognizer = false; mbInBufferedPaint = false; mnDPIX = 96; diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index dd3a5fe05b28..cd596b240012 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -253,14 +253,13 @@ void Window::StartTracking( StartTrackingFlags nFlags ) if ( nFlags & (StartTrackingFlags::ScrollRepeat | StartTrackingFlags::ButtonRepeat) ) { - pSVData->mpWinData->mpTrackTimer = new AutoTimer; + pSVData->mpWinData->mpTrackTimer = new AutoTimer("vcl::Window pSVData->mpWinData->mpTrackTimer"); if ( nFlags & StartTrackingFlags::ScrollRepeat ) pSVData->mpWinData->mpTrackTimer->SetTimeout( MouseSettings::GetScrollRepeat() ); else pSVData->mpWinData->mpTrackTimer->SetTimeout( MouseSettings::GetButtonStartRepeat() ); pSVData->mpWinData->mpTrackTimer->SetInvokeHandler( LINK( this, Window, ImplTrackTimerHdl ) ); - pSVData->mpWinData->mpTrackTimer->SetDebugName( "vcl::Window pSVData->mpWinData->mpTrackTimer" ); pSVData->mpWinData->mpTrackTimer->Start(); } diff --git a/vcl/source/window/wrkwin.cxx b/vcl/source/window/wrkwin.cxx index d7066f7a9b90..6dfdd4c0d367 100644 --- a/vcl/source/window/wrkwin.cxx +++ b/vcl/source/window/wrkwin.cxx @@ -40,8 +40,6 @@ void WorkWindow::ImplInitWorkWindowData() mbPresentationVisible = false; mbPresentationFull = false; mbFullScreenMode = false; - - maLayoutIdle.SetDebugName( "vcl::WorkWindow maLayoutIdle" ); } void WorkWindow::ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* pSystemParentData ) @@ -85,20 +83,20 @@ void WorkWindow::ImplInit( vcl::Window* pParent, WinBits nStyle, const css::uno: } WorkWindow::WorkWindow( WindowType nType ) : - SystemWindow( nType ) + SystemWindow( nType, "vcl::WorkWindow maLayoutIdle" ) { ImplInitWorkWindowData(); } WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : - SystemWindow( WindowType::WORKWINDOW ) + SystemWindow( WindowType::WORKWINDOW, "vcl::WorkWindow maLayoutIdle" ) { ImplInitWorkWindowData(); ImplInit( pParent, nStyle ); } WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : - SystemWindow( WindowType::WORKWINDOW ) + SystemWindow( WindowType::WORKWINDOW, "vcl::WorkWindow maLayoutIdle" ) { ImplInitWorkWindowData(); mbSysChild = true; @@ -106,7 +104,7 @@ WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWi } WorkWindow::WorkWindow( SystemParentData* pParent ) : - SystemWindow( WindowType::WORKWINDOW ) + SystemWindow( WindowType::WORKWINDOW, "vcl::WorkWindow maLayoutIdle" ) { ImplInitWorkWindowData(); mbSysChild = true; diff --git a/vcl/unx/generic/fontmanager/fontmanager.cxx b/vcl/unx/generic/fontmanager/fontmanager.cxx index 67f5868c1c8e..4262368d1fe8 100644 --- a/vcl/unx/generic/fontmanager/fontmanager.cxx +++ b/vcl/unx/generic/fontmanager/fontmanager.cxx @@ -116,10 +116,10 @@ PrintFontManager& PrintFontManager::get() PrintFontManager::PrintFontManager() : m_nNextFontID( 1 ) , m_nNextDirAtom( 1 ) + , m_aFontInstallerTimer("PrintFontManager m_aFontInstallerTimer") { m_aFontInstallerTimer.SetInvokeHandler(LINK(this, PrintFontManager, autoInstallFontLangSupport)); m_aFontInstallerTimer.SetTimeout(5000); - m_aFontInstallerTimer.SetDebugName("PrintFontManager m_aFontInstallerTimer"); } PrintFontManager::~PrintFontManager() diff --git a/vcl/unx/generic/print/prtsetup.cxx b/vcl/unx/generic/print/prtsetup.cxx index 04493761a259..cca780e0eb6d 100644 --- a/vcl/unx/generic/print/prtsetup.cxx +++ b/vcl/unx/generic/print/prtsetup.cxx @@ -274,9 +274,9 @@ RTSDevicePage::RTSDevicePage(weld::Widget* pPage, RTSDialog* pParent) , m_xLevelBox(m_xBuilder->weld_combo_box("level")) , m_xSpaceBox(m_xBuilder->weld_combo_box("colorspace")) , m_xDepthBox(m_xBuilder->weld_combo_box("colordepth")) + , m_aReselectCustomIdle("RTSDevicePage m_aReselectCustomIdle") { m_aReselectCustomIdle.SetInvokeHandler(LINK(this, RTSDevicePage, ImplHandleReselectHdl)); - m_aReselectCustomIdle.SetDebugName("RTSDevicePage m_aReselectCustomIdle"); m_xPPDKeyBox->set_size_request(m_xPPDKeyBox->get_approximate_digit_width() * 32, m_xPPDKeyBox->get_height_rows(12)); diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx index 03b7f1bc47a2..929432afa286 100644 --- a/vcl/unx/generic/window/salframe.cxx +++ b/vcl/unx/generic/window/salframe.cxx @@ -791,7 +791,8 @@ void X11SalFrame::Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nXScreen X11SalFrame::X11SalFrame( SalFrame *pParent, SalFrameStyleFlags nSalFrameStyle, SystemParentData const * pSystemParent ) : - m_nXScreen( 0 ) + m_nXScreen( 0 ), + maAlwaysOnTopRaiseTimer( "vcl::X11SalFrame maAlwaysOnTopRaiseTimer" ) { GenericUnixSalData *pData = GetGenericUnixSalData(); @@ -840,7 +841,6 @@ X11SalFrame::X11SalFrame( SalFrame *pParent, SalFrameStyleFlags nSalFrameStyle, maAlwaysOnTopRaiseTimer.SetInvokeHandler( LINK( this, X11SalFrame, HandleAlwaysOnTopRaise ) ); maAlwaysOnTopRaiseTimer.SetTimeout( 100 ); - maAlwaysOnTopRaiseTimer.SetDebugName( "vcl::X11SalFrame maAlwaysOnTopRaiseTimer" ); meWindowType = WMWindowType::Normal; mbMaximizedVert = false; diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx index 9f305bf2dcc0..7ac56e361653 100644 --- a/vcl/unx/gtk3/gtkframe.cxx +++ b/vcl/unx/gtk3/gtkframe.cxx @@ -471,6 +471,7 @@ GtkSalFrame::GtkSalFrame( SalFrame* pParent, SalFrameStyleFlags nStyle ) , m_pHeaderBar(nullptr) , m_bGraphics(false) , m_nSetFocusSignalId(0) + , m_aSmoothScrollIdle("GtkSalFrame m_aSmoothScrollIdle") { getDisplay()->registerFrame( this ); m_bDefaultPos = true; @@ -483,6 +484,7 @@ GtkSalFrame::GtkSalFrame( SystemParentData* pSysData ) , m_pHeaderBar(nullptr) , m_bGraphics(false) , m_nSetFocusSignalId(0) + , m_aSmoothScrollIdle("GtkSalFrame m_aSmoothScrollIdle") { getDisplay()->registerFrame( this ); // permanently ignore errors from our unruly children ... diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index 7782205fde56..21504ad7be5c 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -5466,10 +5466,10 @@ private: public: ChildFrame(vcl::Window* pParent, WinBits nStyle) : WorkWindow(pParent, nStyle) + , maLayoutIdle( "ChildFrame maLayoutIdle" ) { maLayoutIdle.SetPriority(TaskPriority::RESIZE); maLayoutIdle.SetInvokeHandler( LINK( this, ChildFrame, ImplHandleLayoutTimerHdl ) ); - maLayoutIdle.SetDebugName( "ChildFrame maLayoutIdle" ); } virtual void dispose() override diff --git a/vcl/unx/gtk3/gtksalmenu.cxx b/vcl/unx/gtk3/gtksalmenu.cxx index 380df0d62dd1..5a3bc688a0a1 100644 --- a/vcl/unx/gtk3/gtksalmenu.cxx +++ b/vcl/unx/gtk3/gtksalmenu.cxx @@ -568,6 +568,7 @@ bool GtkSalMenu::ShowNativePopupMenu(FloatingWindow* pWin, const tools::Rectangl */ GtkSalMenu::GtkSalMenu( bool bMenuBar ) : + maUpdateMenuBarIdle("Native Gtk Menu Update Idle"), mbInActivateCallback( false ), mbMenuBar( bMenuBar ), mbNeedsUpdate( false ), @@ -590,7 +591,6 @@ GtkSalMenu::GtkSalMenu( bool bMenuBar ) : //directly long before this idle would get called. maUpdateMenuBarIdle.SetPriority(TaskPriority::HIGHEST); maUpdateMenuBarIdle.SetInvokeHandler(LINK(this, GtkSalMenu, MenuBarHierarchyChangeHandler)); - maUpdateMenuBarIdle.SetDebugName("Native Gtk Menu Update Idle"); } IMPL_LINK_NOARG(GtkSalMenu, MenuBarHierarchyChangeHandler, Timer *, void) diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx index ec97012fad43..8d3f52d9c354 100644 --- a/vcl/win/window/salframe.cxx +++ b/vcl/win/window/salframe.cxx @@ -3063,8 +3063,7 @@ static bool ImplHandleMouseMsg( HWND hWnd, UINT nMsg, // Start MouseLeave-Timer if ( !pSalData->mpMouseLeaveTimer ) { - pSalData->mpMouseLeaveTimer = new AutoTimer; - pSalData->mpMouseLeaveTimer->SetDebugName( "ImplHandleMouseMsg SalData::mpMouseLeaveTimer" ); + pSalData->mpMouseLeaveTimer = new AutoTimer( "ImplHandleMouseMsg SalData::mpMouseLeaveTimer" ); pSalData->mpMouseLeaveTimer->SetTimeout( SAL_MOUSELEAVE_TIMEOUT ); pSalData->mpMouseLeaveTimer->Start(); // We don't need to set a timeout handler, because we test |