GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
menudata.MenuData Class Reference

Abstract menu data class. More...

Inheritance diagram for menudata.MenuData:

Public Member Functions

def __init__
 
def GetMenu
 Get menu. More...
 
def PrintStrings
 Print menu strings to file (used for localization) More...
 
def PrintTree
 Print menu tree to file. More...
 
def PrintCommands
 Print commands list (command | menu item > menu item) More...
 

Data Fields

 tree
 

Detailed Description

Abstract menu data class.

Definition at line 44 of file core/menudata.py.

Constructor & Destructor Documentation

def menudata.MenuData.__init__ (   self,
  filename 
)

Definition at line 46 of file core/menudata.py.

Member Function Documentation

def menudata.MenuData.GetMenu (   self)

Get menu.

Returns
menu data

Definition at line 115 of file core/menudata.py.

Referenced by menudata.MenuData.PrintCommands(), and menudata.MenuData.PrintTree().

def menudata.MenuData.PrintCommands (   self,
  fh,
  itemSep = ' | ',
  menuSep = ' > ' 
)

Print commands list (command | menu item > menu item)

Parameters
fhfile descriptor

Definition at line 158 of file core/menudata.py.

References menudata.MenuData._PrintCommandsItems(), and menudata.MenuData.GetMenu().

def menudata.MenuData.PrintStrings (   self,
  fh 
)

Print menu strings to file (used for localization)

Parameters
fhfile descriptor

Definition at line 122 of file core/menudata.py.

References utils.split().

def menudata.MenuData.PrintTree (   self,
  fh 
)

Print menu tree to file.

Parameters
fhfile descriptor

Definition at line 133 of file core/menudata.py.

References menudata.MenuData._PrintTreeItems(), and menudata.MenuData.GetMenu().

Field Documentation


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