MCPcopy Create free account
hub / github.com/MediaArea/MediaInfo / OnMenu_File_Open_Directory

Method OnMenu_File_Open_Directory

Source/GUI/WxWidgets/GUI_Main_Menu.cpp:254–269  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

252
253//---------------------------------------------------------------------------
254void GUI_Main::OnMenu_File_Open_Directory(wxCommandEvent& WXUNUSED(event))
255{
256 //User interaction
257 wxDirDialog* Dialog=new wxDirDialog(this, __T("Choose a directory"));
258 if (Dialog->ShowModal()!=wxID_OK)
259 return;
260 wxString DirName=Dialog->GetPath();
261 delete Dialog;
262
263 //Configuring
264 C->Menu_File_Open_Files_Begin();
265 C->Menu_File_Open_Files_Continue(String(DirName.c_str()));
266
267 //Showing
268 View->GUI_Refresh();
269}
270
271//---------------------------------------------------------------------------
272void GUI_Main::OnMenu_File_Quit(wxCommandEvent& WXUNUSED(event))

Callers

nothing calls this directly

Calls 3

GUI_RefreshMethod · 0.45

Tested by

no test coverage detected