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

Public Member Functions

def __init__
 Standard dialog used to add/update/display attributes linked to the vector map.
def OnSQLStatement
 Update SQL statement.
def IsFound
 Check for status.
def GetSQLString
 Create SQL statement string based on self.sqlStatement.
def OnReset
 Reset form.
def OnCancel
 Cancel button pressed.
def OnSubmit
 Submit records.
def OnFeature
def GetCats
 Get id of selected vector object or 'None' if nothing selected.
def GetFid
 Get selected feature id.
def UpdateDialog
 Update dialog.
def SetColumnValue
 Set attrbute value.

Data Fields

 parent
 map
 action
 cats
 fid
 mapDBInfo
 notebook
 closeDialog
 fidMulti
 fidText
 noFoundMsg

Detailed Description

Definition at line 31 of file dbmgr/dialogs.py.


Constructor & Destructor Documentation

def dialogs.DisplayAttributesDialog.__init__ (   self,
  parent,
  map,
  query = None,
  cats = None,
  line = None,
  style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER,
  pos = wx.DefaultPosition,
  action = "add",
  ignoreError = False 
)

Standard dialog used to add/update/display attributes linked to the vector map.

Attribute data can be selected based on layer and category number or coordinates.

Parameters:
parent
mapvector map
queryquery coordinates and distance (used for v.edit)
cats{layer: cats}
linefeature id (requested for cats)
style
pos
action(add, update, display)
ignoreErrorTrue to ignore errors

Definition at line 36 of file dbmgr/dialogs.py.


Member Function Documentation

Get id of selected vector object or 'None' if nothing selected.

Parameters:
idif true return ids otherwise cats

Definition at line 340 of file dbmgr/dialogs.py.

References dialogs.DisplayAttributesDialog.cats, and dialogs.DisplayAttributesDialog.fid.

def dialogs.DisplayAttributesDialog.GetSQLString (   self,
  updateValues = False 
)

Create SQL statement string based on self.sqlStatement.

Show error message when invalid values are entered.

If updateValues is True, update dataFrame according to values in textfields.

Definition at line 189 of file dbmgr/dialogs.py.

References dialogs.DisplayAttributesDialog.action, widgets.GetValue(), and tools.range.

Referenced by dialogs.DisplayAttributesDialog.OnSubmit().

Check for status.

Returns:
True on attributes found
False attributes not found

Definition at line 181 of file dbmgr/dialogs.py.

def dialogs.DisplayAttributesDialog.OnReset (   self,
  event = None 
)

Reset form.

Definition at line 281 of file dbmgr/dialogs.py.

References tools.range, and widgets.SetValue().

Update SQL statement.

Definition at line 177 of file dbmgr/dialogs.py.

Referenced by dialogs.DisplayAttributesDialog.UpdateDialog().

def dialogs.DisplayAttributesDialog.SetColumnValue (   self,
  layer,
  column,
  value 
)

Set attrbute value.

Parameters:
columncolumn name
valuevalue

Definition at line 547 of file dbmgr/dialogs.py.

def dialogs.DisplayAttributesDialog.UpdateDialog (   self,
  map = None,
  query = None,
  cats = None,
  fid = -1,
  action = None 
)

Field Documentation


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