X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fctsim.cpp;h=7053981728305fe5e96dbc6e354efe34840b4c7a;hp=756f6205be1abe990193b2beed6170ebe85723b6;hb=ed6d29bce60de67791eaab35833c32c86c481af3;hpb=dcc87ab716636e2464e104e6d79d031b2ec6b925 diff --git a/src/ctsim.cpp b/src/ctsim.cpp index 756f620..7053981 100644 --- a/src/ctsim.cpp +++ b/src/ctsim.cpp @@ -193,9 +193,9 @@ CTSimApp::OnInit() m_pLogDoc = newTextDoc(); if (m_pLogDoc) { m_pLog = m_pLogDoc->getTextCtrl(); - m_pLogDoc->SetDocumentName("Log.txt"); - m_pLogDoc->SetFilename("Log.txt"); - m_pLogDoc->getView()->getFrame()->SetTitle("Log"); + m_pLogDoc->SetDocumentName(_T("Log.txt")); + m_pLogDoc->SetFilename(_T("Log.txt")); + m_pLogDoc->getView()->getFrame()->SetTitle(_T("Log")); int xSize, ySize; m_pFrame->GetClientSize(&xSize, &ySize); int yLogSize = ySize / 4; @@ -416,7 +416,7 @@ END_EVENT_TABLE() #if CTSIM_MDI MainFrame::MainFrame(wxDocManager *manager, wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const long type) -: wxDocMDIParentFrame(manager, NULL, id, title, pos, size, type, "MainFrame") +: wxDocMDIParentFrame(manager, NULL, id, title, pos, size, type, _T("MainFrame")) #else MainFrame::MainFrame(wxDocManager *manager, wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const long type) : wxDocParentFrame(manager, frame, id, title, pos, size, type, _T("MainFrame")) @@ -1158,7 +1158,7 @@ CTSimApp::newGraph3dDoc() { wxString fname; m_docManager->MakeDefaultName(fname); - fname += _T(".3dif"); + fname += _T(".g3d"); Graph3dFileDocument* newDoc = dynamic_cast(m_pDocTemplGraph3d->CreateDocument (fname)); if (newDoc) { newDoc->SetDocumentName (m_pDocTemplGraph3d->GetDocumentName());