summaryrefslogtreecommitdiff
path: root/sci-biology/treeviewx/files/treeviewx-wxt.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-biology/treeviewx/files/treeviewx-wxt.patch
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-biology/treeviewx/files/treeviewx-wxt.patch')
-rw-r--r--sci-biology/treeviewx/files/treeviewx-wxt.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/sci-biology/treeviewx/files/treeviewx-wxt.patch b/sci-biology/treeviewx/files/treeviewx-wxt.patch
new file mode 100644
index 000000000000..b1c03bbb39f9
--- /dev/null
+++ b/sci-biology/treeviewx/files/treeviewx-wxt.patch
@@ -0,0 +1,50 @@
+--- tv.cpp~ 2005-10-01 16:47:35.000000000 -0400
++++ tv.cpp 2005-10-01 16:52:30.000000000 -0400
+@@ -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();
+--- tview.cpp~ 2005-10-01 16:47:45.000000000 -0400
++++ tview.cpp 2005-10-01 16:50:42.000000000 -0400
+@@ -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)
+ {