| 1597 | // --------------------------------------------------------------------- |
| 1598 | |
| 1599 | void MyFrame::OnOpenPattern(wxCommandEvent& event) |
| 1600 | { |
| 1601 | wxFileDialog opendlg(this, _("Choose a pattern file"), opensavedir, wxEmptyString, |
| 1602 | _("Extended VTK files (*.vti;*.vtu)|*.vti;*.vtu"), |
| 1603 | wxFD_OPEN | wxFD_FILE_MUST_EXIST); |
| 1604 | #ifdef __WXGTK__ |
| 1605 | // opensavedir is ignored above (bug in wxGTK 2.8.x???) |
| 1606 | opendlg.SetDirectory(opensavedir); |
| 1607 | #endif |
| 1608 | if(opendlg.ShowModal() == wxID_OK) { |
| 1609 | wxFileName fullpath( opendlg.GetPath() ); |
| 1610 | opensavedir = fullpath.GetPath(); |
| 1611 | OpenFile(opendlg.GetPath()); |
| 1612 | } |
| 1613 | } |
| 1614 | |
| 1615 | // --------------------------------------------------------------------- |
| 1616 |
nothing calls this directly
no outgoing calls
no test coverage detected