]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
NPAL13898 Ok/Apply/Close laborious for User
authordmv <dmv@opencascade.com>
Wed, 7 May 2008 11:48:22 +0000 (11:48 +0000)
committerdmv <dmv@opencascade.com>
Wed, 7 May 2008 11:48:22 +0000 (11:48 +0000)
src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx

index 69a04799cab2ea511a718a946aad56baa4c4a9d9..f7f9390332f527123e80ded43cf780cda1ab8eb3 100644 (file)
@@ -115,16 +115,16 @@ VisuGUI_DeformedShapeDlg::VisuGUI_DeformedShapeDlg (SalomeApp_Module* theModule)
   QPushButton* buttonApply = new QPushButton (tr("&Apply"), GroupButtons, "buttonApply");
   buttonApply->setAutoDefault(TRUE);
   buttonApply->setDefault(TRUE);
-  GroupButtonsLayout->addWidget(buttonApply, 0, 0);
+  GroupButtonsLayout->addWidget(buttonApply, 0, 1);
 
   QPushButton* buttonCancel = new QPushButton (tr("&Cancel") , GroupButtons, "buttonCancel");
   buttonCancel->setAutoDefault(TRUE);
-  GroupButtonsLayout->addWidget(buttonCancel, 0, 1);
+  GroupButtonsLayout->addWidget(buttonCancel, 0, 2);
 
   QPushButton* buttonOk = new QPushButton (tr("A&pply and Close"), GroupButtons, "buttonOk");
   buttonOk->setAutoDefault(TRUE);
   buttonOk->setDefault(TRUE);
-  GroupButtonsLayout->addWidget(buttonOk, 0, 2);
+  GroupButtonsLayout->addWidget(buttonOk, 0, 0);
 
   QPushButton* buttonHelp = new QPushButton (tr("&Help") , GroupButtons, "buttonHelp");
   buttonHelp->setAutoDefault(TRUE);
@@ -184,7 +184,8 @@ void VisuGUI_DeformedShapeDlg::updatePrsCopy()
   VisuGUI* aVisuGUI = dynamic_cast <VisuGUI*>(myModule);
   if ( myPrsCopy->GetNumberOfActors() == 0 ) {
     PublishInView(aVisuGUI, myPrsCopy, aViewWindow);
-    aViewWindow->onFitAll();    
+//  if(VISU::GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false))
+      aViewWindow->onFitAll();
     int aPos = VISU::GetFreePositionOfDefaultScalarBar(aVisuGUI, aViewWindow);
     VISU::AddScalarBarPosition(aVisuGUI, aViewWindow, myPrsCopy, aPos);
     } else {
@@ -277,7 +278,8 @@ void VisuGUI_DeformedShapeDlg::CreatePrs3d(VisuGUI* theModule)
            aDlg->storeToPrsObject( aPrs3d );
            SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
            PublishInView(theModule, aPrs3d, aViewWindow);
-           aViewWindow->onFitAll();
+//         if(VISU::GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false))
+             aViewWindow->onFitAll();
            int aPos = VISU::GetFreePositionOfDefaultScalarBar(theModule, aViewWindow);
            VISU::AddScalarBarPosition(theModule, aViewWindow, aPrs3d, aPos);
          }