Demeter

Description Perl tools for X-ray Absorption Spectroscopy
Demeter > Perl Modules > Demeter::UI::Wx::AutoSave
Source

NAME

Demeter::UI::Wx::AutoSave - A Wx dialog for restoring an autosave file

VERSION

This documentation refers to Demeter version 0.9.26.

SYNOPSIS

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.

DESCRIPTION

This posts a Wx SingleChoiceDialog showing all possible autosave files found in Demeter's stash folder.

BUGS AND LIMITATIONS

Please report problems to the Ifeffit Mailing List (http://cars9.uchicago.edu/mailman/listinfo/ifeffit/)

Patches are welcome.

AUTHOR

Bruce Ravel, http://bruceravel.github.io/home

http://bruceravel.github.io/demeter/

LICENCE AND COPYRIGHT

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.