From ec5a4ca1894e5caf4c4d5c3bc142987de4f243b5 Mon Sep 17 00:00:00 2001 From: dmv Date: Wed, 7 May 2008 11:48:22 +0000 Subject: [PATCH] NPAL13898 Ok/Apply/Close laborious for User --- src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx b/src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx index 69a04799..f7f93903 100644 --- a/src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx +++ b/src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx @@ -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 (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(); 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); } -- 2.39.2