From 73965da90e69db3b2c2aeab92fdab161b7291efe Mon Sep 17 00:00:00 2001 From: Kevin Rosenberg Date: Wed, 5 Aug 2009 17:38:06 -0600 Subject: [PATCH] Fix few more c-string to unicode strings --- src/views.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views.cpp b/src/views.cpp index b9c52b1..f789831 100644 --- a/src/views.cpp +++ b/src/views.cpp @@ -1599,7 +1599,7 @@ ImageFileView::OnPlotFFTRow (wxCommandEvent& event) } else { PlotFile& rPlotFile = pPlotDoc->getPlotFile(); std::ostringstream os; - os << "Row " << yCursor; + os << "Row " << yCursor << ": "; std::string title("title "); title += os.str(); rPlotFile.addEzsetCommand (title.c_str()); @@ -1624,7 +1624,7 @@ ImageFileView::OnPlotFFTRow (wxCommandEvent& event) rPlotFile.addColumn (3, pYMag); for (unsigned int iL = 0; iL < rIF.nLabels(); iL++) rPlotFile.addDescription (rIF.labelGet(iL).getLabelString().c_str()); - os << " FFT Plot of " << dynamic_cast(GetDocument()->GetFirstView()->GetFrame())->GetTitle().c_str(); + os << " FFT Plot of " << wxConvUTF8.cWX2MB(dynamic_cast(GetDocument()->GetFirstView()->GetFrame())->GetTitle().c_str()); *theApp->getLog() << wxConvUTF8.cMB2WX(os.str().c_str()) << _T("\n"); rPlotFile.addDescription (os.str().c_str()); } @@ -1699,7 +1699,7 @@ ImageFileView::OnPlotFFTCol (wxCommandEvent& event) } else { PlotFile& rPlotFile = pPlotDoc->getPlotFile(); std::ostringstream os; - os << "Column " << xCursor; + os << "Column " << xCursor << ": "; std::string title("title "); title += os.str(); rPlotFile.addEzsetCommand (title.c_str()); @@ -1724,7 +1724,7 @@ ImageFileView::OnPlotFFTCol (wxCommandEvent& event) rPlotFile.addColumn (3, pYMag); for (unsigned int iL = 0; iL < rIF.nLabels(); iL++) rPlotFile.addDescription (rIF.labelGet(iL).getLabelString().c_str()); - os << " FFT Plot of " << dynamic_cast(GetDocument()->GetFirstView()->GetFrame())->GetTitle().c_str(); + os << " FFT Plot of " << wxConvUTF8.cWX2MB(dynamic_cast(GetDocument()->GetFirstView()->GetFrame())->GetTitle().c_str()); *theApp->getLog() << wxConvUTF8.cMB2WX(os.str().c_str()) << _T("\n"); rPlotFile.addDescription (os.str().c_str()); } @@ -1786,7 +1786,7 @@ ImageFileView::OnCompareCol (wxCommandEvent& event) } else { PlotFile& rPlotFile = pPlotDoc->getPlotFile(); std::ostringstream os; - os << "Column " << xCursor << " Comparison"; + os << "Column " << xCursor << ": Comparison"; std::string title("title "); title += os.str(); rPlotFile.addEzsetCommand (title.c_str()); @@ -1808,7 +1808,7 @@ ImageFileView::OnCompareCol (wxCommandEvent& event) unsigned int iL; for (iL = 0; iL < rIF.nLabels(); iL++) { std::ostringstream os; - os << dynamic_cast(GetDocument()->GetFirstView()->GetFrame())->GetTitle().mb_str(wxConvUTF8); + os << dynamic_cast(GetDocument()->GetFirstView()->GetFrame())->GetTitle().c_str(); os << ": " << rIF.labelGet(iL).getLabelString(); rPlotFile.addDescription (os.str().c_str()); } @@ -1819,8 +1819,8 @@ ImageFileView::OnCompareCol (wxCommandEvent& event) os << rCompareIF.labelGet(iL).getLabelString(); rPlotFile.addDescription (os.str().c_str()); } - os << " Between " << dynamic_cast(GetDocument()->GetFirstView()->GetFrame())->GetTitle().c_str() << " and " - << dynamic_cast(pCompareDoc->GetFirstView()->GetFrame())->GetTitle().c_str(); + os << " between " << dynamic_cast(GetDocument()->GetFirstView()->GetFrame())->GetTitle().mb_str(wxConvUTF8) << " and " + << dynamic_cast(pCompareDoc->GetFirstView()->GetFrame())->GetTitle().mb_str(wxConvUTF8); *theApp->getLog() << wxConvUTF8.cMB2WX(os.str().c_str()) << _T("\n"); rPlotFile.addDescription (os.str().c_str()); } @@ -1880,7 +1880,7 @@ ImageFileView::OnCompareRow (wxCommandEvent& event) } else { PlotFile& rPlotFile = pPlotDoc->getPlotFile(); std::ostringstream os; - os << "Row " << yCursor << " Comparison"; + os << "Row " << yCursor << ": Comparison"; std::string title("title "); title += os.str(); rPlotFile.addEzsetCommand (title.c_str()); @@ -1912,8 +1912,8 @@ ImageFileView::OnCompareRow (wxCommandEvent& event) << rCompareIF.labelGet(iL).getLabelString(); rPlotFile.addDescription (os.str().c_str()); } - os << " Between " << dynamic_cast(GetDocument()->GetFirstView()->GetFrame())->GetTitle().mb_str(wxConvUTF8) << " and " - << dynamic_cast(pCompareDoc->GetFirstView()->GetFrame())->GetTitle().c_str(); + os << " between " << dynamic_cast(GetDocument()->GetFirstView()->GetFrame())->GetTitle().mb_str(wxConvUTF8) << " and " + << dynamic_cast(pCompareDoc->GetFirstView()->GetFrame())->GetTitle().mb_str(wxConvUTF8); *theApp->getLog() << wxConvUTF8.cMB2WX(os.str().c_str()) << _T("\n"); rPlotFile.addDescription (os.str().c_str()); } -- 2.34.1