| |
@@ -0,0 +1,30 @@
|
| |
+ diff -up panoglview-0.2.2/src/panoframe.cpp.wx3 panoglview-0.2.2/src/panoframe.cpp
|
| |
+ --- panoglview-0.2.2/src/panoframe.cpp.wx3 2008-07-23 17:09:11.000000000 -0400
|
| |
+ +++ panoglview-0.2.2/src/panoframe.cpp 2018-11-05 20:57:16.561033009 -0500
|
| |
+ @@ -136,7 +136,7 @@ PCX files (*.pcx)|*.pcx|\
|
| |
+ PNM files (*.pnm)|*.pnm|\
|
| |
+ TIFF files (*.tif)|*.tif|\
|
| |
+ XPM files (*.xpm)|*.xpm|\
|
| |
+ -All files (*.*)|*.*"),wxOPEN|wxFILE_MUST_EXIST);
|
| |
+ +All files (*.*)|*.*"),wxFD_OPEN|wxFD_FILE_MUST_EXIST);
|
| |
+ if (imagename !=wxT(""))
|
| |
+ openImage(imagename);
|
| |
+ }
|
| |
+ @@ -153,7 +153,7 @@ void panoFrame::OnFullScreen(wxCommandEv
|
| |
+
|
| |
+ void panoFrame::OnOpenProject(wxCommandEvent &event)
|
| |
+ {
|
| |
+ - wxString filename = wxFileSelector(_("Open Project"),wxEmptyString,wxEmptyString,wxT("paf"),_("Panorama files (*.paf)|*.paf|All files (*.*)|*.*"),wxOPEN|wxFILE_MUST_EXIST);
|
| |
+ + wxString filename = wxFileSelector(_("Open Project"),wxEmptyString,wxEmptyString,wxT("paf"),_("Panorama files (*.paf)|*.paf|All files (*.*)|*.*"),wxFD_OPEN|wxFD_FILE_MUST_EXIST);
|
| |
+ if (filename !=wxT("")){
|
| |
+ openProject(filename);
|
| |
+ }
|
| |
+ @@ -292,7 +292,7 @@ void panoFrame::openArgumentFile(const w
|
| |
+
|
| |
+ void panoFrame::OnSaveProject(wxCommandEvent &event)
|
| |
+ {
|
| |
+ - wxString filename = wxFileSelector(_("Save Project"),wxEmptyString,wxEmptyString,wxT("paf"),_("Panorama files (*.paf)|*.paf|All files (*.*)|*.*"),wxOVERWRITE_PROMPT|wxSAVE);
|
| |
+ + wxString filename = wxFileSelector(_("Save Project"),wxEmptyString,wxEmptyString,wxT("paf"),_("Panorama files (*.paf)|*.paf|All files (*.*)|*.*"),wxFD_OVERWRITE_PROMPT|wxFD_SAVE);
|
| |
+ if (filename != wxT("")){
|
| |
+ if (wxFileExists(filename))
|
| |
+ wxRemoveFile(filename);
|
| |