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

Public Member Functions

def __init__
 GRASS Attribute Table Manager window. More...
 
def OnDataRightUp
 Table description area, context menu. More...
 
def OnDataItemDelete
 Delete selected item(s) from the tlist (layer/category pair) More...
 
def OnDataItemDeleteAll
 Delete all items from the list. More...
 
def OnDataDrawSelected
 Reload table description. More...
 
def OnDataDrawSelectedZoom
 
def OnDataItemAdd
 Add new record to the attribute table. More...
 
def OnDataItemEdit
 Edit selected record of the attribute table. More...
 
def OnDataReload
 Reload tlist of records. More...
 
def OnDataSelectAll
 Select all items. More...
 
def OnDataSelectNone
 Deselect items. More...
 
def OnTableChangeType
 Data type for new column changed. More...
 
def OnTableRenameColumnName
 Editing column name to be added to the table. More...
 
def OnTableAddColumnName
 Editing column name to be added to the table. More...
 
def OnTableItemChange
 Rename column in the table. More...
 
def OnTableRightUp
 Table description area, context menu. More...
 
def OnTableItemDelete
 Delete selected item(s) from the list. More...
 
def OnTableItemDeleteAll
 Delete all items from the list. More...
 
def OnTableReload
 Reload table description. More...
 
def OnTableItemAdd
 Add new column to the table. More...
 
def OnLayerPageChanged
 Layer tab changed. More...
 
def OnPageChanged
 
def OnLayerRightUp
 Layer description area, context menu. More...
 
def OnChangeSql
 Switch simple/advanced sql statement. More...
 
def ApplyCommands
 Apply changes. More...
 
def OnApplySqlStatement
 Apply simple/advanced sql statement. More...
 
def ValidateSelectStatement
 Validate SQL select statement. More...
 
def OnCloseWindow
 Cancel button pressed. More...
 
def OnBuilder
 SQL Builder button pressed -> show the SQLBuilder dialog. More...
 
def OnBuilderEvt
 
def OnTextEnter
 
def OnDataItemActivated
 Item activated, highlight selected item. More...
 
def OnExtractSelected
 Extract vector objects selected in attribute browse window to new vector map. More...
 
def OnDeleteSelected
 Delete vector objects selected in attribute browse window (attribures and geometry) More...
 
def AddQueryMapLayer
 Redraw a map. More...
 
def UpdateDialog
 Updates dialog layout for given layer. More...
 
def GetVectorName
 Get vector name. More...
 
def LoadData
 Load data into list. More...
 

Data Fields

 vectorName
 
 parent
 
 treeItem
 
 editable
 
 cmdLog
 
 panel
 
 map
 
 mapdisplay
 
 log
 
 qlayer
 
 mapDBInfo
 
 builder
 
 listOfCommands
 
 listOfSQLStatements
 
 layerPage
 {layer: list, widgets...} More...
 
 notebook
 
 browsePage
 
 manageTablePage
 
 manageLayerPage
 
 btnQuit
 
 btnReload
 
 layer
 
 layerList
 
 manageLayerBook
 
 popupDataID1
 
 popupDataID2
 
 popupDataID3
 
 popupDataID4
 
 popupDataID5
 
 popupDataID6
 
 popupDataID7
 
 popupDataID8
 
 popupDataID9
 
 popupDataID10
 
 popupDataID11
 
 popupTableID1
 
 popupTableID2
 
 popupTableID3
 

Detailed Description

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

Constructor & Destructor Documentation

def manager.AttributeManager.__init__ (   self,
  parent,
  id = wx.ID_ANY,
  title = None,
  vectorName = None,
  item = None,
  log = None,
  selection = None,
  kwargs 
)

GRASS Attribute Table Manager window.

Parameters
parentparent window id window id
titlewindow title or None for default title
vetorNamename of vector map
itemitem from Layer Tree
loglog window
selectionname of page to be selected
kwagrsother wx.Frame's arguments

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

Member Function Documentation

def manager.AttributeManager.AddQueryMapLayer (   self)
def manager.AttributeManager.GetVectorName (   self)

Get vector name.

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

References manager.AttributeManager.vectorName.

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

Load data into list.

Parameters
layerlayer number
columnslist of columns for output
wherewhere statement
sqlfull sql statement
Returns
id of key column
-1 if key column is not displayed

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

References manager.AttributeManager.layerPage.

def manager.AttributeManager.OnApplySqlStatement (   self,
  event 
)
def manager.AttributeManager.OnBuilder (   self,
  event 
)

SQL Builder button pressed -> show the SQLBuilder dialog.

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

References manager.AttributeManager.builder, manager.AttributeManager.OnBuilderEvt(), and manager.AttributeManager.vectorName.

def manager.AttributeManager.OnChangeSql (   self,
  event 
)

Switch simple/advanced sql statement.

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

Referenced by manager.AttributeManager.OnLayerPageChanged().

def manager.AttributeManager.OnCloseWindow (   self,
  event 
)
def manager.AttributeManager.OnDataDrawSelected (   self,
  event 
)

Reload table description.

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

References wxdisplay.DisplayDriver._drawSelected, and manager.AttributeManager._drawSelected().

def manager.AttributeManager.OnDataDrawSelectedZoom (   self,
  event 
)
def manager.AttributeManager.OnDataItemActivated (   self,
  event 
)

Item activated, highlight selected item.

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

def manager.AttributeManager.OnDataItemAdd (   self,
  event 
)
def manager.AttributeManager.OnDataItemDelete (   self,
  event 
)
def manager.AttributeManager.OnDataReload (   self,
  event 
)

Reload tlist of records.

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

References manager.AttributeManager.listOfSQLStatements, and manager.AttributeManager.OnApplySqlStatement().

def manager.AttributeManager.OnDataRightUp (   self,
  event 
)

Table description area, context menu.

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

def manager.AttributeManager.OnDataSelectAll (   self,
  event 
)
def manager.AttributeManager.OnDataSelectNone (   self,
  event 
)
def manager.AttributeManager.OnDeleteSelected (   self,
  event 
)
def manager.AttributeManager.OnExtractSelected (   self,
  event 
)
def manager.AttributeManager.OnLayerPageChanged (   self,
  event 
)
def manager.AttributeManager.OnLayerRightUp (   self,
  event 
)

Layer description area, context menu.

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

def manager.AttributeManager.OnPageChanged (   self,
  event 
)
def manager.AttributeManager.OnTableAddColumnName (   self,
  event 
)

Editing column name to be added to the table.

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

References manager.VirtualAttributeList.layer, manager.AttributeManager.layer, and manager.AttributeManager.layerPage.

def manager.AttributeManager.OnTableChangeType (   self,
  event 
)

Data type for new column changed.

Enable or disable data length widget

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

References manager.VirtualAttributeList.layer, manager.AttributeManager.layer, and manager.AttributeManager.layerPage.

def manager.AttributeManager.OnTableItemAdd (   self,
  event 
)

Add new column to the table.

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

def manager.AttributeManager.OnTableItemChange (   self,
  event 
)
def manager.AttributeManager.OnTableItemDelete (   self,
  event 
)
def manager.AttributeManager.OnTableItemDeleteAll (   self,
  event 
)
def manager.AttributeManager.OnTableReload (   self,
  event = None 
)
def manager.AttributeManager.OnTableRenameColumnName (   self,
  event 
)

Editing column name to be added to the table.

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

References manager.VirtualAttributeList.layer, manager.AttributeManager.layer, and manager.AttributeManager.layerPage.

def manager.AttributeManager.OnTableRightUp (   self,
  event 
)

Table description area, context menu.

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

def manager.AttributeManager.OnTextEnter (   self,
  event 
)

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

def manager.AttributeManager.ValidateSelectStatement (   self,
  statement 
)

Validate SQL select statement.

Returns
(columns, where)
None on error

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

References manager.VirtualAttributeList.layer, and manager.AttributeManager.layer.

Referenced by manager.AttributeManager.OnApplySqlStatement().

Field Documentation

manager.AttributeManager.browsePage

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

manager.AttributeManager.btnQuit

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

manager.AttributeManager.btnReload

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

manager.AttributeManager.builder
manager.AttributeManager.cmdLog

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

Referenced by manager.AttributeManager.OnExtractSelected().

manager.AttributeManager.editable

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

manager.AttributeManager.layerList

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

manager.AttributeManager.listOfCommands
manager.AttributeManager.manageLayerBook

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

manager.AttributeManager.manageLayerPage

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

manager.AttributeManager.manageTablePage

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

manager.AttributeManager.mapdisplay
manager.AttributeManager.notebook
manager.AttributeManager.popupDataID1

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

manager.AttributeManager.popupDataID10

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

manager.AttributeManager.popupDataID11

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

manager.AttributeManager.popupDataID2

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

manager.AttributeManager.popupDataID3

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

manager.AttributeManager.popupDataID4

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

manager.AttributeManager.popupDataID5

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

manager.AttributeManager.popupDataID6

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

manager.AttributeManager.popupDataID7

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

manager.AttributeManager.popupDataID8

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

manager.AttributeManager.popupDataID9

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

manager.AttributeManager.popupTableID1

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

manager.AttributeManager.popupTableID2

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

manager.AttributeManager.popupTableID3

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

manager.AttributeManager.qlayer

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

Referenced by manager.AttributeManager.AddQueryMapLayer().

manager.AttributeManager.treeItem

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

Referenced by manager.AttributeManager.OnDataItemDeleteAll().


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