]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fixed bug GVIEW11209 : Camera dump does not work
authorouv <ouv@opencascade.com>
Wed, 11 Jan 2006 08:31:03 +0000 (08:31 +0000)
committerouv <ouv@opencascade.com>
Wed, 11 Jan 2006 08:31:03 +0000 (08:31 +0000)
src/SVTK/SVTK_MainWindow.cxx
src/SVTK/SVTK_MainWindow.h

index bb11c50e91eb1b1f622e1acf74acfc1080c3e3e4..6b5e8c3f8864dcbbad6d768407cba43a1f3b54fd 100644 (file)
@@ -35,6 +35,7 @@
 
 #include "SUIT_ToolButton.h"
 #include "SUIT_MessageBox.h"
+#include "SUIT_ViewWindow.h"
 
 #include "SUIT_Tools.h"
 #include "SUIT_ResourceMgr.h"
 SVTK_MainWindow
 ::SVTK_MainWindow(QWidget* theParent, 
                  const char* theName,
-                 SUIT_ResourceMgr* theResourceMgr) :
-  QMainWindow(theParent,theName,0)
+                 SUIT_ResourceMgr* theResourceMgr,
+                 SUIT_ViewWindow* theViewWindow) :
+  QMainWindow(theParent,theName,0),
+  myViewWindow(theViewWindow)
 {
   myToolBar = new QToolBar(this);
   myToolBar->setCloseMode(QDockWindow::Undocked);
@@ -349,7 +352,7 @@ SVTK_MainWindow
                           theResourceMgr->loadPixmap( "VTKViewer", tr( "ICON_VTKVIEWER_VIEW_DUMP" ) ),
                           tr( "MNU_DUMP_VIEW" ), 0, this);
   anAction->setStatusTip(tr("DSC_DUMP_VIEW"));
-  connect(anAction, SIGNAL(activated()), this, SLOT(onDumpView()));
+  connect(anAction, SIGNAL(activated()), myViewWindow, SLOT(onDumpView()));
   myActionsMap[ DumpId ] = anAction;
 
   // FitAll
@@ -682,12 +685,6 @@ SVTK_MainWindow
   GetRenderer()->OnAdjustCubeAxes();
 }
 
-//----------------------------------------------------------------------------
-void
-SVTK_MainWindow
-::onDumpView()
-{}
-
 //----------------------------------------------------------------------------
 QImage
 SVTK_MainWindow
index 223a4a6b50660f02cdbf874818d5836685d2964c..758093797f06e18aca5b1d604e784b3873198cdb 100644 (file)
@@ -21,6 +21,7 @@ class vtkInteractorStyle;
 class vtkRenderWindowInteractor;
 
 class SUIT_ResourceMgr;
+class SUIT_ViewWindow;
 
 class SVTK_RenderWindowInteractor;
 class SVTK_NonIsometricDlg;
@@ -48,7 +49,8 @@ class SVTK_EXPORT SVTK_MainWindow: public QMainWindow
 public:
   SVTK_MainWindow(QWidget* theParent, 
                  const char* theName,
-                 SUIT_ResourceMgr* theResourceMgr);
+                 SUIT_ResourceMgr* theResourceMgr,
+                 SUIT_ViewWindow* theViewWindow);
   
   //! To initialize the class
   virtual
@@ -199,8 +201,6 @@ public:
   void onAdjustTrihedron();
   void onAdjustCubeAxes();
 
-  void onDumpView();
-
  public:
   QImage dumpView();
 
@@ -219,6 +219,8 @@ public:
         ViewTrihedronId, NonIsometric, GraduatedAxes};
   typedef QMap<int, QtxAction*> TActionsMap;
 
+  SUIT_ViewWindow* myViewWindow;
+
   SVTK_NonIsometricDlg* myNonIsometricDlg;
   SVTK_CubeAxesDlg* myCubeAxesDlg;