ManaTools::Category

Section: User Contributed Perl Documentation (3)
Updated: 2017-07-06
Page Index
 

NAME

ManaTools::Category - add new category to window  

SYNOPSIS

    my $category = new ManaTools::Category({name => 'Category Name'});

 

DESCRIPTION

    This class is used by MainDisplay internally and should not
    be used outside, since MainDisplay::setupGui use it to
    build GUI layout.

 

EXPORT

exported  

SUPPORT

    You can find documentation for this module with the perldoc command:

    perldoc ManaTools::Category

 

SEE ALSO

    ManaTools::MainDisplay

 

AUTHOR

    Angelo Naselli <anaselli@linux.it>

 

COPYRIGHT and LICENSE

    Copyright 2013-2016, Angelo Naselli.
    Copyright 2012, Steven Tucker.

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License version 2, as
    published by the Free Software Foundation.

    This program 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 General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA

 

METHODS

 

new

INPUT

    hash ref containing
        name: new category name
        icon: new category icon

DESCRIPTION

    Constructor: creates a new category named Name

 

loadModule

INPUT

    $self:   this object
    $module: module to add

OUTPUT

    1: if the module has been added
    0: otherwise

DESCRIPTION

    This method adds a module to the loaded
    modules if it is not already in.

 

moduleLoaded

INPUT

    $self:        this object
    $module_name or -CLASS => name : module/CLASS name to look for

OUTPUT

    $present: module present or not

DESCRIPTION

    This method looks for the given module and if already in
    returns true.

 

addButtons

INPUT

    $self:    this object
    $mainDisplay:  main dialog

DESCRIPTION

    Creates and adds buttons for each module_name

 

removeButtons

INPUT

    $self: this object

DESCRIPTION

    Delete the module buttons

 

setIcon

INPUT

    $self: this object

DESCRIPTION

    set the button icon


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXPORT
SUPPORT
SEE ALSO
AUTHOR
COPYRIGHT and LICENSE
METHODS
new
loadModule
moduleLoaded
addButtons
removeButtons
setIcon