Debian Codegraph @

debian/patches/36_wx3.0_compat.patch

raw symbols SCIP
1 From: Olly Betts <[email protected]>
2 Subject: modification to source code
3
4 --- a/src/main.cpp
5 +++ b/src/main.cpp
6 @@ -421,15 +421,15 @@
7 static const wxCmdLineEntryDesc cmdLineDesc[] =
8 {
9 {
10 - wxCMD_LINE_PARAM,_T(""),_T(""),_T("filename.pdb:(molecule to be drawn)"),
11 + wxCMD_LINE_PARAM,wxT_2(""),wxT_2(""),wxT_2("filename.pdb:(molecule to be drawn)"),
12 wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL
13 },
14 {
15 - wxCMD_LINE_OPTION,_T("a"),_T(""),_T("filename.art: optional Atom Render Table"),
16 + wxCMD_LINE_OPTION,wxT_2("a"),wxT_2(""),wxT_2("filename.art: optional Atom Render Table"),
17 wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL
18 },
19 {
20 - wxCMD_LINE_SWITCH,_T("v"),_T(""),_T("don't start, show version name"),
21 + wxCMD_LINE_SWITCH,wxT_2("v"),wxT_2(""),wxT_2("don't start, show version name"),
22 wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL
23 },
24 { wxCMD_LINE_NONE }
25 @@ -845,7 +845,7 @@
26 wxString(), // def path
27 wxString(),
28 FILETYPES,
29 - wxSAVE | /*wxCHANGE_DIR |*/ wxOVERWRITE_PROMPT
30 + wxFD_SAVE | /*wxFD_CHANGE_DIR |*/ wxFD_OVERWRITE_PROMPT
31 );
32
33 static int lastFilterIndex=-1;
34 @@ -1013,7 +1013,7 @@
35 wxString(), // def path
36 wxString(),
37 FILETYPES,
38 - wxOPEN | wxFILE_MUST_EXIST/*| wxCHANGE_DIR*/,
39 + wxFD_OPEN | wxFD_FILE_MUST_EXIST/*| wxFD_CHANGE_DIR*/,
40 wxDefaultPosition);
41
42 if (openFileDialog->ShowModal() == wxID_OK) {