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

Method M_File_Open_FileClick

Source/GUI/VCL/GUI_Main.cpp:1317–1335  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1315
1316//---------------------------------------------------------------------------
1317void __fastcall TMainF::M_File_Open_FileClick(TObject *Sender)
1318{
1319 if (!FileOpenDialog1->Execute(Handle))
1320 return;
1321
1322 if (M_Options_CloseAllAuto->Checked)
1323 M_File_Close_AllClick(Sender);
1324
1325 //Retrieving filenames, manage them
1326 if (FileOpenDialog1->Files->Count==1)
1327 //un fichier
1328 I->Open(GUI_Text(FileOpenDialog1->FileName));
1329 else
1330 //Plusieurs selections
1331 for (int I1=0; I1<FileOpenDialog1->Files->Count; I1++)
1332 I->Open(GUI_Text(FileOpenDialog1->Files->Strings[I1]));
1333
1334 Refresh();
1335}
1336
1337//---------------------------------------------------------------------------
1338void __fastcall TMainF::M_File_Open_FolderClick(TObject *Sender)

Callers

nothing calls this directly

Calls 2

ExecuteMethod · 0.45
OpenMethod · 0.45

Tested by

no test coverage detected