myMainFrame->GroupBoxName->setTitle( tr( "GEOM_RESULT_NAME_GRP" ) );
myMainFrame->NameLabel->setText( tr( "GEOM_RESULT_NAME_LBL" ) );
+
+ myMainFrame->GroupBoxPublish->setTitle( tr( "GEOM_PUBLISH_RESULT_GRP" ) );
+ myMainFrame->CheckBoxRestoreSS->setText( tr( "GEOM_RESTORE_SUB_SHAPES" ) );
+
buttonCancel()->setText( tr( "GEOM_BUT_CLOSE" ) );
- buttonOk()->setText( tr( "GEOM_BUT_OK" )) ;
+ buttonOk()->setText( tr( "GEOM_BUT_APPLY_AND_CLOSE" ) );
buttonApply()->setText( tr( "GEOM_BUT_APPLY" ) );
buttonHelp()->setText( tr( "GEOM_BUT_HELP" ) );
myRBGroup->addButton( myMainFrame->RadioButton2, 1 );
myRBGroup->addButton( myMainFrame->RadioButton3, 2 );
myRBGroup->addButton( myMainFrame->RadioButton4, 3 );
+ myRBGroup->addButton( myMainFrame->RadioButton5, 4 );
connect( myRBGroup, SIGNAL( buttonClicked( int ) ), this, SIGNAL( constructorsClicked( int ) ) );
Init();
}
-
//=================================================================================
// function : ~GEOMBase_Skeleton()
// purpose : Destroys the object and frees any allocated resources
myGeomGUI->SetActiveDialogBox( 0 );
}
-
//=================================================================================
// function : Init()
// purpose :
myGeomGUI = dynamic_cast<GeometryGUI*>( app->module( "Geometry" ) );
/* init variables */
- myGeomGUI->SetActiveDialogBox( this );
+ if ( myGeomGUI )
+ myGeomGUI->SetActiveDialogBox( this );
/* signals and slots connections */
connect( buttonCancel(), SIGNAL( clicked() ), this, SLOT( ClickOnCancel() ) );
/* displays Dialog */
myMainFrame->RadioButton1->setChecked( true );
myMainFrame->RadioButton4->hide();
+ myMainFrame->RadioButton5->hide();
+
+ myMainFrame->CheckBoxRestoreSS->setChecked( false );
+ myMainFrame->GroupBoxPublish->hide();
}
void GEOMBase_Skeleton::initSpinBox( QSpinBox* spinBox,
close();
}
-
//=================================================================================
// function : LineEditReturnPressed()
// purpose :
myEditCurrentArgument->setText( objectUserName );
}
-
//=================================================================================
// function : DeactivateActiveDialog()
// purpose :
{
this->setEnabled( false );
globalSelection();
- disconnect( ( (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )->selectionMgr(), 0, this, 0 );
- if ( myGeomGUI ) myGeomGUI->SetActiveDialogBox( 0 );
+ if ( myGeomGUI ) {
+ myGeomGUI->SetActiveDialogBox( 0 );
+ disconnect( myGeomGUI->getApp()->selectionMgr(), 0, this, 0 );
+ }
}
-
//=================================================================================
// function : ActivateThisDialog()
// purpose :
return;
}
-
//=================================================================================
// function : closeEvent()
// purpose : same than click on cancel button
//=================================================================================
void GEOMBase_Skeleton::closeEvent( QCloseEvent* e )
{
- SalomeApp_Application* app = (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() );
- if( app ) {
- disconnect( app->selectionMgr(), 0, this, 0 );
- app->updateActions();
+ if ( myGeomGUI ) {
+ disconnect( myGeomGUI->getApp()->selectionMgr(), 0, this, 0 );
+ myGeomGUI->getApp()->updateActions();
}
QDialog::closeEvent( e );
}
QObject::tr( "BUT_OK" ) );
}
}
+
//=================================================================================
// function : setHelpFileName()
// purpose : set name for help file html
//=================================================================================
-
void GEOMBase_Skeleton::setHelpFileName( const QString& theName )
{
myHelpFileName = theName;