diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2016-07-20 10:54:30 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-01-17 16:08:46 +0100 |
commit | 9e51007039770370182839846676b205f5c34c57 (patch) | |
tree | 0f00a1fc0b26a39b9bbf33e413cfba6d93c7596c /include | |
parent | 9235c5a3c2c7038b75606235859057f13824d5a1 (diff) |
tdf#97087 GDB pretty print the Scheduler task list
In addition to the GDB pretty printer, this annotates a lot more
Timers and Idles.
Change-Id: I5b93fab02161b23bb753e65ef92643a04fb0789c
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/dockwin.hxx | 7 | ||||
-rw-r--r-- | include/vcl/syswin.hxx | 7 | ||||
-rw-r--r-- | include/vcl/timer.hxx | 2 |
3 files changed, 15 insertions, 1 deletions
diff --git a/include/vcl/dockwin.hxx b/include/vcl/dockwin.hxx index aa5dced2d19e..c6d8fdb065f9 100644 --- a/include/vcl/dockwin.hxx +++ b/include/vcl/dockwin.hxx @@ -248,6 +248,8 @@ private: DockingWindow & operator= (const DockingWindow &) = delete; protected: + SAL_DLLPRIVATE void SetIdleDebugName( const sal_Char *pDebugName ); + using Window::ImplInit; SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle ); SAL_DLLPRIVATE void ImplInitSettings(); @@ -362,6 +364,11 @@ inline void DockingWindow::SetFloatingPos( const Point& rNewPos ) maFloatPos = rNewPos; } +inline void DockingWindow::SetIdleDebugName( const sal_Char *pDebugName ) +{ + maLayoutIdle.SetDebugName( pDebugName ); +} + #endif // INCLUDED_VCL_DOCKWIN_HXX diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx index 971cd604de48..a0c3b6972059 100644 --- a/include/vcl/syswin.hxx +++ b/include/vcl/syswin.hxx @@ -189,6 +189,8 @@ protected: virtual void settingOptimalLayoutSize(Window *pBox); SAL_DLLPRIVATE void DoInitialLayout(); + + SAL_DLLPRIVATE void SetIdleDebugName( const sal_Char *pDebugName ); public: virtual ~SystemWindow() override; virtual void dispose() override; @@ -286,6 +288,11 @@ public: virtual void doDeferredInit(WinBits nBits); }; +inline void SystemWindow::SetIdleDebugName( const sal_Char *pDebugName ) +{ + maLayoutIdle.SetDebugName( pDebugName ); +} + #endif // INCLUDED_VCL_SYSWIN_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx index 149ba9099ac9..0e32810b9d12 100644 --- a/include/vcl/timer.hxx +++ b/include/vcl/timer.hxx @@ -56,7 +56,7 @@ public: class VCL_DLLPUBLIC AutoTimer : public Timer { public: - AutoTimer(); + AutoTimer( const sal_Char *pDebugName = nullptr ); AutoTimer( const AutoTimer& rTimer ); AutoTimer& operator=( const AutoTimer& rTimer ); |