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

Public Member Functions

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

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

def dialogs.DisplayAttributesDialog.GetCats (   self)

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

Parameters
idif true return ids otherwise cats

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

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

def dialogs.DisplayAttributesDialog.GetFid (   self)

Get selected feature id.

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

References dialogs.DisplayAttributesDialog.fid, and dialogs.DisplayAttributesDialog.UpdateDialog().

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 190 of file dbmgr/dialogs.py.

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

Referenced by dialogs.DisplayAttributesDialog.OnSubmit().

def dialogs.DisplayAttributesDialog.IsFound (   self)

Check for status.

Returns
True on attributes found
False attributes not found

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

def dialogs.DisplayAttributesDialog.OnClose (   self,
  event 
)

Closes dialog and removes query layer.

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

Referenced by dialogs.GroupDialog.OnOk(), and dialogs.DisplayAttributesDialog.OnSubmit().

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

Reset form.

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

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

def dialogs.DisplayAttributesDialog.OnSQLStatement (   self,
  event 
)

Update SQL statement.

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

Referenced by dialogs.DisplayAttributesDialog.UpdateDialog().

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

Set attrbute value.

Parameters
columncolumn name
valuevalue

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

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

Field Documentation

dialogs.DisplayAttributesDialog.closeDialog

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

dialogs.DisplayAttributesDialog.fidMulti

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

dialogs.DisplayAttributesDialog.fidText

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

dialogs.DisplayAttributesDialog.noFoundMsg

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

dialogs.DisplayAttributesDialog.notebook

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