Changeset 3305
- Timestamp:
- 03/12/09 10:37:18 (3 years ago)
- File:
-
- 1 edited
-
trunk/Padre/lib/Padre/Config.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Config.pm
r3303 r3305 326 326 1; 327 327 328 __END__ 329 330 =head1 NAME 331 332 Padre::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 347 Every setting is accessed by a method named after it, which is a mutator. 348 ie, it can be used both as a getter and a setter, depending on the number 349 of arguments passed to it. 350 351 352 353 =head2 Different types of settings 354 355 Padre needs to store different settings. Those preferences are stored in 356 different places depending on their impact. But C<Padre::Config> allows to 357 access them with a unified api (a mutator). Only their declaration differ 358 in the module. 359 360 Here are the various types of settings that C<Padre::Config> can manage: 361 362 =over 4 363 364 =item * User settings 365 366 Those settings are general settings that relates to user preferences. They range 367 from general user interface look&feel (whether to show the line numbers, etc.) 368 to editor preferences (tab width, etc.) and other personal settings. 369 370 Those settings are stored in a YAML file, and accessed with C<Padre::Config::Human>. 371 372 373 =item * Host settings 374 375 Those preferences are related to the host on which Padre is run. The principal 376 example of those settings are window appearance. 377 378 Those settings are stored in a DB file, and accessed with C<Padre::Config::Host>. 379 380 381 =item * Project settings 382 383 Those preferences are related to the project of the file you are currently 384 editing. Examples of those settings are whether to use tabs or spaces, etc. 385 386 Those settings are accessed with C<Padre::Config::Project>. 387 388 389 =back 390 391 392 393 394 395 =head1 COPYRIGHT & LICENSE 396 397 Copyright 2008-2009 The Padre development team as listed in Padre.pm. 398 399 This program is free software; you can redistribute it and/or modify it under the 400 same terms as Perl 5 itself. 401 402 =cut 328 403 329 404 # Copyright 2008-2009 The Padre development team as listed in Padre.pm.
Note: See TracChangeset
for help on using the changeset viewer.
