]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.h
Feature #1347
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxVtkSceneManager.h
index 8924e50fba4169e4980821ac289bbdede5e18443..3fb4c0be6f3747619c709e85f9c0652d3d37c613 100644 (file)
@@ -82,9 +82,10 @@ Version:   $Revision$
 
 //Includes std
 #include <iostream>
+#include <string>
+#include <sstream>
 #include <map>
 
-
 namespace bbtk
 {
        class wxGEditorTabPanel;
@@ -161,12 +162,15 @@ namespace bbtk
                void addObjects(std::map<int,GObjectController*> objectsMap);
 
 
+               //-------
+               // Makes a BlackBox Executable
+               bool MakeBoxExecutable();//DFCH
                //-------
                //Returns a string with the BBS script of the current diagram.
                std::string getDiagramBBS(bool wln=false);
 
                //Returns a string with the BBS script of the complex box.
-               std::string saveComplexBoxBBS(std::string cbName,std::string paName,std::string cbAuthor="",std::string cbCategory="",std::string cbDescription="");
+               std::string saveComplexBoxBBS();
 
                //Delete the object in the list of controllers with the id given by parameter.
                void deleteObject(int id);
@@ -180,7 +184,7 @@ namespace bbtk
                void saveDiagram(std::string &content);
 
                //Load the diagram
-               void loadDiagram(ifstream &inputStream);
+               void loadDiagram(std::stringstream &inputStream);
 
                //Center the view of the camera in the initial position
                void centerView();
@@ -190,15 +194,25 @@ namespace bbtk
                std::string findANewNameForABox();
                //-------
 
-        void SetComplexBoxName(std::string cbName);
-        void SetPackageName(std::string paName);
-        std::string GetComplexBoxName();
-        std::string GetPackageName();
+        void SetCbName(std::string cbNane);
+        void SetCbPackageName(std::string packagename);
+        void SetAuthor(std::string author);
+        void SetCategory(std::string category);
+        void SetDescription(std::string description);
+
+        std::string GetCbName();
+        std::string GetCbPackageName();
+        std::string GetAuthor();
+        std::string GetCategory();
+        std::string GetDescription();
 
        private:
 
-        std::string                         _complexBoxName;
-        std::string                         _packageName;
+        std::string                         _cbName;
+        std::string                         _cbPackageName;
+        std::string                         _Author;
+        std::string                         _Category;
+        std::string                         _Description;
 
                //wxPanel that uses the manager
                wxGEditorTabPanel                                       *_parent;