new menu plugins: "help", "system_preferences" and "disks"
description of plugin interface extended with possible redirection to another plugin
This commit is contained in:
parent
7fd361d8ac
commit
87d99e8173
18 changed files with 125 additions and 21 deletions
7
pythonrewrite/plugins/help/doc.cs
Normal file
7
pythonrewrite/plugins/help/doc.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?cs # $Id$ ?>
|
||||
|
||||
<div id="doc">
|
||||
|
||||
<?cs include:Settings.DocDir + '/' + Settings.Language + '/' + Data.Plugins.help.Page + '.html' ?>
|
||||
|
||||
</div>
|
25
pythonrewrite/plugins/help/help.py
Normal file
25
pythonrewrite/plugins/help/help.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
import CryptoBoxPlugin
|
||||
|
||||
class help(CryptoBoxPlugin.CryptoBoxPlugin):
|
||||
|
||||
pluginCapabilities = [ "menu" ]
|
||||
requestAuth = False
|
||||
rank = 50
|
||||
|
||||
def doAction(self, page=""):
|
||||
'''prints the offline wikipage
|
||||
'''
|
||||
import re
|
||||
## check for invalid characters
|
||||
if page and not re.search(u'\W', page):
|
||||
self.hdf[self.hdf_prefix + "Page"] = page
|
||||
else:
|
||||
## display this page as default help page
|
||||
self.hdf[self.hdf_prefix + "Page"] ="CryptoBoxUser"
|
||||
return "doc"
|
||||
|
||||
|
||||
def getStatus(self):
|
||||
return "TODO"
|
||||
|
||||
|
5
pythonrewrite/plugins/help/lang/en.hdf
Normal file
5
pythonrewrite/plugins/help/lang/en.hdf
Normal file
|
@ -0,0 +1,5 @@
|
|||
Name = User manual
|
||||
Link = Help
|
||||
|
||||
Title.Help = User manual
|
||||
|
BIN
pythonrewrite/plugins/help/plugin_icon.png
Normal file
BIN
pythonrewrite/plugins/help/plugin_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Loading…
Add table
Add a link
Reference in a new issue