--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>bbtkGEditor</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
content += "# ----------------------------------\n";
content += "\n";
content += "APP_START\n";
- _tabsMgr->saveActualDiagram(content);
+ _tabsMgr->saveActualDiagram(content, filename); //DFCH
content += "APP_END\n";
file << content;
file.close();
inputStream.open( fName.c_str() );
_tabsMgr->addNewTab( openFileDialog->GetFilename() );
- _tabsMgr->loadDiagram(inputStream);
+ _tabsMgr->loadDiagram(inputStream, fName);
inputStream.close();
}
//=========================================================================
- void wxGEditorTabPanel::saveDiagram(std::string &content)
+ void wxGEditorTabPanel::saveDiagram(std::string &content, const std::string &path) //DFCH
{
- this->SetFullPath(content);
- std::cout<<"wxGEditorTabPanel: " << content <<std::endl;
- //std::cout<<"wxGEditorTabPanel Real: " << this->_fullPath <<std::endl;
+ this->SetFullPath(path);
_sceneManager->saveDiagram(content);
}
//=========================================================================
- void wxGEditorTabPanel::loadDiagram(ifstream &inputStream)
+ void wxGEditorTabPanel::loadDiagram(ifstream &inputStream, const std::string &path) //DFCH
{
+ this->SetFullPath(path);
_sceneManager->loadDiagram(inputStream);
}
void editBlackBox(GBlackBoxModel *bbmodel);
// Save diagram as BBG
- void saveDiagram(std::string &content);
+ void saveDiagram(std::string &content, const std::string &path); //DFCH
// Load BBG diagram
- void loadDiagram(ifstream &inputStream);
+ void loadDiagram(ifstream &inputStream, const std::string &path); //DFCH
// Add a new complex input object to the scene
void addComplexInputPort(std::string portName);
//=========================================================================
- void wxTabPanelsManager::saveActualDiagram(std::string &content)
+ void wxTabPanelsManager::saveActualDiagram(std::string &content, const std::string &path) //DFCH
{
- _actual->saveDiagram(content);
+ _actual->saveDiagram(content, path);
}
//=========================================================================
- void wxTabPanelsManager::loadDiagram(ifstream &inputStream)
+ void wxTabPanelsManager::loadDiagram(ifstream &inputStream, const std::string &path) //DFCH
{
- _actual->loadDiagram(inputStream);
+ _actual->loadDiagram(inputStream, path);
}
//=========================================================================
void editBlackBox(GBlackBoxModel *bbmodel);
void deleteAllBoxesActualDiagram();
void centerViewActualDiagram();
- void saveActualDiagram(std::string &content);
- void loadDiagram(ifstream &inputStream);
+ void saveActualDiagram(std::string &content, const std::string &path); //DFCH
+ void loadDiagram(ifstream &inputStream, const std::string &path); //DFCH
bool isActualDiagramComplexBox();
void setActualDiagramComplexBox(bool val);
void addActualDiagramComplexInputPort(std::string portName);