]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx
This commit was manufactured by cvs2svn to create tag 'CREATOOLS_2-0-3'.
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / bbtkwxGUIEditorGraphicBBS.cxx
index 4a9ec05c1bb0582fdb4703ab5792fc660bc213ae..f3f6a04d7e6e8624a984ff3240e38ea3541f9940 100644 (file)
@@ -479,25 +479,15 @@ namespace bbtk
 
        void wxGUIEditorGraphicBBS::SaveActualComplexBox(std::string filename)
        {
-               wxTextEntryDialog *cbNameDialog = new wxTextEntryDialog(this,wxT("Complex Box name"));
-               cbNameDialog->SetValue(_T("BBBBoxName"));
+               wxTextEntryDialog *nameDialog = new wxTextEntryDialog(this,wxT("Name of complex box"));
                std::string cbName="";
-               if (cbNameDialog->ShowModal() == wxID_OK)
+               if (nameDialog->ShowModal() == wxID_OK)
                {
-                       wxString complexboxname = cbNameDialog->GetValue();
+                       wxString complexboxname = nameDialog->GetValue();
                        cbName=(const char*) (complexboxname.mb_str());
                }
 
-               wxTextEntryDialog *paNameDialog = new wxTextEntryDialog(this,wxT("Package name"));
-               paNameDialog->SetValue(_T("PPPPackageName"));
-               std::string paName="";
-               if (paNameDialog->ShowModal() == wxID_OK)
-               {
-                       wxString packagename = paNameDialog->GetValue();
-                       paName=(const char*) (packagename.mb_str());
-               }
-
-               if( (!cbName.empty()) || (!paName.empty()) )
+               if(!cbName.empty())
                {
 
                                ofstream file;
@@ -513,7 +503,7 @@ namespace bbtk
                 content += "\n";
                                content += "# ----------------------------------\n";
                                content += "\n";
-                               content += _tabsMgr->getActualComplexBoxBBS(cbName,paName);
+                               content += _tabsMgr->getActualComplexBoxBBS(cbName);
                                file << content;
                                file.close();
                }
@@ -567,8 +557,7 @@ namespace bbtk
                {
                        wxString fileName       = saveFileDialog->GetPath();
                        std::string filename    = (const char*) (fileName.mb_str());
-            std::string filenamebbs = filename;
-            filenamebbs[filename.length()-1]='s';
+            std::string filenamebbs = filename+"s";
 
             SaveActualDiagram( filename );
             if (_tabsMgr->isActualDiagramComplexBox()==false)