File: test_plugin.qs

package info (click to toggle)
pdfedit 0.4.5-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 15,220 kB
  • ctags: 17,436
  • sloc: cpp: 156,708; xml: 8,973; makefile: 1,003; sh: 704; ansic: 688; perl: 669; yacc: 589; python: 236; 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();