//=========================================================================
- void wxGEditorTabPanel::saveDiagram(std::string &content)
+ void wxGEditorTabPanel::saveDiagram(std::string &content, const std::string &path) //DFCH
{
+ 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);
}
{
_sceneManager->SetDescription( description );
}
-
-
-
-
+ //=========================================================================
+ //DFCH
+ void wxGEditorTabPanel::SetFullPath( const std::string& fullpath )
+ {
+ this->_fullPath = fullpath;
+ }
+ //=========================================================================
+ //DFCH
+ void wxGEditorTabPanel::SetFileName( const std::string& filename )
+ {
+ this->_fileName = filename;
+ }
+ //=========================================================================
+ //DFCH
+ std::string wxGEditorTabPanel::GetFullPath( )
+ {
+ return( this->_fullPath );
+ }
+ //=========================================================================
+ //DFCH
+ std::string wxGEditorTabPanel::GetFileName( )
+ {
+ return( this->_fileName );
+ }