]> Creatis software - bbtkGEditor.git/commitdiff
To save the executable boxes
authorcorredor <>
Fri, 7 May 2010 14:55:14 +0000 (14:55 +0000)
committercorredor <>
Fri, 7 May 2010 14:55:14 +0000 (14:55 +0000)
lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.cxx
lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.cxx

index f7fe2e1a9e3fa9fbcd2be3ff94febd34fcc1307c..47259aaa576c7a9fc0106dfdeb56cca54628a07f 100644 (file)
@@ -185,6 +185,17 @@ namespace bbtk
                content+=":";
                content+=_bbtkName;
                content+="\n";
+               content+="ISEXEC:";
+               if(_isExecutable)
+               {
+                       content+="TRUE";
+               }
+               else
+               {
+                       content+="FALSE";
+               }
+               content+="\n";
+
 
                //Box Position
                char buffer [50];
index 4fcb0434e0c6ca4fa0125b12fafc068850fe9235..ddc5a5285010ad854e3fb513e876d165ddc595be 100644 (file)
@@ -1056,6 +1056,13 @@ namespace bbtk
                                result = strtok( NULL, delims );//name
                                std::string name(result);
 
+                               getline(inputStream,line);//ISEXEC:TRUE|FALSE
+                               char exec[15];
+                               strcpy( exec, line.c_str() );
+                               result = strtok( exec, delims );//ISEXEC                                
+                               result = strtok( NULL, delims );//TRUE|FALSE
+                               std::string isExec(result);
+
                                //----------
                                getline(inputStream,line);//xInic:yInic:zInic
                                char coord[80];
@@ -1099,6 +1106,14 @@ namespace bbtk
                                bbmod->setBBTKName(name);
                                bbmod->setInicPoint(xIn,yIn,zIn);
                                bbmod->setFinalPoint(xEn,yEn,zEn);
+                               if(isExec=="TRUE")
+                               {
+                                       bbmod->setExecutable(true);
+                               }
+                               else if(isExec=="FALSE")
+                               {
+                                       bbmod->setExecutable(false);
+                               }
                                                        
                                //----------
                                getline(inputStream,line);//PORT o #FIN_BOX