GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
dialogs.SymbolDialog Class Reference

Dialog for GRASS symbols selection. More...

Public Member Functions

def __init__
 Dialog constructor.
def OnFolderSelect
 Selected folder with symbols changed.
def SelectionChanged
 Selected symbol changed.
def GetSelectedSymbol
 Returns currently selected symbol.

Data Fields

 symbolPath
 currentSymbol
 selected
 selectedDir
 folderChoice
 infoLabel
 panels
 btnCancel
 btnOK
 symbolPanels

Detailed Description

Dialog for GRASS symbols selection.

Dialog is called in gui_core::forms module.

Definition at line 2210 of file gui_core/dialogs.py.


Constructor & Destructor Documentation

def dialogs.SymbolDialog.__init__ (   self,
  parent,
  symbolPath,
  currentSymbol = None,
  title = _("Symbols") 
)

Dialog constructor.

It is assumed that symbolPath contains folders with symbols.

Parameters:
parentdialog parent
symbolPathabsolute path to symbols
currentSymbolcurrently selected symbol (e.g. 'basic/x')
titledialog title

Definition at line 2215 of file gui_core/dialogs.py.


Member Function Documentation

def dialogs.SymbolDialog.GetSelectedSymbol (   self,
  fullPath = False 
)

Returns currently selected symbol.

Parameters:
fullPathtrue to return absolute path to symbol, otherwise returns e.g. 'basic/x'

Definition at line 2371 of file gui_core/dialogs.py.

References gis_set.GListBox.selected, manager.GCPList.selected, dialogs.SymbolDialog.selected, dialogs.SymbolDialog.selectedDir, and dialogs.SymbolDialog.symbolPath.


Field Documentation


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