From 6d3b88dbe7a72377db9c853781593287f9cbcfa5 Mon Sep 17 00:00:00 2001 From: necoro <> Date: Sat, 21 Jul 2007 19:34:57 +0000 Subject: updated howto --- doc/Howto_Write_Plugins | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) (limited to 'doc') diff --git a/doc/Howto_Write_Plugins b/doc/Howto_Write_Plugins index 508d9c9..6c4f97f 100644 --- a/doc/Howto_Write_Plugins +++ b/doc/Howto_Write_Plugins @@ -16,31 +16,31 @@ When you now have chosen the connect(s) to chose you write an appropriate functi Finally: Add an import tag stating the module to import to execute the function(s) given - and you are done. +If you are finished with your plugin, you can check if it complies with the XML Schema by doing: "portato -x $PLUGIN_FILE". + Sample XML ---------- -At the point of writing this, there is no XSD or DTD - so you cannot validate the file. But this will change at some point of time ;). - - + + Joe Smith + Some small sample plugin + plugins.sample.small - - - + + + + - disabled Notes: -- The author and name attributes are mandatory. - If you want to specify a dependency plugin the connect tag has to be like: The other plugin we depend on . - It is possible of course to have more than one "hook" tag. - The options tag is optional. For a complete list of options, see below. @@ -49,11 +49,21 @@ Additional Tags --------------- Menu: - It is possible, that your plugin gets an entry in the "Plugin"-menu. Therefore you have to provide (one or more) "menu" tags: - + It is possible, that your plugin gets an entry in the "Plugin"-menu. Therefore you have to provide a "menu" tag and one or more "item" tags: + + + + A small _Plugin + + Note, that the underscore in front of a character will make it be underlined in the menu and thus accessible by a shortcut. +Frontends: + Sometimes, your plugin will only work with a specific frontend - you can therefore add a "frontends" tag with the list of frontends supported: + + gtk qt4 + Options -------- -- cgit v1.2.3