GRASS Programmer's Manual  6.4.4(2014)-r
wizard.ItemList Class Reference

Generic list (for projections, ellipsoids, etc.) More...

Inheritance diagram for wizard.ItemList:
Collaboration diagram for wizard.ItemList:

Public Member Functions

def __init__
 
def Populate
 Populate list. More...
 
def OnColumnClick (self, event)
 Sort by column. More...
 
def GetSortImages (self)
 Used by the ColumnSorterMixin, see wx/lib/mixins/listctrl.py. More...
 
def OnGetItemText (self, item, col)
 Get item text. More...
 
def OnGetItemAttr (self, item)
 Get item attributes. More...
 
def SortItems
 Sort items. More...
 
def Sorter (self, key1, key2)
 
def GetListCtrl (self)
 Used by listmix.ColumnSorterMixin. More...
 
def Search (self, index, pattern)
 Search projection by description Return first found item or None. More...
 

Data Fields

 sourceData
 
 attr1
 
 attr2
 
 il
 
 sm_up
 
 sm_dn
 
 itemDataMap
 
 itemIndexMap
 

Detailed Description

Generic list (for projections, ellipsoids, etc.)

Definition at line 446 of file wizard.py.

Constructor & Destructor Documentation

def wizard.ItemList.__init__ (   self,
  parent,
  columns,
  data = None 
)

Definition at line 449 of file wizard.py.

Member Function Documentation

def wizard.ItemList.GetListCtrl (   self)

Used by listmix.ColumnSorterMixin.

Definition at line 606 of file wizard.py.

def wizard.ItemList.GetSortImages (   self)

Used by the ColumnSorterMixin, see wx/lib/mixins/listctrl.py.

Definition at line 557 of file wizard.py.

References manager.VirtualAttributeList.sm_dn, wizard.ItemList.sm_dn, manager.GCP.sm_dn, manager.VirtualAttributeList.sm_up, wizard.ItemList.sm_up, and manager.GCP.sm_up.

def wizard.ItemList.OnColumnClick (   self,
  event 
)

Sort by column.

Definition at line 542 of file wizard.py.

References manager.VirtualAttributeList._col, wizard.ItemList._col, and tools.range.

def wizard.ItemList.OnGetItemAttr (   self,
  item 
)
def wizard.ItemList.Populate (   self,
  data = None,
  update = False 
)

Populate list.

Definition at line 508 of file wizard.py.

Referenced by wizard.ItemList.Search().

def wizard.ItemList.Search (   self,
  index,
  pattern 
)
def wizard.ItemList.SortItems (   self,
  sorter = cmp 
)

Field Documentation

wizard.ItemList.attr1

Definition at line 471 of file wizard.py.

Referenced by wizard.ItemList.OnGetItemAttr().

wizard.ItemList.attr2

Definition at line 473 of file wizard.py.

Referenced by wizard.ItemList.OnGetItemAttr().

wizard.ItemList.il

Definition at line 490 of file wizard.py.

wizard.ItemList.itemIndexMap
wizard.ItemList.sm_dn

Definition at line 493 of file wizard.py.

Referenced by wizard.ItemList.GetSortImages().

wizard.ItemList.sm_up

Definition at line 491 of file wizard.py.

Referenced by wizard.ItemList.GetSortImages().

wizard.ItemList.sourceData

Definition at line 459 of file wizard.py.

Referenced by wizard.ItemList.Search().


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