]> Creatis software - bbtkGEditor.git/commitdiff
no message
authordavila <>
Tue, 18 May 2010 17:52:28 +0000 (17:52 +0000)
committerdavila <>
Tue, 18 May 2010 17:52:28 +0000 (17:52 +0000)
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx

index f75b97e9c1bf0f2982d3beae4493db49b8634658..f6ff8bc7d5bbff30a2e20bba47e0acca86ab98b2 100644 (file)
@@ -391,7 +391,7 @@ namespace bbtk
 
        void wxGUIEditorGraphicBBS::OnSaveActualBBS(wxCommandEvent& event)
        {
-               wxFileDialog * saveFileDialog = new wxFileDialog(this,wxT("Save  actual BBS"),wxEmptyString,"NewBBS","*.bbs",wxSAVE|wxOVERWRITE_PROMPT);
+               wxFileDialog * saveFileDialog = new wxFileDialog(this,wxT("Save  actual BBS"),wxEmptyString,wxT("NewBBS"),wxT("*.bbs"),wxSAVE|wxOVERWRITE_PROMPT);
                if (saveFileDialog->ShowModal() == wxID_OK)
                {
                        wxString fileName = saveFileDialog->GetPath();
@@ -427,7 +427,7 @@ namespace bbtk
 
                if(!cbName.empty())
                {       
-                       wxFileDialog * saveFileDialog = new wxFileDialog(this,wxT("Save Complex Box BBS"),wxEmptyString,cbName,"*.bbs",wxSAVE|wxOVERWRITE_PROMPT);
+                       wxFileDialog * saveFileDialog = new wxFileDialog( this , _T("Save Complex Box BBS") ,_T(""), wxString( cbName.c_str(), wxConvUTF8),_T(""), wxSAVE | wxOVERWRITE_PROMPT);
                        if (saveFileDialog->ShowModal() == wxID_OK)
                        {
                                wxString fileName = saveFileDialog->GetPath();
@@ -573,7 +573,7 @@ namespace bbtk
                        wxString fileName = nameDialog->GetValue();
                        if(!fileName.IsEmpty())
                        {
-                               std::string portName=fileName;
+                               std::string portName=(const char*) (fileName.mb_str());
                                _tabsMgr->addActualDiagramComplexInputPort(portName);
                        }
                }               
@@ -589,7 +589,7 @@ namespace bbtk
                        wxString fileName = nameDialog->GetValue();
                        if(!fileName.IsEmpty())
                        {
-                               std::string portName=fileName;
+                               std::string portName=(const char*) (fileName.mb_str());
                                _tabsMgr->addActualDiagramComplexOutputPort(portName);
                        }
                }