Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Tkx::MegaConfig 1.04

    Download button

    No screenshots available
    Downloads: 290  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.7/5)
    8 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    ActiveState | More programs
    Perl Artistic License / FREE
    November 22nd, 2007, 23:20 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Tkx::MegaConfig description

    Tkx::MegaConfig is a Perl module that can handle configuration options for megawidgets.

    Tkx::MegaConfig is a Perl module that can handle configuration options for megawidgets.

    SYNOPSIS

    package Foo;
    use base qw(Tkx::widget Tkx::MegaConfig);

    __PACKAGE__->_Mega("foo");
    __PACKAGE__->_Config(
    -option => [$where, $dbName, $dbClass, $default],
    );

    The Tkx::MegaConfig class provide implementations of m_configure() and m_cget() that can handle configuration options for megawidgets. How these methods behave is set up by calling the _Config() class method. The _Config() method takes a set option/option spec pairs as argument.
    An option argument is either the name of an option with leading '-' or the string 'DEFAULT' if this spec applies to all option with no explict spec.
    The spec should be an array reference. The first element of the array ($where) describe how this option is handled. Some $where specs take arguments. If you need to provide argument replace $where with an array reference containg [$where, @args]. The rest specify names and default for the options database, but is currently ignored.

    The following $where specs are understood:

    .foo

    Delegate the given configuration option to the "foo" kid of the mega widget. The name "." can be used to deletegate to the megawidget root itself. An argument can be given to delegate using a different name on the "foo" widget.

    METHOD

    Call the _config_opt method. For m_cget() no arguments are given, while for m_configure() the new value is passed. An argument can be given to forward to that method instead of _config_opt.

    PASSIVE

    Store or retrieve option from $self->_data.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    megawidgets options | megawidgets configuration | Perl module | megawidgets | configuration | options

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM