MCPcopy Create free account
hub / github.com/GollyGang/ready / OnOpenPattern

Method OnOpenPattern

src/gui/frame.cpp:1599–1613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1597// ---------------------------------------------------------------------
1598
1599void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected