Package pallavi :: Package plugins :: Module SimpleToolbar
[hide private]
[frames] | no frames]

Module SimpleToolbar

source code

Simple Toolbar with built-in actions. Eventually, I suppose it should
be fully customizable, but I'm not even using this thing, so if somebody
likes toolbars they can hack this plugin and send me the new version.

This plugin invokes the following actions:
NewFile
OpenFile
SaveActive
        When a toolbar icon is clicked.



Functions [hide private]
 
setup() source code
 
NewView(name, view)
Called whenever a new textview is created
source code
 
BindAction(toolbar, action, view)
Convenience method to make the actions bound in the setup method more readable.
source code
 
BindFunction(toolbar, icon, text, tooltip, function, view)
Bind a function to a specific menu action.
source code
Variables [hide private]
  size = (16, 16)
Function Details [hide private]

BindAction(toolbar, action, view)

source code 
Convenience method to make the actions bound in the setup method more readable. Toolbar is the toolbar to add to, action is the id of a Pallavi Action to add. The action should have an icon set.

BindFunction(toolbar, icon, text, tooltip, function, view)

source code 
Bind a function to a specific menu action. Toolbar is the toolbar to bind to. Icon is the icon to bind. Text and tooltip are short and long helps. Function is the function to bind.