treeviewx-wxt.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --- tv.cpp~ 2005-10-01 16:47:35.000000000 -0400
  2. +++ tv.cpp 2005-10-01 16:52:30.000000000 -0400
  3. @@ -312,11 +312,15 @@
  4. {
  5. #ifdef __WXMSW__
  6. file_menu->AppendSeparator();
  7. - file_menu->Append(SAVEAS_PICTURE_CMD, "Save As Picture..."), wxT("Save picture of tree to metafile");
  8. + file_menu->Append(SAVEAS_PICTURE_CMD,
  9. + wxT("Save As Picture...")),
  10. + wxT("Save picture of tree to metafile");
  11. #else
  12. #ifdef USE_SVG
  13. file_menu->AppendSeparator();
  14. - file_menu->Append(SAVEAS_PICTURE_CMD, "Save As Picture..."), wxT("Save picture of tree to SVG file");
  15. + file_menu->Append(SAVEAS_PICTURE_CMD,
  16. + wxT("Save As Picture...")),
  17. + wxT("Save picture of tree to SVG file");
  18. #endif
  19. #endif
  20. file_menu->AppendSeparator();
  21. --- tview.cpp~ 2005-10-01 16:47:45.000000000 -0400
  22. +++ tview.cpp 2005-10-01 16:50:42.000000000 -0400
  23. @@ -184,10 +184,10 @@
  24. wxString pictureFileName = GetFrame()->GetTitle();
  25. pictureFileName += wxT(".emf");
  26. wxFrame *f = GetMainFrame();
  27. - wxFileDialog dialog((wxWindow *)f, "Save Picture as", "", pictureFileName,
  28. - "Enhanced metafile (*.emf)|*.emf",
  29. - wxSAVE|wxOVERWRITE_PROMPT);
  30. -
  31. + wxFileDialog dialog((wxWindow *)f, wxT("Save Picture as"), wxT(""),
  32. + pictureFileName, wxT("Enhanced metafile (*.emf)|*.emf"),
  33. + wxSAVE|wxOVERWRITE_PROMPT);
  34. +
  35. if (dialog.ShowModal() == wxID_OK)
  36. {
  37. wxMetafileDC pictureDC (dialog.GetPath(), 600, 650) ;
  38. @@ -204,9 +204,9 @@
  39. #else
  40. wxFrame *f = GetMainFrame();
  41. #endif
  42. - wxFileDialog dialog((wxWindow *)f, "Save Picture as", "", pictureFileName,
  43. - "SVG vector picture files (*.svg)|*.svg",
  44. - wxSAVE|wxOVERWRITE_PROMPT);
  45. + wxFileDialog dialog((wxWindow *)f, wxT("Save Picture as"), wxT(""),
  46. + pictureFileName, wxT("SVG vector picture files (*.svg)|*.svg"),
  47. + wxSAVE|wxOVERWRITE_PROMPT);
  48. if (dialog.ShowModal() == wxID_OK)
  49. {