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