Changeset 3305


Ignore:
Timestamp:
03/12/09 10:37:18 (3 years ago)
Author:
jquelin
Message:

introducing some pod for padre::config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Config.pm

    r3303 r3305  
    3263261; 
    327327 
     328__END__ 
     329 
     330=head1 NAME 
     331 
     332Padre::Config - configuration subsystem for Padre 
     333 
     334 
     335=head1 SYNOPSIS 
     336 
     337    use Padre::Config; 
     338    [...] 
     339    if ( Padre::Config->main_statusbar ) { [...] } 
     340 
     341 
     342 
     343=head1 DESCRIPTION 
     344 
     345=head2 Generic usage 
     346 
     347Every setting is accessed by a method named after it, which is a mutator. 
     348ie, it can be used both as a getter and a setter, depending on the number 
     349of arguments passed to it. 
     350 
     351 
     352 
     353=head2 Different types of settings 
     354 
     355Padre needs to store different settings. Those preferences are stored in 
     356different places depending on their impact. But C<Padre::Config> allows to 
     357access them with a unified api (a mutator). Only their declaration differ 
     358in the module. 
     359 
     360Here are the various types of settings that C<Padre::Config> can manage: 
     361 
     362=over 4 
     363 
     364=item * User settings 
     365 
     366Those settings are general settings that relates to user preferences. They range 
     367from general user interface look&feel (whether to show the line numbers, etc.) 
     368to editor preferences (tab width, etc.) and other personal settings. 
     369 
     370Those settings are stored in a YAML file, and accessed with C<Padre::Config::Human>. 
     371 
     372 
     373=item * Host settings 
     374 
     375Those preferences are related to the host on which Padre is run. The principal 
     376example of those settings are window appearance. 
     377 
     378Those settings are stored in a DB file, and accessed with C<Padre::Config::Host>. 
     379 
     380 
     381=item * Project settings 
     382 
     383Those preferences are related to the project of the file you are currently 
     384editing. Examples of those settings are whether to use tabs or spaces, etc. 
     385 
     386Those settings are accessed with C<Padre::Config::Project>. 
     387 
     388 
     389=back 
     390 
     391 
     392 
     393 
     394 
     395=head1 COPYRIGHT & LICENSE 
     396 
     397Copyright 2008-2009 The Padre development team as listed in Padre.pm. 
     398 
     399This program is free software; you can redistribute it and/or modify it under the 
     400same terms as Perl 5 itself. 
     401 
     402=cut 
    328403 
    329404# Copyright 2008-2009 The Padre development team as listed in Padre.pm. 
Note: See TracChangeset for help on using the changeset viewer.