Description | Perl tools for X-ray Absorption Spectroscopy |
Demeter::UI::Wx::AutoSave - A Wx dialog for restoring an autosave file
This documentation refers to Demeter version 0.9.26.
This provides a dialog for selecting from one or more of Demeter's most recently used files.
use Demeter::UI::Wx::AutoSave;
$dialog = Demeter::UI::Wx::AutoSave->new($self);
if ( $dialog->ShowModal != wxID_CANCEL ) {
$project = File::Spec->catfile($autosave_path, $dialog->GetString);
};
The returned string is not a fully resolve file path.
This posts a Wx SingleChoiceDialog showing all possible autosave files found in Demeter's stash folder.
Please report problems to the Ifeffit Mailing List (http://cars9.uchicago.edu/mailman/listinfo/ifeffit/)
Patches are welcome.
Bruce Ravel, http://bruceravel.github.io/home
http://bruceravel.github.io/demeter/
Copyright (c) 2006-2018 Bruce Ravel (http://bruceravel.github.io/home). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlgpl.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.