]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PAL8598: Provide an access to "Dump View" functionality from the context popup menu...
authorvsr <vsr@opencascade.com>
Fri, 15 Apr 2005 05:53:11 +0000 (05:53 +0000)
committervsr <vsr@opencascade.com>
Fri, 15 Apr 2005 05:53:11 +0000 (05:53 +0000)
src/OCCViewer/OCCViewer_ViewFrame.cxx
src/OCCViewer/OCCViewer_ViewPort.h
src/OCCViewer/OCCViewer_ViewPort3d.cxx

index 90645fdb2256e293b762c5a2810737ff2e8ed581..8396a6a6c1db0997313abc986ed82a7c86db2ac3 100644 (file)
@@ -189,6 +189,8 @@ void OCCViewer_ViewFrame::initViewPort()
                        this, SIGNAL( vfKeyPress( QKeyEvent* ) ) ) );
   QAD_ASSERT( connect( myViewPort, SIGNAL( vpKeyRelease( QKeyEvent* ) ),
                        this, SIGNAL( vfKeyRelease( QKeyEvent* ) ) ) );
+  QAD_ASSERT( connect( myViewPort, SIGNAL( vpDumpView() ),
+                       this, SLOT( onProcessViewDump() ) ) );
 }
 
 //=======================================================================
index 6f80c7816025573f780a351ea09be051a94b9589..1ddf54a187c4cf6b2c7a94d980c1d9c83a0bfe72 100644 (file)
@@ -171,6 +171,8 @@ signals:
   void           vpPaint (QPaintEvent*);
   void           vpDrawExternal (QPainter* painter);
 
+  void            vpDumpView();
+
 protected slots:
  virtual void  onChangeBackgroundColor() = 0;
 
index 0ace89025e595e3354be5a7024d17fe80f65a3fc..6b39a2add4b5760917fce45767b9858be2e7e661 100644 (file)
@@ -99,6 +99,8 @@ void OCCViewer_ViewPort3d::onCreatePopup()
     int id;
     myIDs.append ( id = myPopup->insertItem (tr ("MEN_VP3D_CHANGEBGR")) );     
     QAD_ASSERT ( myPopup->connectItem ( id, this, SLOT(onChangeBackgroundColor())) );
+    myIDs.append ( id = myPopup->insertItem (tr ("MEN_VP3D_DUMPVIEW")) );      
+    QAD_ASSERT ( myPopup->connectItem ( id, this, SIGNAL(vpDumpView())) );
 //    }
   }
 }