Config::Model::TkUI - Tk GUI to edit config data through Config::Model
use Config::Model::TkUI; # init trace Log::Log4perl->easy_init($WARN); # create configuration instance my $model = Config::Model -> new ; my $inst = $model->instance (root_class_name => 'a_config_class', instance_name => 'test'); my $root = $inst -> config_root ; # Tk part my $mw = MainWindow-> new ; $mw->withdraw ; $mw->ConfigModelUI (-root => $root) ; MainLoop ;
This class provides a GUI for Config::Model.
With this class, Config::Model and an actual configuration model (like Config::Model::Xorg), you get a tool to edit configuration files (e.g. /etc/X11/xorg.conf).
/etc/X11/xorg.conf
Click on '+' and '-' boxes to open or close content
Left-click on item to open a viewer widget.
Right-click on any item to open an editor widget
When clicking on store, the new data is stored in the tree represented on the left side of TkUI. The new data will be stored in the configuration file only when File-save> menu is invoked.
File-
Document widget options. (-root_model and -store_sub, -quit)
Dominique Dumont, (ddumont at cpan dot org)
Copyright (c) 2008 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
Config::Model
http://config-model.wiki.sourceforge.net/
Config::Model mailing lists on http://sourceforge.net/mail/?group_id=155650
This project needs feedback from its users. Please send your feedbacks, comments and ideas to :
config-mode-users at lists.sourceforge.net
This projects also needs help to improve its user interfaces:
Look and feel of Perl/Tk interface can be improved
A nicer logo (maybe a penguin with a wrench...) would be welcomed
Config::Model could use a web interface
May be also an interface based on Gtk or Wx for better integration in Desktop
If you want to help, please send a mail to:
config-mode-devel at lists.sourceforge.net
To install Config::Model::TkUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Model::TkUI
CPAN shell
perl -MCPAN -e shell install Config::Model::TkUI
For more information on module installation, please visit the detailed CPAN module installation guide.