SaveActualDiagram(pathfilename);
SaveActualComplexBox(pathfilenamebbs);
} //if isActualDiagramComplexBox
- std::string cmdPy("source ~/.bashrc; bbs2 "+pathfilenamebbs+" py" );
+ std::string pathfilenamepy = pathfilenamebbs;
+ pathfilenamepy.replace( pathfilenamepy.length()-3, 3 , "py");
+ std::string cmdPy("source ~/.bashrc; bbs2 "+pathfilenamebbs+" "+pathfilenamepy);
printf("EED wxGUIEditorGraphicBBS::OnSaveActualDiagram cmd:%s\n", cmdPy.c_str() );
system( cmdPy.c_str() );
- std::string cmdjs("source ~/.bashrc; bbs2 "+pathfilenamebbs+" js" );
+ std::string pathfilenamejs = pathfilenamebbs;
+ pathfilenamejs.replace( pathfilenamejs.length()-3, 3 , "js");
+ std::string cmdjs("source ~/.bashrc; bbs2 "+pathfilenamebbs+" "+pathfilenamejs);
printf("EED wxGUIEditorGraphicBBS::OnSaveActualDiagram cmd:%s\n", cmdjs.c_str() );
system( cmdjs.c_str() );
}
//=========================================================================
std::string wxVtkSceneManager::saveComplexBoxBBS() {
- std::cout<<"wxVtkSceneManager::saveComplexBoxBBS"<<std::endl;
std::vector<std::string> packages;
std::vector<int> boxes;
std::vector<int> connections;
content += GetCbPackageName();
content += "\n";
- /* CHANGE TO THE VERSION 1.4 RaC2012 2nd HackFest
- * External inputs are possible for applications and complex boxes
- //Print info complex input ports
- std::vector<int> inputs = getComplexInputPorts();
- int insize = inputs.size();
- content += "COMPLEXINPUTS:";
- sprintf(buffer, "%d", insize);
- content += buffer;
- content += "\n";
+ /* CHANGE TO THE VERSION 1.4 RaC2012 2nd HackFest
+ * External inputs are possible for applications and complex boxes
+ //Print info complex input ports
+ std::vector<int> inputs = getComplexInputPorts();
+ int insize = inputs.size();
+ content += "COMPLEXINPUTS:";
+ sprintf(buffer, "%d", insize);
+ content += buffer;
+ content += "\n";
+
+ for (int i = 0; i < insize; i++) {
+ int id = inputs[i];
+ GObjectController *cont = _controllers[id];
+ cont->getModel()->save(content);
+ }
+ */
+
+ //Print info complex output ports
+ std::vector<int> outputs = getComplexOutputPorts();
+ int outsize = outputs.size();
+ content += "COMPLEXOUTPUTS:";
+ sprintf(buffer, "%d", outsize);
+ content += buffer;
+ content += "\n";
+
+ for (int i = 0; i < outsize; i++) {
+ int id = outputs[i];
+ GObjectController *cont = _controllers[id];
+ cont->getModel()->save(content);
+ }
+
- for (int i = 0; i < insize; i++) {
- int id = inputs[i];
- GObjectController *cont = _controllers[id];
- cont->getModel()->save(content);
- }
- */
-
- //Print info complex output ports
- std::vector<int> outputs = getComplexOutputPorts();
- int outsize = outputs.size();
- content += "COMPLEXOUTPUTS:";
- sprintf(buffer, "%d", outsize);
- content += buffer;
- content += "\n";
- for (int i = 0; i < outsize; i++) {
- int id = outputs[i];
- GObjectController *cont = _controllers[id];
- cont->getModel()->save(content);
- }
} // _isComplexBox
else {
content += "FALSE\n";
}
+
// CHANGE TO THE VERSION 1.4 RaC2012 2nd HackFest
// External inputs are possible for applications and complex boxes
std::vector<int> inputs = getComplexInputPorts();