GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
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 | |
Definition at line 31 of file dbmgr/dialogs.py.
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.
parent | |
map | vector map |
query | query coordinates and distance (used for v.edit) |
cats | {layer: cats} |
line | feature id (requested for cats) |
style | |
pos | |
action | (add, update, display) |
ignoreError | True to ignore errors |
Definition at line 36 of file dbmgr/dialogs.py.
def dialogs.DisplayAttributesDialog.GetCats | ( | self | ) |
Get id of selected vector object or 'None' if nothing selected.
id | if 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.
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 | |||
) |
Definition at line 339 of file dbmgr/dialogs.py.
References dialogs.DisplayAttributesDialog.cats, dialogs.DisplayAttributesDialog.fid, and dialogs.DisplayAttributesDialog.UpdateDialog().
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 | |||
) |
Submit records.
Definition at line 317 of file dbmgr/dialogs.py.
References dialogs.DisplayAttributesDialog.GetSQLString(), dialogs.DisplayAttributesDialog.OnClose(), and gcmd.RunCommand().
def dialogs.DisplayAttributesDialog.SetColumnValue | ( | self, | |
layer, | |||
column, | |||
value | |||
) |
Set attrbute value.
column | column name |
value | value |
Definition at line 550 of file dbmgr/dialogs.py.
def dialogs.DisplayAttributesDialog.UpdateDialog | ( | self, | |
map = None , |
|||
query = None , |
|||
cats = None , |
|||
fid = -1 , |
|||
action = None |
|||
) |
Update dialog.
map | name of vector map |
query | |
cats | |
fid | feature id |
action | add, update, display or None |
Definition at line 358 of file dbmgr/dialogs.py.
References dialogs.DisplayAttributesDialog.action, dialogs.DisplayAttributesDialog.cats, dialogs.DisplayAttributesDialog.fid, dialogs.DisplayAttributesDialog.map, dialogs.DisplayAttributesDialog.mapDBInfo, dialogs.DisplayAttributesDialog.notebook, dialogs.DisplayAttributesDialog.OnSQLStatement(), and tools.range.
Referenced by dialogs.DisplayAttributesDialog.GetFid(), and dialogs.DisplayAttributesDialog.OnFeature().
dialogs.DisplayAttributesDialog.action |
Definition at line 55 of file dbmgr/dialogs.py.
Referenced by dialogs.DisplayAttributesDialog.GetSQLString(), toolbars.VDigitToolbar.OnAddArea(), toolbars.VDigitToolbar.OnAddBoundary(), toolbars.VDigitToolbar.OnAddCentroid(), toolbars.VDigitToolbar.OnAdditionalToolMenu(), toolbars.VDigitToolbar.OnAddLine(), toolbars.VDigitToolbar.OnAddPoint(), toolbars.VDigitToolbar.OnAddVertex(), toolbars.VDigitToolbar.OnBreak(), toolbars.VDigitToolbar.OnConnect(), toolbars.VDigitToolbar.OnCopy(), toolbars.VDigitToolbar.OnCopyAttrb(), toolbars.VDigitToolbar.OnCopyCats(), toolbars.VDigitToolbar.OnDeleteLine(), toolbars.VDigitToolbar.OnDisplayAttr(), toolbars.VDigitToolbar.OnDisplayCats(), toolbars.VDigitToolbar.OnEditLine(), toolbars.VDigitToolbar.OnFlip(), toolbars.VDigitToolbar.OnMerge(), toolbars.VDigitToolbar.OnMoveLine(), toolbars.VDigitToolbar.OnMoveVertex(), toolbars.VDigitToolbar.OnQuery(), toolbars.VDigitToolbar.OnRemoveVertex(), toolbars.VDigitToolbar.OnSnap(), toolbars.VDigitToolbar.OnSplitLine(), toolbars.BaseToolbar.OnTool(), toolbars.VDigitToolbar.OnTool(), toolbars.VDigitToolbar.OnTypeConversion(), toolbars.VDigitToolbar.OnZBulk(), toolbars.BaseToolbar.SelectDefault(), and dialogs.DisplayAttributesDialog.UpdateDialog().
dialogs.DisplayAttributesDialog.cats |
Definition at line 59 of file dbmgr/dialogs.py.
Referenced by dialogs.VDigitCategoryDialog.ApplyChanges(), wxdigit.IVDigit.CopyCats(), dialogs.DisplayAttributesDialog.GetCats(), wxdigit.IVDigit.InitCats(), dialogs.VDigitCategoryDialog.OnAddCat(), dialogs.VDigitCategoryDialog.OnEndEdit(), dialogs.VDigitCategoryDialog.OnFeature(), dialogs.DisplayAttributesDialog.OnFeature(), dialogs.VDigitCategoryDialog.OnItemDelete(), dialogs.VDigitCategoryDialog.OnItemDeleteAll(), dialogs.VDigitCategoryDialog.OnReload(), wxdigit.IVDigit.SetCategory(), dialogs.DisplayAttributesDialog.UpdateDialog(), and dialogs.VDigitCategoryDialog.UpdateDialog().
dialogs.DisplayAttributesDialog.closeDialog |
Definition at line 93 of file dbmgr/dialogs.py.
dialogs.DisplayAttributesDialog.fid |
Definition at line 60 of file dbmgr/dialogs.py.
Referenced by dialogs.VDigitCategoryDialog.ApplyChanges(), dialogs.DisplayAttributesDialog.GetCats(), dialogs.DisplayAttributesDialog.GetFid(), dialogs.VDigitCategoryDialog.OnAddCat(), dialogs.VDigitCategoryDialog.OnApply(), dialogs.VDigitCategoryDialog.OnEndEdit(), dialogs.VDigitCategoryDialog.OnFeature(), dialogs.DisplayAttributesDialog.OnFeature(), dialogs.VDigitCategoryDialog.OnItemDelete(), dialogs.VDigitCategoryDialog.OnItemDeleteAll(), dialogs.VDigitCategoryDialog.OnReload(), dialogs.DisplayAttributesDialog.UpdateDialog(), and dialogs.VDigitCategoryDialog.UpdateDialog().
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.map |
Definition at line 54 of file dbmgr/dialogs.py.
Referenced by gselect.VectorDBInfo.GetName(), manager.AttributeManager.OnDataItemDeleteAll(), dialogs.OptDialog.OnSetMap(), dialogs.OptDialog.OnSetOpt(), vinfo.VectorDBInfo.SelectByPoint(), dialogs.DisplayAttributesDialog.UpdateDialog(), and dialogs.OptDialog.UpdateSettings().
dialogs.DisplayAttributesDialog.mapDBInfo |
Definition at line 63 of file dbmgr/dialogs.py.
Referenced by manager.AttributeManager.ApplyCommands(), manager.LayerBook.OnAddLayer(), manager.AttributeManager.OnDataItemEdit(), manager.LayerBook.OnDeleteLayer(), manager.LayerBook.OnModifyLayer(), manager.VirtualAttributeList.Update(), dialogs.DisplayAttributesDialog.UpdateDialog(), and manager.AttributeManager.UpdateDialog().
dialogs.DisplayAttributesDialog.noFoundMsg |
Definition at line 105 of file dbmgr/dialogs.py.
dialogs.DisplayAttributesDialog.notebook |
Definition at line 91 of file dbmgr/dialogs.py.
Referenced by preferences.PreferencesDialog.__init__(), frame.GMFrame.IsPaneShown(), and dialogs.DisplayAttributesDialog.UpdateDialog().
dialogs.DisplayAttributesDialog.parent |
Definition at line 53 of file dbmgr/dialogs.py.
Referenced by model.ModelLoop.__init__(), wxdigit.VDigitError.Database(), wxdigit.VDigitError.DbExecute(), wxdigit.VDigitError.DbLink(), wxdigit.VDigitError.DeadLine(), wxdigit.VDigitError.Driver(), wxdigit.VDigitError.FeatureType(), colorrules.RulesPanel.LoadRules(), wxdigit.VDigitError.NoMap(), forms.TaskFrame.OnCancel(), manager.AttributeManager.OnCloseWindow(), manager.VirtualAttributeList.OnColumnCompute(), manager.AttributeManager.OnDataItemDeleteAll(), forms.TaskFrame.OnDone(), frame.ModelFrame.OnHelp(), mapwindow.GLWindow.OnLeftUp(), mapwindow.BufferedWindow.OnLeftUp(), frame.PsMapBufferedWindow.OnLeftUp(), dialogs.DecorationDialog.OnOptions(), goutput.GMConsole.OnOutputSave(), forms.TaskFrame.OnRun(), toolbars.VDigitToolbar.OnSelectMap(), gselect.GdalSelect.OnSetDsn(), toolbars.LMNvizToolbar.OnSettings(), toolbars.VDigitToolbar.OnSettings(), toolbars.BaseToolbar.OnTool(), forms.CmdPanel.OnUpdateSelection(), toolbars.VDigitToolbar.OnZBulk(), wxdigit.VDigitError.ReadLine(), goutput.CmdThread.run(), forms.UpdateQThread.run(), goutput.GMConsole.RunCmd(), toolbars.VDigitToolbar.StopEditing(), colorrules.VectorColorTable.UpdateColorColumn(), mapwindow.BufferedWindow.UpdateMap(), and wxdigit.VDigitError.WriteLine().