From aaf22ead73e86912913d041f5a3cd2383b6e599f Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 5 Sep 2008 12:55:34 +0000 Subject: [PATCH] *** empty log message *** --- src/SVTK/SVTK_ViewWindow.cxx | 17 +++++++++++++++++ src/SVTK/SVTK_ViewWindow.h | 6 ++++++ 2 files changed, 23 insertions(+) diff --git a/src/SVTK/SVTK_ViewWindow.cxx b/src/SVTK/SVTK_ViewWindow.cxx index 7e551ad8f..3093d1ba5 100755 --- a/src/SVTK/SVTK_ViewWindow.cxx +++ b/src/SVTK/SVTK_ViewWindow.cxx @@ -1933,3 +1933,20 @@ void SVTK_ViewWindow::onViewParameters(bool theIsActivate) }else myViewParameterDlg->hide(); } + +/*! + Custom show event handler +*/ +void SVTK_ViewWindow::showEvent( QShowEvent * theEvent ) +{ + emit Show( theEvent ); +} + +/*! + Custom hide event handler +*/ +void SVTK_ViewWindow::hideEvent( QHideEvent * theEvent ) +{ + emit Hide( theEvent ); +} + diff --git a/src/SVTK/SVTK_ViewWindow.h b/src/SVTK/SVTK_ViewWindow.h index 7b1916c35..0b5f2014a 100755 --- a/src/SVTK/SVTK_ViewWindow.h +++ b/src/SVTK/SVTK_ViewWindow.h @@ -246,7 +246,13 @@ class SVTK_EXPORT SVTK_ViewWindow : public SUIT_ViewWindow //! To invoke a VTK event on #SVTK_RenderWindowInteractor instance void InvokeEvent(unsigned long theEvent, void* theCallData); + signals: + void Show( QShowEvent * ); + void Hide( QHideEvent * ); + public slots: + virtual void showEvent( QShowEvent * ); + virtual void hideEvent( QHideEvent * ); virtual void onSelectionChanged(); void onChangeRotationPoint(bool theIsActivate); -- 2.39.2