File: test_plugin.qs

package info (click to toggle)
pdfedit 0.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 15,032 kB
  • ctags: 21,708
  • sloc: cpp: 185,471; xml: 8,824; yacc: 1,178; ansic: 666; perl: 664; makefile: 636; sh: 371; lisp: 51
file content (17 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Test plugin

/** Function to install the menu/toolbar items that are used by the plugin */
function installPlugin() {
 createMenuItem('helpmenu','-','','');
 createMenuItem('helpmenu','plugintest','Menu item from test plugin','testplugin()','Ctrl+Alt+X','help.png');
 createMenuItem('MainToolbar','-','','');
 createMenuItem('MainToolbar','plugintest2','Toolbar item from test plugin','testplugin()','','help.png');
}

/** Function to invoke the pluigin functionality */
function testplugin() {
 message('This is a test plugin');
}

//Install the plugin
installPlugin();