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: -noplugins
-
Boolean flag, no plugins will be loaded at startup. The list of plugins in the config file will be ignored if this option is set. Default value 0.
- Switch: -plugins
-
List of plugins that will be loaded at startup. The list of plugins in the config file will be ignored if this option is set.
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.