From: vsv Date: Wed, 15 Sep 2010 07:30:02 +0000 (+0000) Subject: Use the ViewWindow as a parent for clipping dialog box and others X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2df05b39d1629bb942ba9f0a4c4c72444e955332;p=modules%2Fgui.git Use the ViewWindow as a parent for clipping dialog box and others --- diff --git a/src/OCCViewer/OCCViewer_AxialScaleDlg.cxx b/src/OCCViewer/OCCViewer_AxialScaleDlg.cxx index df14c9562..55eed1278 100644 --- a/src/OCCViewer/OCCViewer_AxialScaleDlg.cxx +++ b/src/OCCViewer/OCCViewer_AxialScaleDlg.cxx @@ -39,8 +39,8 @@ \param view - view window \param parent - parent widget */ -OCCViewer_AxialScaleDlg::OCCViewer_AxialScaleDlg( OCCViewer_ViewWindow* view, QWidget* parent ) - : QDialog( parent ), +OCCViewer_AxialScaleDlg::OCCViewer_AxialScaleDlg( OCCViewer_ViewWindow* view ) + : QDialog( view ), myView( view ) { setWindowTitle( tr( "DLG_SCALING" ) ); diff --git a/src/OCCViewer/OCCViewer_AxialScaleDlg.h b/src/OCCViewer/OCCViewer_AxialScaleDlg.h index 17f55f400..3c6cde4c7 100644 --- a/src/OCCViewer/OCCViewer_AxialScaleDlg.h +++ b/src/OCCViewer/OCCViewer_AxialScaleDlg.h @@ -33,7 +33,7 @@ class OCCVIEWER_EXPORT OCCViewer_AxialScaleDlg : public QDialog Q_OBJECT public: - OCCViewer_AxialScaleDlg( OCCViewer_ViewWindow*, QWidget* = 0 ); + OCCViewer_AxialScaleDlg( OCCViewer_ViewWindow* ); ~OCCViewer_AxialScaleDlg(); void Update(); diff --git a/src/OCCViewer/OCCViewer_ClippingDlg.cxx b/src/OCCViewer/OCCViewer_ClippingDlg.cxx index 4fb3b48b0..895377ea1 100644 --- a/src/OCCViewer/OCCViewer_ClippingDlg.cxx +++ b/src/OCCViewer/OCCViewer_ClippingDlg.cxx @@ -62,8 +62,8 @@ \param modal - is this dialog modal \param fl - flags */ -OCCViewer_ClippingDlg::OCCViewer_ClippingDlg( OCCViewer_ViewWindow* view, QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl ) -: QDialog( parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint ), +OCCViewer_ClippingDlg::OCCViewer_ClippingDlg( OCCViewer_ViewWindow* view, const char* name, bool modal, Qt::WindowFlags fl ) +: QDialog( view, Qt::WindowTitleHint | Qt::WindowSystemMenuHint ), myView( view ) { setObjectName( "OCCViewer_ClippingDlg" ); diff --git a/src/OCCViewer/OCCViewer_ClippingDlg.h b/src/OCCViewer/OCCViewer_ClippingDlg.h index 8639661b7..a16ae7ccf 100644 --- a/src/OCCViewer/OCCViewer_ClippingDlg.h +++ b/src/OCCViewer/OCCViewer_ClippingDlg.h @@ -50,7 +50,7 @@ class OCCViewer_ClippingDlg : public QDialog Q_OBJECT public: - OCCViewer_ClippingDlg(OCCViewer_ViewWindow* , QWidget* parent = 0, const char* name = 0, bool modal = FALSE, Qt::WindowFlags fl = 0); + OCCViewer_ClippingDlg(OCCViewer_ViewWindow* , const char* name = 0, bool modal = FALSE, Qt::WindowFlags fl = 0); ~OCCViewer_ClippingDlg(); void SetAction( QtxAction* theAction ) { myAction = theAction; } diff --git a/src/OCCViewer/OCCViewer_SetRotationPointDlg.cxx b/src/OCCViewer/OCCViewer_SetRotationPointDlg.cxx index d5d131014..fefc08a51 100644 --- a/src/OCCViewer/OCCViewer_SetRotationPointDlg.cxx +++ b/src/OCCViewer/OCCViewer_SetRotationPointDlg.cxx @@ -43,8 +43,8 @@ \param modal - is this dialog modal \param fl - flags */ -OCCViewer_SetRotationPointDlg::OCCViewer_SetRotationPointDlg( OCCViewer_ViewWindow* view, QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl ) -: QDialog( parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint ), +OCCViewer_SetRotationPointDlg::OCCViewer_SetRotationPointDlg( OCCViewer_ViewWindow* view, const char* name, bool modal, Qt::WindowFlags fl ) +: QDialog( view, Qt::WindowTitleHint | Qt::WindowSystemMenuHint ), myView( view ) { setObjectName( "OCCViewer_SetRotationPointDlg" ); diff --git a/src/OCCViewer/OCCViewer_SetRotationPointDlg.h b/src/OCCViewer/OCCViewer_SetRotationPointDlg.h index 83cccad42..31a2a5461 100644 --- a/src/OCCViewer/OCCViewer_SetRotationPointDlg.h +++ b/src/OCCViewer/OCCViewer_SetRotationPointDlg.h @@ -41,7 +41,7 @@ class OCCVIEWER_EXPORT OCCViewer_SetRotationPointDlg : public QDialog Q_OBJECT public: - OCCViewer_SetRotationPointDlg(OCCViewer_ViewWindow* , QWidget* parent = 0, + OCCViewer_SetRotationPointDlg(OCCViewer_ViewWindow* , const char* name = 0, bool modal = FALSE, Qt::WindowFlags fl = 0); ~OCCViewer_SetRotationPointDlg(); diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index 640277e4c..00ee8acca 100755 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -1329,7 +1329,7 @@ void OCCViewer_ViewWindow::onSetRotationPoint( bool on ) { if (!mySetRotationPointDlg) { - mySetRotationPointDlg = new OCCViewer_SetRotationPointDlg (this, myDesktop); + mySetRotationPointDlg = new OCCViewer_SetRotationPointDlg (this); mySetRotationPointDlg->SetAction(mySetRotationPointAction); } @@ -1382,7 +1382,7 @@ void OCCViewer_ViewWindow::onClipping( bool on ) { if ( !myClippingDlg ) { - myClippingDlg = new OCCViewer_ClippingDlg( this, myDesktop ); + myClippingDlg = new OCCViewer_ClippingDlg( this ); myClippingDlg->SetAction( myClippingAction ); } @@ -1403,7 +1403,7 @@ void OCCViewer_ViewWindow::onClipping( bool on ) void OCCViewer_ViewWindow::onAxialScale() { if ( !myScalingDlg ) - myScalingDlg = new OCCViewer_AxialScaleDlg( this, myDesktop ); + myScalingDlg = new OCCViewer_AxialScaleDlg( this ); if ( !myScalingDlg->isVisible() ) myScalingDlg->show();