NAME
Tk::AppWindow::Ext::Plugins - load and unload plugins
SYNOPSIS
my $app = new Tk::AppWindow(@options,
-extensions => ['Plugins'],
);
$app->MainLoop;
DESCRIPTION
Gives your user the opportunity to tune the application to his wishes, by loading and unloading plugins.
Plugins are kind of like extensions, they add functionality. However, a plugin cannot define configvariables. It can issue commands though.
This extension will load the extension ConfigFolder if it is not loaded already.
CONFIG VARIABLES
- Switch: -availableplugs
-
If you set this list, only the specified plugins can be loaded by the end user. If you do not set this option, there is no restriction to what plugins are available to the end user, except for blocked plugins.
- Switch: -blockedplugs
-
List of plugins that are blocked from the end user.
- Switch: -plugins
-
List of plugins that will be loaded at startup, factory settings.
COMMANDS
- plugsdialog
-
Creates a dialog window in which the user can select and unselect plugins
METHODS
- plugExists($name)
-
returns the requested plugin object.
- plugGet($name)
-
returns the requested plugin object.
- plugList
-
returns a sorted list of loaded plugins.
- plugLoad($name)
-
Loads the plugin; returns 1 if succesfull;
- plugUnload($name)
-
Unloads the plugin; returns 1 if succesfull;
- Reconfigure
-
Calls Reconfigure on all loaded plugins 1 if all succesfull;
AUTHOR
Hans Jeuken (hanje at cpan dot org)
BUGS
Unknown. Probably plenty. If you find any, please contact the author.