NAME
Tk::AppWindow::Ext::ConfigFolder - save your settings files in a ConfigFolder
SYNOPSIS
my $app = new Tk::AppWindow(@options,
-extensions => ['ConfigFolder'],
);
$app->MainLoop;
DESCRIPTION
CONFIG VARIABLES
- Switch: -configfolder
-
The default value depends on your operating system.
On Windows: $ENV{LOCALAPPDATA}/appname Others: $ENV{HOME}/.local/share/appname
You can overwrite it at launch by setting a folder yourself.
METHODS
- confFileName($file)
-
Prepends the config folder location to $file and returns it.
- confFileName($file)
-
Returns true if $file exists in the config folder.
- loadHash($file, $id)
-
Loads the hash stored in $file. $id is the file id on the first line of the file it should match.
- loadList($file, $id)
-
Loads the list stored in $file. $id is the file id on the first line of the file it should match.
- loadSectionedList($file, $id)
-
Loads the sectioned list stored in $file. $id is the file id on the first line of the file it should match.
- saveHash($file, $id, %hash)
-
Saves %hash to $file. $id is the file id and is written as the first line.
- saveList($file, $id, @list)
-
Saves @list to $file. $id is the file id and is written as the first line.
- saveSectionedList($file, $id, @list)
-
Saves @list as a sectioned list $file. $id is the file id and is written as the first line.
AUTHOR
Hans Jeuken (hanje at cpan dot org)
BUGS
Unknown. If you find any, please contact the author.