GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Public Member Functions | |
def | __init__ |
Dialog used to display/modify categories of vector objects. More... | |
def | GetListCtrl |
Used by ColumnSorterMixin. More... | |
def | OnColClick |
Click on column header (order by) More... | |
def | OnBeginEdit |
Editing of item started. More... | |
def | OnEndEdit |
Finish editing of item. More... | |
def | OnRightDown |
Mouse right button down. More... | |
def | OnRightUp |
Mouse right button up. More... | |
def | OnItemSelected |
Item selected. More... | |
def | OnItemDelete |
Delete selected item(s) from the list (layer/category pair) More... | |
def | OnItemDeleteAll |
Delete all items from the list. More... | |
def | OnFeature |
Feature id changed (on duplicates) More... | |
def | OnReload |
Reload button pressed. More... | |
def | OnCancel |
Cancel button pressed. More... | |
def | OnApply |
Apply button pressed. More... | |
def | ApplyChanges |
Apply changes. More... | |
def | OnOK |
OK button pressed. More... | |
def | OnAddCat |
Button 'Add' new category pressed. More... | |
def | GetLine |
Get id of selected line of 'None' if no line is selected. More... | |
def | UpdateDialog |
Update dialog. More... | |
Data Fields | |
parent | |
digit | |
vectorName | |
cats | |
cats_orig | |
list | |
fid | |
itemDataMap | |
fidMulti | |
fidText | |
layerNew | |
catNew | |
popupID1 | |
popupID2 | |
popupID3 | |
line | |
Definition at line 31 of file vdigit/dialogs.py.
def dialogs.VDigitCategoryDialog.__init__ | ( | self, | |
parent, | |||
title, | |||
vectorName, | |||
query = None , |
|||
cats = None , |
|||
style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER , |
|||
kwargs | |||
) |
Dialog used to display/modify categories of vector objects.
parent | |
title | dialog title |
query | {coordinates, qdist} - used by v.edit/v.what |
cats | directory of lines (layer/categories) - used by vdigit |
style | dialog style |
Definition at line 34 of file vdigit/dialogs.py.
def dialogs.VDigitCategoryDialog.ApplyChanges | ( | self, | |
fid | |||
) |
Apply changes.
fid | feature id |
Definition at line 389 of file vdigit/dialogs.py.
References dialogs.VDigitCategoryDialog.cats, dialogs.DisplayAttributesDialog.cats, instructions.PageSetup.cats, dialogs.VDigitCategoryDialog.cats_orig, dialogs.DisplayAttributesDialog.fid, and dialogs.VDigitCategoryDialog.fid.
Referenced by dialogs.VDigitCategoryDialog.OnApply().
def dialogs.VDigitCategoryDialog.GetLine | ( | self | ) |
Get id of selected line of 'None' if no line is selected.
Definition at line 478 of file vdigit/dialogs.py.
def dialogs.VDigitCategoryDialog.GetListCtrl | ( | self | ) |
Used by ColumnSorterMixin.
Definition at line 198 of file vdigit/dialogs.py.
References ogc_services.WMSDialog.list, dialogs.VDigitCategoryDialog.list, mapdisplay.MapFrame.list, frame.VariablePanel.list, frame.ItemPanel.list, and dialogs.ImportDialog.list.
def dialogs.VDigitCategoryDialog.OnAddCat | ( | self, | |
event | |||
) |
Button 'Add' new category pressed.
Definition at line 445 of file vdigit/dialogs.py.
References dialogs.VDigitCategoryDialog.cats, dialogs.DisplayAttributesDialog.cats, instructions.PageSetup.cats, dialogs.DisplayAttributesDialog.fid, dialogs.VDigitCategoryDialog.fid, prompt.TextCtrlAutoComplete.itemDataMap, dialogs.VDigitCategoryDialog.itemDataMap, manager.VirtualAttributeList.itemDataMap, wizard.ItemList.itemDataMap, dialogs.ModelListCtrl.itemDataMap, dialogs.VariableListCtrl.itemDataMap, dialogs.ItemListCtrl.itemDataMap, and manager.GCP.itemDataMap.
def dialogs.VDigitCategoryDialog.OnApply | ( | self, | |
event | |||
) |
Apply button pressed.
Definition at line 381 of file vdigit/dialogs.py.
References dialogs.VDigitCategoryDialog.ApplyChanges(), dialogs.GroupDialog.ApplyChanges(), dialogs.DisplayAttributesDialog.fid, and dialogs.VDigitCategoryDialog.fid.
Referenced by dialogs.VDigitCategoryDialog.OnOK(), dialogs.TextDialog.OnOk(), dialogs.OptDialog.OnOk(), dialogs.TextDialog.OnSave(), and dialogs.OptDialog.OnSave().
def dialogs.VDigitCategoryDialog.OnBeginEdit | ( | self, | |
event | |||
) |
Editing of item started.
Definition at line 208 of file vdigit/dialogs.py.
def dialogs.VDigitCategoryDialog.OnCancel | ( | self, | |
event | |||
) |
Cancel button pressed.
Definition at line 369 of file vdigit/dialogs.py.
References dialogs.VDigitCategoryDialog.digit, and mapdisplay.MapFrame.digit.
Referenced by dialogs.VDigitCategoryDialog.OnOK(), and dialogs.DxfImportDialog.OnRun().
def dialogs.VDigitCategoryDialog.OnColClick | ( | self, | |
event | |||
) |
Click on column header (order by)
Definition at line 203 of file vdigit/dialogs.py.
def dialogs.VDigitCategoryDialog.OnEndEdit | ( | self, | |
event | |||
) |
Finish editing of item.
Definition at line 213 of file vdigit/dialogs.py.
References dialogs.VDigitCategoryDialog.cats, dialogs.DisplayAttributesDialog.cats, instructions.PageSetup.cats, dialogs.DisplayAttributesDialog.fid, and dialogs.VDigitCategoryDialog.fid.
def dialogs.VDigitCategoryDialog.OnFeature | ( | self, | |
event | |||
) |
Feature id changed (on duplicates)
Definition at line 310 of file vdigit/dialogs.py.
References dialogs.VDigitCategoryDialog.cats, dialogs.DisplayAttributesDialog.cats, instructions.PageSetup.cats, dialogs.DisplayAttributesDialog.fid, dialogs.VDigitCategoryDialog.fid, prompt.TextCtrlAutoComplete.itemDataMap, dialogs.VDigitCategoryDialog.itemDataMap, manager.VirtualAttributeList.itemDataMap, wizard.ItemList.itemDataMap, dialogs.ModelListCtrl.itemDataMap, dialogs.VariableListCtrl.itemDataMap, dialogs.ItemListCtrl.itemDataMap, manager.GCP.itemDataMap, max, gcmd.RunCommand(), dialogs.VDigitCategoryDialog.vectorName, manager.AttributeManager.vectorName, and dialogs.VPropertiesDialog.vectorName.
def dialogs.VDigitCategoryDialog.OnItemDelete | ( | self, | |
event | |||
) |
Delete selected item(s) from the list (layer/category pair)
Definition at line 288 of file vdigit/dialogs.py.
References dialogs.VDigitCategoryDialog.cats, dialogs.DisplayAttributesDialog.cats, instructions.PageSetup.cats, dialogs.DisplayAttributesDialog.fid, and dialogs.VDigitCategoryDialog.fid.
def dialogs.VDigitCategoryDialog.OnItemDeleteAll | ( | self, | |
event | |||
) |
Delete all items from the list.
Definition at line 302 of file vdigit/dialogs.py.
References dialogs.VDigitCategoryDialog.cats, dialogs.DisplayAttributesDialog.cats, instructions.PageSetup.cats, dialogs.DisplayAttributesDialog.fid, and dialogs.VDigitCategoryDialog.fid.
def dialogs.VDigitCategoryDialog.OnItemSelected | ( | self, | |
event | |||
) |
Item selected.
Definition at line 283 of file vdigit/dialogs.py.
def dialogs.VDigitCategoryDialog.OnOK | ( | self, | |
event | |||
) |
OK button pressed.
Definition at line 439 of file vdigit/dialogs.py.
References preferences.PreferencesBaseDialog.OnApply(), dialogs.VDigitCategoryDialog.OnApply(), sqlbuilder.SQLFrame.OnApply(), preferences.PreferencesDialog.OnApply(), colorrules.ColorTable.OnApply(), dialogs.MapDialog.OnApply(), preferences.NvizPreferencesDialog.OnApply(), forms.TaskFrame.OnApply(), dialogs.GroupDialog.OnApply(), dialogs.RasterDialog.OnApply(), dialogs.MainVectorDialog.OnApply(), colorrules.VectorColorTable.OnApply(), dialogs.SetOpacityDialog.OnApply(), manager.GrSettingsDialog.OnApply(), dialogs.ModelDataDialog.OnCancel(), preferences.PreferencesBaseDialog.OnCancel(), ogc_services.WMSDialog.OnCancel(), dialogs.ModelSearchDialog.OnCancel(), dialogs.VDigitCategoryDialog.OnCancel(), dialogs.RegionDef.OnCancel(), colorrules.ColorTable.OnCancel(), dialogs.MapDialog.OnCancel(), dialogs.DecorationDialog.OnCancel(), forms.TaskFrame.OnCancel(), and colorrules.VectorColorTable.OnCancel().
def dialogs.VDigitCategoryDialog.OnReload | ( | self, | |
event | |||
) |
Reload button pressed.
Definition at line 357 of file vdigit/dialogs.py.
References dialogs.VDigitCategoryDialog.cats, dialogs.DisplayAttributesDialog.cats, instructions.PageSetup.cats, dialogs.VDigitCategoryDialog.cats_orig, dialogs.DisplayAttributesDialog.fid, dialogs.VDigitCategoryDialog.fid, prompt.TextCtrlAutoComplete.itemDataMap, dialogs.VDigitCategoryDialog.itemDataMap, manager.VirtualAttributeList.itemDataMap, wizard.ItemList.itemDataMap, dialogs.ModelListCtrl.itemDataMap, dialogs.VariableListCtrl.itemDataMap, dialogs.ItemListCtrl.itemDataMap, and manager.GCP.itemDataMap.
def dialogs.VDigitCategoryDialog.OnRightDown | ( | self, | |
event | |||
) |
Mouse right button down.
Definition at line 246 of file vdigit/dialogs.py.
def dialogs.VDigitCategoryDialog.OnRightUp | ( | self, | |
event | |||
) |
Mouse right button up.
Definition at line 259 of file vdigit/dialogs.py.
def dialogs.VDigitCategoryDialog.UpdateDialog | ( | self, | |
query = None , |
|||
cats = None |
|||
) |
Update dialog.
query | {coordinates, distance} - v.what |
cats | directory layer/cats - vdigit Return True if updated otherwise False |
Definition at line 483 of file vdigit/dialogs.py.
References dialogs.VDigitCategoryDialog._getCategories(), dialogs.VDigitCategoryDialog.cats, dialogs.DisplayAttributesDialog.cats, instructions.PageSetup.cats, dialogs.VDigitCategoryDialog.cats_orig, dialogs.DisplayAttributesDialog.fid, dialogs.VDigitCategoryDialog.fid, prompt.TextCtrlAutoComplete.itemDataMap, dialogs.VDigitCategoryDialog.itemDataMap, manager.VirtualAttributeList.itemDataMap, wizard.ItemList.itemDataMap, dialogs.ModelListCtrl.itemDataMap, dialogs.VariableListCtrl.itemDataMap, dialogs.ItemListCtrl.itemDataMap, manager.GCP.itemDataMap, dialogs.VDigitCategoryDialog.list, and max.
dialogs.VDigitCategoryDialog.catNew |
Definition at line 124 of file vdigit/dialogs.py.
dialogs.VDigitCategoryDialog.cats |
Definition at line 50 of file vdigit/dialogs.py.
Referenced by dialogs.VDigitCategoryDialog.ApplyChanges(), wxdigit.IVDigit.CopyCats(), wxdigit.IVDigit.InitCats(), dialogs.VDigitCategoryDialog.OnAddCat(), dialogs.VDigitCategoryDialog.OnEndEdit(), dialogs.VDigitCategoryDialog.OnFeature(), dialogs.VDigitCategoryDialog.OnItemDelete(), dialogs.VDigitCategoryDialog.OnItemDeleteAll(), dialogs.VDigitCategoryDialog.OnReload(), wxdigit.IVDigit.SetCategory(), and dialogs.VDigitCategoryDialog.UpdateDialog().
dialogs.VDigitCategoryDialog.cats_orig |
Definition at line 67 of file vdigit/dialogs.py.
Referenced by dialogs.VDigitCategoryDialog.ApplyChanges(), dialogs.VDigitCategoryDialog.OnReload(), and dialogs.VDigitCategoryDialog.UpdateDialog().
dialogs.VDigitCategoryDialog.digit |
Definition at line 44 of file vdigit/dialogs.py.
Referenced by mapwindow.VDigitWindow.GetDisplay(), dialogs.VDigitCategoryDialog.OnCancel(), toolbars.VDigitToolbar.OnSettings(), toolbars.VDigitToolbar.OnTool(), toolbars.VDigitToolbar.StartEditing(), and toolbars.VDigitToolbar.StopEditing().
dialogs.VDigitCategoryDialog.fid |
Definition at line 83 of file vdigit/dialogs.py.
Referenced by dialogs.VDigitCategoryDialog.ApplyChanges(), dialogs.VDigitCategoryDialog.OnAddCat(), dialogs.VDigitCategoryDialog.OnApply(), dialogs.VDigitCategoryDialog.OnEndEdit(), dialogs.VDigitCategoryDialog.OnFeature(), dialogs.VDigitCategoryDialog.OnItemDelete(), dialogs.VDigitCategoryDialog.OnItemDeleteAll(), dialogs.VDigitCategoryDialog.OnReload(), and dialogs.VDigitCategoryDialog.UpdateDialog().
dialogs.VDigitCategoryDialog.fidMulti |
Definition at line 86 of file vdigit/dialogs.py.
dialogs.VDigitCategoryDialog.fidText |
Definition at line 89 of file vdigit/dialogs.py.
dialogs.VDigitCategoryDialog.itemDataMap |
Definition at line 84 of file vdigit/dialogs.py.
Referenced by dialogs.VDigitCategoryDialog.OnAddCat(), dialogs.VDigitCategoryDialog.OnFeature(), dialogs.VDigitCategoryDialog.OnReload(), and dialogs.VDigitCategoryDialog.UpdateDialog().
dialogs.VDigitCategoryDialog.layerNew |
Definition at line 112 of file vdigit/dialogs.py.
dialogs.VDigitCategoryDialog.line |
Definition at line 347 of file vdigit/dialogs.py.
dialogs.VDigitCategoryDialog.list |
Definition at line 76 of file vdigit/dialogs.py.
Referenced by dialogs.VDigitCategoryDialog.GetListCtrl(), manager.GCP.GetListCtrl(), and dialogs.VDigitCategoryDialog.UpdateDialog().
dialogs.VDigitCategoryDialog.parent |
Definition at line 43 of file vdigit/dialogs.py.
Referenced by wxdigit.VDigitError.Database(), wxdigit.VDigitError.DbExecute(), wxdigit.VDigitError.DbLink(), wxdigit.VDigitError.DeadLine(), wxdigit.VDigitError.Driver(), wxdigit.VDigitError.FeatureType(), wxdigit.VDigitError.NoMap(), wxdigit.VDigitError.ReadLine(), and wxdigit.VDigitError.WriteLine().
dialogs.VDigitCategoryDialog.popupID1 |
Definition at line 263 of file vdigit/dialogs.py.
dialogs.VDigitCategoryDialog.popupID2 |
Definition at line 264 of file vdigit/dialogs.py.
dialogs.VDigitCategoryDialog.popupID3 |
Definition at line 265 of file vdigit/dialogs.py.
dialogs.VDigitCategoryDialog.vectorName |
Definition at line 47 of file vdigit/dialogs.py.
Referenced by dialogs.VDigitCategoryDialog.OnFeature().