GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Abstract menu data class. More...
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 | |
Abstract menu data class.
Definition at line 44 of file core/menudata.py.
def menudata.MenuData.__init__ | ( | self, | |
filename | |||
) |
Definition at line 46 of file core/menudata.py.
def menudata.MenuData.GetMenu | ( | self | ) |
Get menu.
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)
fh | file 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)
fh | file descriptor |
Definition at line 122 of file core/menudata.py.
References utils.split().
def menudata.MenuData.PrintTree | ( | self, | |
fh | |||
) |
Print menu tree to file.
fh | file descriptor |
Definition at line 133 of file core/menudata.py.
References menudata.MenuData._PrintTreeItems(), and menudata.MenuData.GetMenu().
menudata.MenuData.tree |
Definition at line 47 of file core/menudata.py.
Referenced by frame.MapFrame.AddNviz(), mapwindow.MapWindow.GetLayerByName(), frame.MapFrame.GetMapWindow(), mapwindow.MapWindow.GetSelectedLayer(), mapwindow.GLWindow.LoadDataLayers(), mapwindow.GLWindow.UnloadDataLayers(), and mapwindow.BufferedWindow.UpdateMap().