The OpenDialog plugin presents a list of recently used files as well as some directories. The user can Load directly one of the listed files or Choose any file from a highlighted directory. If no directory is highlighted, the current directory will be used.
The plugin makes a guess of the file type based on the filename extension, but the user must confirm or choose the used format. Extensions .pdb and .ent will allways use PDB-parser, and extension .mol2 automatically uses Mol2-parser. After that Opendialog calls the Parse plugin, which will read the file and add the data to the Bodil.
OpenDialog handles also the saving operation: the user can select new filename with a dialog, and the file extension is used to deduce the file format / correct parser to use. As a general rule, the parser will save the currently selected objects (of correct type) to a file.
Section Key ValuetypeDescription
RecentFiles NumberOfFiles integernumber of Filei entries.
RecentFiles Filei filenamename of file i, where i is [1 .. NumberOfFiles]
CommonDirectories NumberOfDirs integernumber of Directoryi entries.
CommonDirectories Directoryi dirnamename of directory i, where i is [1 .. NumberOfDirs]
List of available parsers is obtained using Plugin Subsystem and Task entries.
Calling Execute() starts a read and calls Parser::Command( "Read", "filename" ).
Calling Execute( * ) starts a save and calls Parser::Command( "Save", "filename" ).