Scribus
Open source desktop publishing at your fingertips
scripter_hooks.MenuHooks Class Reference
Inheritance diagram for scripter_hooks.MenuHooks:
Collaboration diagram for scripter_hooks.MenuHooks:

Public Member Functions

def __init__
 
def createMenu (self, title)
 
def iter_menus (self)
 
def iter_inner_menus (self, menu)
 
def findMenu (self, title)
 
def actionForMenu (self, menu)
 
def insertMenuBefore (self, before_menu, new_menu)
 
def menuAfter (self, menu)
 
def appendMenu (self, menu)
 
def insertMenuAfter (self, after_menu, new_menu)
 
def appendItem (self, menu, item, extra_args)
 
def appendSeparator (self, menu)
 

Public Attributes

 window
 
 menubar
 
 menus
 

Detailed Description

This class lets extension-scripts hook into the main menu of Scribus.    

Member Function Documentation

def scripter_hooks.MenuHooks.appendMenu (   self,
  menu 
)
  Probably not that usefull 
  because it will add a menu after the help menu
def scripter_hooks.MenuHooks.findMenu (   self,
  title 
)
find a menu with a given title

@type  title: string
@param title: English title of the menu
@rtype:       QMenu
@return:      None if no menu was found, else the menu with title
def scripter_hooks.MenuHooks.insertMenuAfter (   self,
  after_menu,
  new_menu 
)
Insert a menu before another menu in the menubar
def scripter_hooks.MenuHooks.insertMenuBefore (   self,
  before_menu,
  new_menu 
)
Insert a menu after another menu in the menubar

@type: before_menu QMenu instance or title string of menu
@param before_menu: menu which should be after the newly inserted menu
@rtype: QAction instance
@return: action for inserted menu

The documentation for this class was generated from the following file: