]> Creatis software - bbtkGEditor.git/commitdiff
Actual Version : It is possible to define, to create and to save a complex box ....
authorcorredor <>
Tue, 18 May 2010 09:41:36 +0000 (09:41 +0000)
committercorredor <>
Tue, 18 May 2010 09:41:36 +0000 (09:41 +0000)
lib/EditorGraphicBBS/bbsKernelEditorGraphic/GlobalConstants.h
lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.cxx
lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.h
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.h

index 9db8bf006af3dd31a1f110e0ed356c2f8d20c7c5..8aa719542ee0b36f3619a466fa363ebaeaa5a6af 100644 (file)
@@ -153,7 +153,7 @@ namespace bbtk
 
        // Id's
        const int ID_NEW                                                =       1000;
-       const int ID_SAVE                                               =       1001;
+       const int ID_SAVE_AS_DIAGRAM                    =       1001;
        const int ID_OPEN                                               =       1002;
        const int ID_RUN                                                =       1003;
        const int ID_DELETEALL                                  =       1004;
@@ -161,8 +161,10 @@ namespace bbtk
        const int ID_BTNCOMPLEXBOX                              =       1006;
        const int ID_ADDCOMPLEXBOXINPUT                 =       1007;
        const int ID_ADDCOMPLEXBOXOUTPUT                =       1008;
+       const int ID_SAVE_AS_BBS                                =       1009;
+       const int ID_SAVE_AS_COMPLEXBOX                 =       1010;
 
-       const int wxID_NOTEBOOK                                 =       1010;
+       const int wxID_NOTEBOOK                                 =       1012;
 }
 // namespace bbtk
 #endif
index 9b2dc954d20f4527528b5f693f07d63c9d03a18f..784c3f667f9fd4aa1d301e716449145e37ead717 100644 (file)
@@ -916,7 +916,7 @@ namespace bbtk
 
        //=========================================================================
 
-       std::string wxVtkSceneManager::getDiagramScript()
+       std::string wxVtkSceneManager::getDiagramBBS()
        {
                bool existsExec=false;
 
@@ -1051,6 +1051,201 @@ namespace bbtk
 
        //=========================================================================
 
+       std::string wxVtkSceneManager::saveComplexBoxBBS(std::string cbName,std::string cbAuthor,std::string cbCategory,std::string cbDescription)
+       {
+
+               std::vector<std::string> packages;
+               std::vector<int> boxes;
+               std::vector<int> connections;
+               std::vector<int> execBoxes;
+
+               std::map<int, GObjectController*>::iterator it;
+
+               for(it = _controllers.begin(); it != _controllers.end(); ++it)
+               {
+                       GObjectController *desc = it->second;
+                       int type = desc->getGObjectType();
+
+                       if(type==GBLACKBOX)
+                       {
+                               GBlackBoxModel *mod = (GBlackBoxModel*)desc->getModel();
+                               
+                               std::string pkg = mod->getBBTKPackage();
+                               bool existsPkg = false;
+                               for(int t = 0;t<packages.size() && existsPkg == false;t++)
+                               {
+                                       if(packages[t]==pkg)
+                                       {
+                                               existsPkg=true;
+                                       }
+                               }
+                               if(!existsPkg)
+                               {
+                                       packages.push_back(pkg);
+                               }
+
+
+                               boxes.push_back(it->first);
+                               if(mod->isExecutable())
+                               {
+                                       execBoxes.push_back(it->first);
+                               }
+                       }
+                       else if(type==GCONNECTOR)
+                       {
+                               connections.push_back(it->first);
+                       }
+               }
+
+               std::string script = "";
+               int i;
+               for(i = 0; i<packages.size();i++)
+               {
+                       script+="include ";
+                       script+=packages[i];
+                       script+="\n";
+               }
+
+               script+="include std\n";
+
+               // Definition of a complex box
+               script+="define ";
+               script+=cbName;
+               script+="\n";
+
+               script+="author \" ";
+               script+=cbAuthor;
+               script+="\"\n";
+
+               script+="description \" ";
+               script+=cbDescription;
+               script+="\"\n";
+
+               // Create boxes
+               for(i = 0; i<boxes.size();i++)
+               {
+                       script+="new ";
+                       int id = boxes[i];
+                       GObjectController *control = _controllers[id];
+                       GBlackBoxModel *model = (GBlackBoxModel*)control->getModel();
+
+                       script+=model->getBBTKType();
+                       script+=" ";
+                       script+=model->getBBTKName();
+                       script+="\n";
+
+                               std::vector<GPortModel*> inputs = model->getInputPorts();
+                               for(int j = 0; j<inputs.size();j++)
+                               {
+                                       GPortModel* inputPort = inputs[j];
+                                       if(inputPort->isValueSet())
+                                       {
+                                               script+="set ";
+                                               script+=model->getBBTKName();
+                                               script+=".";
+                                               script+=inputPort->getBBTKName();
+                                               script+=" ";
+                                               script+=inputPort->getValue();
+                                               script+="\n";
+                                       }
+                               }
+
+                       }
+
+                       // Create connections in the script. If the connection is made with a complex port, it is created the input or output
+
+                       std::string complexInputs="";
+                       std::string complexOutputs="";
+
+                       for(i = 0; i<connections.size();i++)
+                       {
+                               int id = connections[i];
+                               GObjectController *control = _controllers[id];
+                               GConnectorModel *model = (GConnectorModel*)control->getModel();
+
+                               //Connection info
+                               GPortModel *start = model->getStartPort();
+                               GBoxModel *startBox =start->getParentBox();
+
+                               GPortModel *end = model->getEndPort();
+                               GBoxModel *endBox =end->getParentBox();
+
+                               if(startBox->getGObjectType()==GCOMPLEXINPUTPORT)
+                               {
+                                       complexInputs+="input ";
+                                       complexInputs+=startBox->getBBTKName();
+
+                                       complexInputs+=" ";
+                                       complexInputs+=endBox->getBBTKName();
+                                       complexInputs+=".";
+                                       complexInputs+=end->getBBTKName();
+
+                                       complexInputs+=" ";
+                                       complexInputs+="\" \"";
+
+                                       complexInputs+="\n";
+                               }
+                               else if(endBox->getGObjectType()==GCOMPLEXOUTPUTPORT)
+                               {
+                                       complexOutputs+="output ";
+                                       complexOutputs+=endBox->getBBTKName();
+
+                                       complexOutputs+=" ";
+                                       complexOutputs+=startBox->getBBTKName();
+                                       complexOutputs+=".";
+                                       complexOutputs+=start->getBBTKName();
+
+                                       complexOutputs+=" ";
+                                       complexOutputs+="\" \"";
+
+                                       complexOutputs+="\n";
+                               }
+                               else
+                               {
+                                       script+="connect ";
+                                       script+=startBox->getBBTKName();
+                                       script+=".";
+                                       script+=start->getBBTKName();
+
+                                       script+=" ";
+
+                                       //End Connection info
+                                       script+=endBox->getBBTKName();
+                                       script+=".";
+                                       script+=end->getBBTKName();
+
+                                       script+="\n";
+                               }
+                       }
+
+                       for(i = 0; i<execBoxes.size();i++)
+                       {
+                               script+="exec ";
+                               int id = execBoxes[i];
+                               GObjectController *control = _controllers[id];
+                               GBlackBoxModel *model = (GBlackBoxModel*)control->getModel();
+
+                               script+=model->getBBTKName();
+                               script+="\n";
+                       }
+
+                       script+="\n";
+                       script+="# Complex input ports\n";
+                       script+=complexInputs;
+
+                       script+="\n";
+                       script+="# Complex output ports\n";
+                       script+=complexOutputs;
+
+                       script+="\n";
+                       script+="endefine";
+                       script+="\n";           
+
+               return script;
+       }
+
+       //=========================================================================
+
        void wxVtkSceneManager::deleteAllBoxes()
        {               
                std::map<int, GObjectController*>::iterator it;
index 118d136d2a9fec85a709ff4ab993e4ae252f5310..5aee359fe90f3f717c14bec88771aae1b42d6163 100644 (file)
@@ -118,7 +118,8 @@ namespace bbtk
 
                void displayBlackBoxInfo(std::string packageName, std::string boxName);
                void updateStatusBar(std::string textStatus);
-               std::string getDiagramScript();
+               std::string getDiagramBBS();
+               std::string saveComplexBoxBBS(std::string cbName,std::string cbAuthor="",std::string cbCategory="",std::string cbDescription="");
                void deleteObject(int id);
                void deleteAllBoxes();
                void saveDiagram(std::string &content);
index 2d4ea9e632ea86e52cc924d02f51183c344a716d..f75b97e9c1bf0f2982d3beae4493db49b8634658 100644 (file)
@@ -73,6 +73,7 @@ namespace bbtk
                _frameAUIMgr->Update();
                _actualPkgBrowserBoxName="";
                _actualPkgBrowserPkgName="";
+               refreshGUIControls();
        }
 
 
@@ -100,7 +101,7 @@ namespace bbtk
                //Adds a tool btn to the toolbar
                toolbar->AddTool(ID_NEW,_T("New"),bmp_new, wxNullBitmap, wxITEM_NORMAL,_T("New tab"), _T("Create a new panel tab"));
                toolbar->AddTool(ID_OPEN,_T("Open diagram"),bmp_open, wxNullBitmap, wxITEM_NORMAL,_T("Open a diagram"), _T("Open a diagram"));
-               toolbar->AddTool(ID_SAVE,_T("Save diagram"),bmp_save, wxNullBitmap, wxITEM_NORMAL,_T("Saves actual diagram"), _T("Saves actual diagram"));
+               toolbar->AddTool(ID_SAVE_AS_DIAGRAM,_T("Save diagram"),bmp_save, wxNullBitmap, wxITEM_NORMAL,_T("Saves actual diagram"), _T("Saves actual diagram"));
                toolbar->AddTool(ID_RUN,_T("Run"),bmp_run, wxNullBitmap, wxITEM_NORMAL,_T("Execute actual diagram"), _T("Execute actual diagram"));
                toolbar->AddTool(ID_DELETEALL,_T("Delete all"),bmp_delete, wxNullBitmap, wxITEM_NORMAL,_T("Delete all boxes"), _T("Delete all boxes"));
                toolbar->AddTool(ID_CENTERVIEW,_T("Center view"),bmp_centerview, wxNullBitmap, wxITEM_NORMAL,_T("Center view"), _T("Center view"));
@@ -119,7 +120,7 @@ namespace bbtk
                // connect command event handlers
                Connect(ID_NEW,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnCreateNewTab));
                Connect(ID_OPEN,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnOpenDiagram));
-               Connect(ID_SAVE,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnSaveActualDiagram));
+               Connect(ID_SAVE_AS_DIAGRAM,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnSaveActualDiagram));
                Connect(ID_RUN,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnExecuteActualDiagram));
                Connect(ID_DELETEALL,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnDeleteAllBoxesActualDiagram));
                Connect(ID_CENTERVIEW,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnCenterViewActualDiagram));
@@ -141,22 +142,30 @@ namespace bbtk
        void wxGUIEditorGraphicBBS::initMenu()
        {
                // create a menu bar
-               wxMenu *fileMenu = new wxMenu;
-
-               // the "About" item should be in the help menu
-               wxMenu *helpMenu = new wxMenu;
-               helpMenu->Append(wxID_ABOUT, _T("&About..."), _T("About"));
+               wxMenu *fileMenu = new wxMenu();
+               fileMenu->Append(ID_NEW, _T("New diagram"), _T("New"));
+               fileMenu->Append(ID_SAVE_AS_DIAGRAM, _T("Save diagram"), _T("Save diagram"));
+               fileMenu->Append(ID_SAVE_AS_BBS, _T("Save BBS"), _T("Save BBS"));
+               fileMenu->Append(ID_SAVE_AS_COMPLEXBOX, _T("Save complex box"), _T("Save complex box"));
                fileMenu->Append(wxID_EXIT, _T("E&xit"), _T("Exit"));
 
+               Connect(ID_NEW,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnCreateNewTab));
+               Connect(ID_SAVE_AS_DIAGRAM,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnSaveActualDiagram));
+               Connect(ID_SAVE_AS_BBS,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnSaveActualBBS));
+               Connect(ID_SAVE_AS_COMPLEXBOX,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnSaveActualComplexBox));
                Connect(wxID_EXIT,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnExit));
 
+               // the "About" item should be in the help menu
+               wxMenu *helpMenu = new wxMenu;
+               helpMenu->Append(wxID_ABOUT, _T("&About..."), _T("About"));             
+
                // now append the freshly created menu to the menu bar...
                wxMenuBar *menuBar = new wxMenuBar();
                menuBar->Append(fileMenu, _T("&File"));
                menuBar->Append(helpMenu, _T("&Help"));
 
                // attach this menu bar to the frame
-               SetMenuBar(menuBar);
+               SetMenuBar(menuBar);            
        }
 
        //=========================================================================
@@ -362,25 +371,87 @@ namespace bbtk
        void wxGUIEditorGraphicBBS::OnCreateNewTab(wxCommandEvent& event)
        {
                _tabsMgr->addNewTab();  
-               refreshToolbar();
+               refreshGUIControls();
        }
 
        //=========================================================================
 
        void wxGUIEditorGraphicBBS::OnExecuteActualDiagram(wxCommandEvent& event)
        {
-               std::string script = _tabsMgr->getActualDiagramScript();
+               std::string script = _tabsMgr->getActualDiagramBBS();
                cout<<"RaC wxGUIEditorGraphicBBS::executeActualDiagram SCRIPT"<<endl;
                cout<<script<<endl;
 
                executeScript(script);          
        }
 
+       //=========================================================================
+       // HANDLERS 
+       //=========================================================================
+
+       void wxGUIEditorGraphicBBS::OnSaveActualBBS(wxCommandEvent& event)
+       {
+               wxFileDialog * saveFileDialog = new wxFileDialog(this,wxT("Save  actual BBS"),wxEmptyString,"NewBBS","*.bbs",wxSAVE|wxOVERWRITE_PROMPT);
+               if (saveFileDialog->ShowModal() == wxID_OK)
+               {
+                       wxString fileName = saveFileDialog->GetPath();
+                       
+                       ofstream file;
+                       file.open(fileName.c_str());
+
+                       std::string content="";
+                       
+                       // writing file header
+                       content += "# ----------------------------------\n";
+                       content += "# - BBTKGEditor v 1.0 BBS BlackBox Script\n";
+                       content += "# ----------------------------------\n";
+                       content += "\n";
+                       content += _tabsMgr->getActualDiagramBBS();
+                       file << content;
+                       file.close();
+               }
+
+       }
+
+       //=========================================================================
+
+       void wxGUIEditorGraphicBBS::OnSaveActualComplexBox(wxCommandEvent& event)
+       {
+               wxTextEntryDialog *nameDialog = new wxTextEntryDialog(this,wxT("Name of complex box"));
+               std::string cbName="";
+               if (nameDialog->ShowModal() == wxID_OK)
+               {
+                       wxString fileName = nameDialog->GetValue();
+                       cbName=fileName;
+               }               
+
+               if(!cbName.empty())
+               {       
+                       wxFileDialog * saveFileDialog = new wxFileDialog(this,wxT("Save Complex Box BBS"),wxEmptyString,cbName,"*.bbs",wxSAVE|wxOVERWRITE_PROMPT);
+                       if (saveFileDialog->ShowModal() == wxID_OK)
+                       {
+                               wxString fileName = saveFileDialog->GetPath();
+                               
+                               ofstream file;
+                               file.open(fileName.c_str());
+
+                               std::string content="";
+                               
+                               // writing file header
+                               content += "# ----------------------------------\n";
+                               content += "# - BBTKGEditor v 1.1 BBS BlackBox Script (Complex Box)\n";
+                               content += "# ----------------------------------\n";
+                               content += "\n";
+                               content += _tabsMgr->getActualComplexBoxBBS(cbName);
+                               file << content;
+                               file.close();
+                       }
+               }
+
+       }
+
        //=========================================================================
 
-       /*****************************************************/
-       /* HANDLERS 
-       /*****************************************************/
        void wxGUIEditorGraphicBBS::OnSaveActualDiagram(wxCommandEvent& event)
        {
                wxFileDialog * saveFileDialog = new wxFileDialog(this,wxT("Save  actual diagram"),wxEmptyString,"NewDiagram","*.bbd",wxSAVE|wxOVERWRITE_PROMPT);
@@ -412,29 +483,28 @@ namespace bbtk
 
        //=========================================================================
 
-       void wxGUIEditorGraphicBBS::refreshToolbar()
+       void wxGUIEditorGraphicBBS::refreshGUIControls()
        {
                wxToolBar* toolbar = GetToolBar();
                if(_tabsMgr->isActualDiagramComplexBox())
                {
                        toolbar->ToggleTool(ID_BTNCOMPLEXBOX,true);
-               }
-               else
-               {
-                       toolbar->ToggleTool(ID_BTNCOMPLEXBOX,false);
-               }
-
-               bool temp = toolbar->GetToolState(ID_BTNCOMPLEXBOX);
-               if(temp)
-               {
                        toolbar->EnableTool(ID_ADDCOMPLEXBOXINPUT,true);
                        toolbar->EnableTool(ID_ADDCOMPLEXBOXOUTPUT,true);
+                       
+                       GetMenuBar()->GetMenu(0)->Enable(ID_SAVE_AS_COMPLEXBOX,true);
+                       GetMenuBar()->GetMenu(0)->Enable(ID_SAVE_AS_BBS,false);
                }
                else
                {
+                       toolbar->ToggleTool(ID_BTNCOMPLEXBOX,false);
                        toolbar->EnableTool(ID_ADDCOMPLEXBOXINPUT,false);
                        toolbar->EnableTool(ID_ADDCOMPLEXBOXOUTPUT,false);
+
+                       GetMenuBar()->GetMenu(0)->Enable(ID_SAVE_AS_COMPLEXBOX,false);
+                       GetMenuBar()->GetMenu(0)->Enable(ID_SAVE_AS_BBS,true);
                }
+
        }
 
        //=========================================================================
@@ -472,9 +542,8 @@ namespace bbtk
                        _tabsMgr->loadDiagram(inputStream);
                        
                        inputStream.close();
-                       
-
                }
+               refreshGUIControls();
        }
 
        //=========================================================================
@@ -485,17 +554,13 @@ namespace bbtk
                bool temp = toolbar->GetToolState(ID_BTNCOMPLEXBOX);
                if(temp)
                {
-                       toolbar->EnableTool(ID_ADDCOMPLEXBOXINPUT,true);
-                       toolbar->EnableTool(ID_ADDCOMPLEXBOXOUTPUT,true);
                        _tabsMgr->setActualDiagramComplexBox(true);
                }
                else
                {
-                       toolbar->EnableTool(ID_ADDCOMPLEXBOXINPUT,false);
-                       toolbar->EnableTool(ID_ADDCOMPLEXBOXOUTPUT,false);
                        _tabsMgr->setActualDiagramComplexBox(false);
                }
-               
+               refreshGUIControls();           
        }
 
        //=========================================================================
index c6f65b9d4fd52e01e076ae73461f926eda3db30f..8367ab0b6f782dd7a88f50c33e692f6685387f2e 100644 (file)
@@ -115,11 +115,13 @@ namespace bbtk
                void DoRegeneratePackageDoc(const std::string& pack);   
                void DoRegenerateBoxesLists();
 
-               void refreshToolbar();
+               void refreshGUIControls();
 
                void OnCreateNewTab(wxCommandEvent& event);
                void OnOpenDiagram(wxCommandEvent& event);
                void OnSaveActualDiagram(wxCommandEvent& event);
+               void OnSaveActualBBS(wxCommandEvent& event);
+               void OnSaveActualComplexBox(wxCommandEvent& event);
                void OnExecuteActualDiagram(wxCommandEvent& event);
                void OnDeleteAllBoxesActualDiagram(wxCommandEvent& event);
                void OnCenterViewActualDiagram(wxCommandEvent& event);
index 4e5312e33f192fcd8e49af32df57deffc6a1c57a..682d3d4e4b8602010ae87854847c19bd5481f42b 100644 (file)
@@ -119,9 +119,16 @@ namespace bbtk
 
        //=========================================================================
 
-       std::string wxGEditorTabPanel::getDiagramScript()
+       std::string wxGEditorTabPanel::getDiagramBBS()
        {
-               return _sceneManager->getDiagramScript();
+               return _sceneManager->getDiagramBBS();
+       }
+
+       //=========================================================================
+
+       std::string wxGEditorTabPanel::saveComplexBoxBBS(std::string cbName,std::string cbAuthor,std::string cbCategory,std::string cbDescription)
+       {
+               return _sceneManager->saveComplexBoxBBS(cbName,cbAuthor,cbCategory,cbDescription);
        }
 
        //=========================================================================
index 4322f6a900f081b2282f19ee729a3944039b24f1..05eab99ef2ece9f50eaeae1f204ff5953fb1a8db 100644 (file)
@@ -81,7 +81,8 @@ namespace bbtk
 
                void displayBlackBoxInfo(std::string packageName, std::string boxName);
                void updateStatusBar(std::string textStatus);
-               std::string getDiagramScript();
+               std::string getDiagramBBS();
+               std::string saveComplexBoxBBS(std::string cbName,std::string cbAuthor="",std::string cbCategory="",std::string cbDescription="");
                void editBlackBox(GBlackBoxModel *bbmodel);
                void editDiagramParameters(wxVtkSceneManager* scene);
                void deleteAllBoxes();
index 2c5721dbe10fc2298037817ee655a16495625ccf..3ac92749a487bc03d12d23ae78f78fb2cfbba881 100644 (file)
@@ -95,9 +95,16 @@ namespace bbtk
 
        //=========================================================================
 
-       std::string wxTabPanelsManager::getActualDiagramScript()
+       std::string wxTabPanelsManager::getActualDiagramBBS()
        {
-               return _actual->getDiagramScript();
+               return _actual->getDiagramBBS();
+       }
+
+       //=========================================================================
+
+       std::string wxTabPanelsManager::getActualComplexBoxBBS(std::string cbName,std::string cbAuthor,std::string cbCategory,std::string cbDescription)
+       {
+               return _actual->saveComplexBoxBBS(cbName,cbAuthor,cbCategory,cbDescription);
        }
 
        //=========================================================================
@@ -178,7 +185,7 @@ namespace bbtk
                wxGEditorTabPanel* tab =(wxGEditorTabPanel*)_notebook->GetPage(index);          
                int id = tab->getPanelId();
                _actual = _panels[id];
-               _parent->refreshToolbar();
+               _parent->refreshGUIControls();
        }
 
        //=========================================================================
index f3dbfadf47dad424f23af3c187b01d0b1e26d14b..7f1d60e543f606586d09b466d30a304798d23707 100644 (file)
@@ -74,7 +74,8 @@ namespace bbtk
 
                void displayBlackBoxInfo(std::string packageName, std::string boxName);
                void updateStatusBar(std::string textStatus);
-               std::string getActualDiagramScript();
+               std::string getActualDiagramBBS();
+               std::string getActualComplexBoxBBS(std::string cbName,std::string cbAuthor="",std::string cbCategory="",std::string cbDescription="");
                void editBlackBox(GBlackBoxModel *bbmodel);
                void editDiagramParameters(wxVtkSceneManager* scene);
                void deleteAllBoxesActualDiagram();