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();
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();
wxString fileName = nameDialog->GetValue();
if(!fileName.IsEmpty())
{
- std::string portName=fileName;
+ std::string portName=(const char*) (fileName.mb_str());
_tabsMgr->addActualDiagramComplexInputPort(portName);
}
}
wxString fileName = nameDialog->GetValue();
if(!fileName.IsEmpty())
{
- std::string portName=fileName;
+ std::string portName=(const char*) (fileName.mb_str());
_tabsMgr->addActualDiagramComplexOutputPort(portName);
}
}