]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
VISU 2008 - Improvement of the AVI recording functionality
authorouv <ouv@opencascade.com>
Wed, 2 Jul 2008 08:37:20 +0000 (08:37 +0000)
committerouv <ouv@opencascade.com>
Wed, 2 Jul 2008 08:37:20 +0000 (08:37 +0000)
src/SVTK/SVTK_MainWindow.cxx
src/SVTK/SVTK_MainWindow.h

index 026ae725596ec091db00c6a5030e81263f3a5e77..dc917d488719034d861f8c7e1b0d72dbbf6e30f8 100644 (file)
@@ -1022,6 +1022,11 @@ void SVTK_MainWindow::onStartRecording()
     myPauseAction->setEnabled( true );
     myStopAction->setEnabled( true );
 
+    // to prevent resizing the window while recording
+    myPreRecordingMinSize = minimumSize();
+    myPreRecordingMaxSize = maximumSize();
+    setFixedSize( size() );
+
     myRecorder->Record();
   }
 }
@@ -1054,4 +1059,7 @@ void SVTK_MainWindow::onStopRecording()
   myStopAction->setEnabled( false );
 
   myRecorder->Stop();
+
+  setMinimumSize( myPreRecordingMinSize );
+  setMaximumSize( myPreRecordingMaxSize );
 }
index e94cb37c60e9a5f6b3e99f6ef23d5877446e941a..f6ea61d138eb49339796b32740a48d742edf1248 100644 (file)
@@ -263,6 +263,9 @@ public:
   SVTK_RenderWindowInteractor* myInteractor;
   vtkSmartPointer<SVTK_KeyFreeInteractorStyle> myKeyFreeInteractorStyle;
 
+  QSize myPreRecordingMinSize;
+  QSize myPreRecordingMaxSize;
+
   SVTK_Recorder* myRecorder;
   QtxAction* myStartAction;
   QtxAction* myPlayAction;