Padre::Config - Configuration subsystem for Padre
use Padre::Config; [...] if ( Padre::Config->main_statusbar ) { [...] }
Every setting is accessed by a method named after it, which is a mutator. ie, it can be used both as a getter and a setter, depending on the number of arguments passed to it.
Padre needs to store different settings. Those preferences are stored in different places depending on their impact. But Padre::Config allows to access them with a unified api (a mutator). Only their declaration differ in the module.
Padre::Config
Here are the various types of settings that Padre::Config can manage:
User settings
Those settings are general settings that relates to user preferences. They range from general user interface look&feel (whether to show the line numbers, etc.) to editor preferences (tab width, etc.) and other personal settings.
Those settings are stored in a YAML file, and accessed with Padre::Config::Human.
Padre::Config::Human
Host settings
Those preferences are related to the host on which Padre is run. The principal example of those settings are window appearance.
Those settings are stored in a DB file, and accessed with Padre::Config::Host.
Padre::Config::Host
Project settings
Those preferences are related to the project of the file you are currently editing. Examples of those settings are whether to use tabs or spaces, etc.
Those settings are accessed with Padre::Config::Project.
Padre::Config::Project
Copyright 2008-2009 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.
To install Padre, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Padre
CPAN shell
perl -MCPAN -e shell install Padre
For more information on module installation, please visit the detailed CPAN module installation guide.