Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

config::model::cursesui(3pm) [debian man page]

Config::Model::CursesUI(3pm)				User Contributed Perl Documentation			      Config::Model::CursesUI(3pm)

NAME
Config::Model::CursesUI - Curses interface to edit config data SYNOPSIS
use Config::Model ; use Config::Model::CursesUI ; my $model = Config::Model -> new ; my $inst = $model->instance (root_class_name => 'XXX', instance_name => 'yyy'); # create dialog my $dialog = Config::Model::CursesUI-> new ( experience => 'beginner', # or 'advanced' ) ; # start never returns $dialog->start($model) ; DESCRIPTION
This class provides a Curses::UI interface to configuration data managed by Config::Model. IMPORTANT: Once the CursesUI object is created, STDOUT and STDERR are managed by the Curses interface, so all print and warn will not work as expected. CONSTRUCTOR
The constructor accepts the following parameters: experience Specifies the experience level of the user (default: "beginner"). The experience can be "master advanced beginner". load Subroutine ref containing the code to load the configuration data from the configuration files. This may overrides loading mechanism specified in the model with Config::Model::AutoRead. This sub is called without any arguments. store Subroutine ref containing the code to store the configuration data in the configuration files. This may overrides writing mechanism specified in the model with Config::Model::AutoRead. This sub is called without any arguments. AUTHOR
Dominique Dumont, (ddumont at cpan dot org) LICENSE
Copyright (c) 2007-2009,2011 Dominique Dumont. This file is part of Config-Model. Config-Model is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. Config-Model 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. See the GNU Lesser Public License for more details. You should have received a copy of the GNU Lesser Public License along with Config-Model; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA SEE ALSO
Config::Model, Config::Model::ObjTreeScanner, Curses::UI, Curses perl v5.10.1 2011-03-04 Config::Model::CursesUI(3pm)

Check Out this Related Man Page

Config::Model::Itself::BackendDetector(3pm)		User Contributed Perl Documentation	       Config::Model::Itself::BackendDetector(3pm)

NAME
Config::Model::Itself::BackendDetector - Detect available read/write backends SYNOPSIS
# this class should be referenced in a configuration model and # created only by Config::Model::Node my $model = Config::Model->new() ; $model ->create_config_class ( name => "Test", 'element' => [ 'backend' => { type => 'leaf', class => 'Config::Model::Itself::BackendDetector' , value_type => 'enum', # specify backends built in Config::Model choice => [qw/cds_file perl_file ini_file augeas custom/], help => { cds_file => "file ...", ini_file => "Ini file ...", perl_file => "file perl", custom => "Custom format", augeas => "Experimental backend", } } ], ); my $root = $model->instance(root_class_name => 'Test') -> config_root ; my $backend = $root->fetch_element('backend') ; my @choices = $backend->get_choice ; DESCRIPTION
This class is derived from Config::Model::Value. It is designed to be used in a 'enum' value where the choice (the available backends) are the backend built in Config::Model and all the plugin backends. The plugin backends are all the "Config::Model::Backend::*" classes. This module will detect available plugin backend and query their pod documentation to provide a contextual help for config-model graphical editor. AUTHOR
Dominique Dumont, (ddumont at cpan dot org) SEE ALSO
Config::Model, Config::Model::Node, Config::Model::Value perl v5.14.2 2012-06-22 Config::Model::Itself::BackendDetector(3pm)
Man Page