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);
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 {
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);
}