Salome HOME
IMP 0016175: EDF455: Save GUIState don't redisplay the objects.
[modules/geom.git] / src / BuildGUI / BuildGUI_CompoundDlg.cxx
index d64224623e0610063dbfc4acd1799742314029a5..eecd87a8b0efb28b73871af24e4992ca81d003a1 100644 (file)
@@ -71,7 +71,7 @@ BuildGUI_CompoundDlg::BuildGUI_CompoundDlg( GeometryGUI* theGeometryGUI, QWidget
   layout->addWidget( GroupShapes );
   /***************************************************************/
 
-  setHelpFileName( "compound.htm" );
+  setHelpFileName("create_compound_page.html");
 
   /* Initialisations */
   Init();
@@ -100,6 +100,8 @@ void BuildGUI_CompoundDlg::Init()
   
   myOkShapes = false;
 
+  mainFrame()->GroupBoxPublish->show();
+
   /* signals and slots connections */
   connect( buttonOk(),    SIGNAL( clicked() ), this, SLOT( ClickOnOk() ) );
   connect( buttonApply(), SIGNAL( clicked() ), this, SLOT( ClickOnApply() ) );
@@ -233,3 +235,18 @@ bool BuildGUI_CompoundDlg::execute( ObjectList& objects )
 
   return true;
 }
+
+//=================================================================================
+// function : restoreSubShapes
+// purpose  :
+//=================================================================================
+void BuildGUI_CompoundDlg::restoreSubShapes( SALOMEDS::Study_ptr   theStudy,
+                                             SALOMEDS::SObject_ptr theSObject )
+{
+  if ( mainFrame()->CheckBoxRestoreSS->isChecked() ) {
+    // empty list of arguments means that all arguments should be restored
+    getGeomEngine()->RestoreSubShapesSO( theStudy, theSObject, GEOM::ListOfGO(),
+                                        /*theFindMethod=*/GEOM::FSM_GetSame, // ? GEOM::FSM_GetInPlace
+                                        /*theInheritFirstArg=*/false );
+  }
+}