GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
manager.VirtualAttributeList Class Reference
Inheritance diagram for manager.VirtualAttributeList:
Collaboration diagram for manager.VirtualAttributeList:

Public Member Functions

def __init__
 
def Update
 Update list according new mapDBInfo description. More...
 
def LoadData
 Load data into list. More...
 
def AddDataRow
 Add row to the data list. More...
 
def OnItemSelected
 Item selected. More...
 
def OnItemDeselected
 Item deselected. More...
 
def GetSelectedItems
 Return list of selected items (category numbers) More...
 
def GetColumnText
 Return column text. More...
 
def GetListCtrl
 Returt list. More...
 
def OnGetItemText
 Get item text. More...
 
def OnGetItemAttr
 Get item attributes. More...
 
def OnColumnMenu
 Column heading right mouse button -> pop-up menu. More...
 
def OnColumnSort
 Column heading left mouse button -> sorting. More...
 
def OnColumnSortAsc
 Sort values of selected column (ascending) More...
 
def OnColumnSortDesc
 Sort values of selected column (descending) More...
 
def OnColumnCompute
 Compute values of selected column. More...
 
def ColumnSort
 Sort values of selected column (self._col) More...
 
def SortItems
 Sort items. More...
 
def Sorter
 
def GetSortImages
 Used by the ColumnSorterMixin, see wx/lib/mixins/listctrl.py. More...
 
def IsEmpty
 Check if list if empty. More...
 

Data Fields

 parent
 
 log
 
 mapDBInfo
 
 layer
 
 columns
 
 attr1
 
 attr2
 
 il
 
 sm_up
 
 sm_dn
 
 itemDataMap
 
 itemIndexMap
 
 itemCatsMap
 
 popupID1
 
 popupID2
 
 popupID3
 
 popupID4
 
 popupID5
 
 popupID6
 
 popupID7
 
 popupID8
 
 popupID9
 
 popupID10
 
 popupID11
 
 popupID12
 

Detailed Description

Support virtual list class

Definition at line 73 of file dbmgr/manager.py.

Constructor & Destructor Documentation

def manager.VirtualAttributeList.__init__ (   self,
  parent,
  log,
  mapDBInfo,
  layer 
)

Definition at line 77 of file dbmgr/manager.py.

Member Function Documentation

def manager.VirtualAttributeList.AddDataRow (   self,
  i,
  record,
  columns,
  keyId 
)
def manager.VirtualAttributeList.ColumnSort (   self)

Sort values of selected column (self._col)

Definition at line 479 of file dbmgr/manager.py.

References tools.range.

Referenced by manager.VirtualAttributeList.OnColumnSort().

def manager.VirtualAttributeList.GetColumnText (   self,
  index,
  col 
)

Return column text.

Definition at line 353 of file dbmgr/manager.py.

References model.Model.GetItem().

def manager.VirtualAttributeList.GetListCtrl (   self)

Returt list.

Definition at line 358 of file dbmgr/manager.py.

def manager.VirtualAttributeList.GetSelectedItems (   self)

Return list of selected items (category numbers)

Definition at line 343 of file dbmgr/manager.py.

def manager.VirtualAttributeList.GetSortImages (   self)

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

Definition at line 524 of file dbmgr/manager.py.

References manager.VirtualAttributeList.sm_dn, and manager.VirtualAttributeList.sm_up.

def manager.VirtualAttributeList.IsEmpty (   self)

Check if list if empty.

Definition at line 528 of file dbmgr/manager.py.

References manager.VirtualAttributeList.columns.

def manager.VirtualAttributeList.LoadData (   self,
  layer,
  columns = None,
  where = None,
  sql = None 
)

Load data into list.

Parameters
layerlayer number
columnslist of columns for output (-> v.db.select)
wherewhere statement (-> v.db.select)
sqlfull sql statement (-> db.select)
Returns
id of key column
-1 if key column is not displayed

Definition at line 134 of file dbmgr/manager.py.

References manager.VirtualAttributeList.columns, and gcmd.RunCommand().

Referenced by manager.VirtualAttributeList.OnColumnCompute(), and manager.VirtualAttributeList.Update().

def manager.VirtualAttributeList.OnColumnMenu (   self,
  event 
)

Column heading right mouse button -> pop-up menu.

Definition at line 375 of file dbmgr/manager.py.

References manager.VirtualAttributeList._col.

def manager.VirtualAttributeList.OnColumnSort (   self,
  event 
)

Column heading left mouse button -> sorting.

Definition at line 425 of file dbmgr/manager.py.

References manager.VirtualAttributeList._col, and manager.VirtualAttributeList.ColumnSort().

def manager.VirtualAttributeList.OnColumnSortAsc (   self,
  event 
)

Sort values of selected column (ascending)

Definition at line 433 of file dbmgr/manager.py.

References manager.VirtualAttributeList._col.

def manager.VirtualAttributeList.OnColumnSortDesc (   self,
  event 
)

Sort values of selected column (descending)

Definition at line 438 of file dbmgr/manager.py.

References manager.VirtualAttributeList._col.

def manager.VirtualAttributeList.OnGetItemAttr (   self,
  item 
)

Get item attributes.

Definition at line 368 of file dbmgr/manager.py.

References manager.VirtualAttributeList.attr1, and manager.VirtualAttributeList.attr2.

def manager.VirtualAttributeList.OnGetItemText (   self,
  item,
  col 
)
def manager.VirtualAttributeList.OnItemDeselected (   self,
  event 
)

Item deselected.

Remove item from selected cats...

Definition at line 334 of file dbmgr/manager.py.

def manager.VirtualAttributeList.OnItemSelected (   self,
  event 
)

Item selected.

Add item to selected cats...

Definition at line 325 of file dbmgr/manager.py.

Referenced by prompt.GPromptSTC.__init__().

def manager.VirtualAttributeList.SortItems (   self,
  sorter = cmp 
)

Field Documentation

manager.VirtualAttributeList.attr1
manager.VirtualAttributeList.attr2
manager.VirtualAttributeList.il

Definition at line 106 of file dbmgr/manager.py.

manager.VirtualAttributeList.itemCatsMap

Definition at line 213 of file dbmgr/manager.py.

Referenced by manager.VirtualAttributeList.AddDataRow().

manager.VirtualAttributeList.popupID1

Definition at line 382 of file dbmgr/manager.py.

manager.VirtualAttributeList.popupID10

Definition at line 391 of file dbmgr/manager.py.

Referenced by manager.VirtualAttributeList.OnColumnCompute().

manager.VirtualAttributeList.popupID11

Definition at line 392 of file dbmgr/manager.py.

Referenced by manager.VirtualAttributeList.OnColumnCompute().

manager.VirtualAttributeList.popupID12

Definition at line 393 of file dbmgr/manager.py.

Referenced by manager.VirtualAttributeList.OnColumnCompute().

manager.VirtualAttributeList.popupID2

Definition at line 383 of file dbmgr/manager.py.

manager.VirtualAttributeList.popupID3

Definition at line 384 of file dbmgr/manager.py.

manager.VirtualAttributeList.popupID4

Definition at line 385 of file dbmgr/manager.py.

Referenced by manager.VirtualAttributeList.OnColumnCompute().

manager.VirtualAttributeList.popupID5

Definition at line 386 of file dbmgr/manager.py.

Referenced by manager.VirtualAttributeList.OnColumnCompute().

manager.VirtualAttributeList.popupID6

Definition at line 387 of file dbmgr/manager.py.

Referenced by manager.VirtualAttributeList.OnColumnCompute().

manager.VirtualAttributeList.popupID7

Definition at line 388 of file dbmgr/manager.py.

Referenced by manager.VirtualAttributeList.OnColumnCompute().

manager.VirtualAttributeList.popupID8

Definition at line 389 of file dbmgr/manager.py.

Referenced by manager.VirtualAttributeList.OnColumnCompute().

manager.VirtualAttributeList.popupID9

Definition at line 390 of file dbmgr/manager.py.

Referenced by manager.VirtualAttributeList.OnColumnCompute().

manager.VirtualAttributeList.sm_dn
manager.VirtualAttributeList.sm_up

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