GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Public Member Functions | |
def | __init__ |
def | Update |
Update list according new mapDBInfo description. More... | |
def | LoadData |
Load data into list. More... | |
def | AddDataRow |
Add row to the data list. More... | |
def | OnItemSelected |
Item selected. More... | |
def | OnItemDeselected |
Item deselected. More... | |
def | GetSelectedItems |
Return list of selected items (category numbers) More... | |
def | GetColumnText |
Return column text. More... | |
def | GetListCtrl |
Returt list. More... | |
def | OnGetItemText |
Get item text. More... | |
def | OnGetItemAttr |
Get item attributes. More... | |
def | OnColumnMenu |
Column heading right mouse button -> pop-up menu. More... | |
def | OnColumnSort |
Column heading left mouse button -> sorting. More... | |
def | OnColumnSortAsc |
Sort values of selected column (ascending) More... | |
def | OnColumnSortDesc |
Sort values of selected column (descending) More... | |
def | OnColumnCompute |
Compute values of selected column. More... | |
def | ColumnSort |
Sort values of selected column (self._col) More... | |
def | SortItems |
Sort items. More... | |
def | Sorter |
def | GetSortImages |
Used by the ColumnSorterMixin, see wx/lib/mixins/listctrl.py. More... | |
def | IsEmpty |
Check if list if empty. More... | |
Support virtual list class
Definition at line 73 of file dbmgr/manager.py.
def manager.VirtualAttributeList.__init__ | ( | self, | |
parent, | |||
log, | |||
mapDBInfo, | |||
layer | |||
) |
Definition at line 77 of file dbmgr/manager.py.
def manager.VirtualAttributeList.AddDataRow | ( | self, | |
i, | |||
record, | |||
columns, | |||
keyId | |||
) |
Add row to the data list.
Definition at line 279 of file dbmgr/manager.py.
References manager.VirtualAttributeList.columns, manager.VirtualAttributeList.itemCatsMap, manager.VirtualAttributeList.itemDataMap, manager.VirtualAttributeList.layer, and vinfo.unicodeValue().
def manager.VirtualAttributeList.ColumnSort | ( | self | ) |
Sort values of selected column (self._col)
Definition at line 479 of file dbmgr/manager.py.
References tools.range.
Referenced by manager.VirtualAttributeList.OnColumnSort().
def manager.VirtualAttributeList.GetColumnText | ( | self, | |
index, | |||
col | |||
) |
Return column text.
Definition at line 353 of file dbmgr/manager.py.
References model.Model.GetItem().
def manager.VirtualAttributeList.GetListCtrl | ( | self | ) |
Returt list.
Definition at line 358 of file dbmgr/manager.py.
def manager.VirtualAttributeList.GetSelectedItems | ( | self | ) |
Return list of selected items (category numbers)
Definition at line 343 of file dbmgr/manager.py.
def manager.VirtualAttributeList.GetSortImages | ( | self | ) |
Used by the ColumnSorterMixin, see wx/lib/mixins/listctrl.py.
Definition at line 524 of file dbmgr/manager.py.
References manager.VirtualAttributeList.sm_dn, and manager.VirtualAttributeList.sm_up.
def manager.VirtualAttributeList.IsEmpty | ( | self | ) |
Check if list if empty.
Definition at line 528 of file dbmgr/manager.py.
References manager.VirtualAttributeList.columns.
def manager.VirtualAttributeList.LoadData | ( | self, | |
layer, | |||
columns = None , |
|||
where = None , |
|||
sql = None |
|||
) |
Load data into list.
layer | layer number |
columns | list of columns for output (-> v.db.select) |
where | where statement (-> v.db.select) |
sql | full sql statement (-> db.select) |
Definition at line 134 of file dbmgr/manager.py.
References manager.VirtualAttributeList.columns, and gcmd.RunCommand().
Referenced by manager.VirtualAttributeList.OnColumnCompute(), and manager.VirtualAttributeList.Update().
def manager.VirtualAttributeList.OnColumnCompute | ( | self, | |
event | |||
) |
Compute values of selected column.
Definition at line 443 of file dbmgr/manager.py.
References manager.VirtualAttributeList._col, manager.VirtualAttributeList.layer, manager.VirtualAttributeList.LoadData(), dialogs.DisplayAttributesDialog.parent, manager.Log.parent, manager.VirtualAttributeList.parent, manager.VirtualAttributeList.popupID10, manager.VirtualAttributeList.popupID11, manager.VirtualAttributeList.popupID12, manager.VirtualAttributeList.popupID4, manager.VirtualAttributeList.popupID5, manager.VirtualAttributeList.popupID6, manager.VirtualAttributeList.popupID7, manager.VirtualAttributeList.popupID8, manager.VirtualAttributeList.popupID9, and gcmd.RunCommand().
def manager.VirtualAttributeList.OnColumnMenu | ( | self, | |
event | |||
) |
Column heading right mouse button -> pop-up menu.
Definition at line 375 of file dbmgr/manager.py.
References manager.VirtualAttributeList._col.
def manager.VirtualAttributeList.OnColumnSort | ( | self, | |
event | |||
) |
Column heading left mouse button -> sorting.
Definition at line 425 of file dbmgr/manager.py.
References manager.VirtualAttributeList._col, and manager.VirtualAttributeList.ColumnSort().
def manager.VirtualAttributeList.OnColumnSortAsc | ( | self, | |
event | |||
) |
Sort values of selected column (ascending)
Definition at line 433 of file dbmgr/manager.py.
References manager.VirtualAttributeList._col.
def manager.VirtualAttributeList.OnColumnSortDesc | ( | self, | |
event | |||
) |
Sort values of selected column (descending)
Definition at line 438 of file dbmgr/manager.py.
References manager.VirtualAttributeList._col.
def manager.VirtualAttributeList.OnGetItemAttr | ( | self, | |
item | |||
) |
Get item attributes.
Definition at line 368 of file dbmgr/manager.py.
References manager.VirtualAttributeList.attr1, and manager.VirtualAttributeList.attr2.
def manager.VirtualAttributeList.OnGetItemText | ( | self, | |
item, | |||
col | |||
) |
Get item text.
Definition at line 362 of file dbmgr/manager.py.
References manager.VirtualAttributeList.itemDataMap, and manager.VirtualAttributeList.itemIndexMap.
def manager.VirtualAttributeList.OnItemDeselected | ( | self, | |
event | |||
) |
def manager.VirtualAttributeList.OnItemSelected | ( | self, | |
event | |||
) |
Item selected.
Add item to selected cats...
Definition at line 325 of file dbmgr/manager.py.
Referenced by prompt.GPromptSTC.__init__().
def manager.VirtualAttributeList.Sorter | ( | self, | |
key1, | |||
key2 | |||
) |
Definition at line 499 of file dbmgr/manager.py.
References manager.VirtualAttributeList._col, manager.GCP._colSortFlag, manager.VirtualAttributeList.columns, manager.VirtualAttributeList.itemDataMap, and dialogs.type.
Referenced by manager.VirtualAttributeList.SortItems(), and wizard.ItemList.SortItems().
def manager.VirtualAttributeList.SortItems | ( | self, | |
sorter = cmp |
|||
) |
Sort items.
Definition at line 490 of file dbmgr/manager.py.
References manager.VirtualAttributeList.itemIndexMap, and manager.VirtualAttributeList.Sorter().
def manager.VirtualAttributeList.Update | ( | self, | |
mapDBInfo | |||
) |
Update list according new mapDBInfo description.
Definition at line 129 of file dbmgr/manager.py.
References manager.VirtualAttributeList.layer, manager.VirtualAttributeList.LoadData(), dialogs.DisplayAttributesDialog.mapDBInfo, and manager.VirtualAttributeList.mapDBInfo.
Referenced by model.ModelObject.Enable(), wizard.DatumPage.OnDText(), colorrules.VectorColorTable.OnLayerSelection(), manager.GroupPage.OnMkGroup(), statusbar.SbManager.OnToggleStatus(), and mapwindow.BufferedWindow.TextBounds().
manager.VirtualAttributeList.attr1 |
Definition at line 102 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.OnGetItemAttr(), and wizard.ItemList.OnGetItemAttr().
manager.VirtualAttributeList.attr2 |
Definition at line 104 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.OnGetItemAttr(), and wizard.ItemList.OnGetItemAttr().
manager.VirtualAttributeList.columns |
Definition at line 86 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.AddDataRow(), manager.VirtualAttributeList.IsEmpty(), manager.VirtualAttributeList.LoadData(), manager.TableListCtrl.Populate(), manager.VirtualAttributeList.Sorter(), and manager.TableListCtrl.Update().
manager.VirtualAttributeList.il |
Definition at line 106 of file dbmgr/manager.py.
manager.VirtualAttributeList.itemCatsMap |
Definition at line 213 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.AddDataRow().
manager.VirtualAttributeList.itemDataMap |
Definition at line 211 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.AddDataRow(), dialogs.VariableListCtrl.Append(), dialogs.VariableListCtrl.GetData(), dialogs.ItemListCtrl.GetData(), manager.GCP.InitMapDisplay(), dialogs.VDigitCategoryDialog.OnAddCat(), dialogs.VariableListCtrl.OnEndEdit(), dialogs.ItemListCtrl.OnEndEdit(), dialogs.VDigitCategoryDialog.OnFeature(), manager.VirtualAttributeList.OnGetItemText(), wizard.ItemList.OnGetItemText(), dialogs.VDigitCategoryDialog.OnReload(), dialogs.VariableListCtrl.OnRemove(), dialogs.ItemListCtrl.OnRemove(), dialogs.VariableListCtrl.OnRemoveAll(), dialogs.ItemListCtrl.OnRemoveAll(), manager.GCP.ReloadGCPs(), manager.VirtualAttributeList.Sorter(), wizard.ItemList.Sorter(), and dialogs.VDigitCategoryDialog.UpdateDialog().
manager.VirtualAttributeList.itemIndexMap |
Definition at line 212 of file dbmgr/manager.py.
Referenced by wizard.ItemList.OnGetItemAttr(), manager.VirtualAttributeList.OnGetItemText(), wizard.ItemList.OnGetItemText(), manager.VirtualAttributeList.SortItems(), and wizard.ItemList.SortItems().
manager.VirtualAttributeList.layer |
Definition at line 84 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.AddDataRow(), manager.AttributeManager.AddQueryMapLayer(), manager.AttributeManager.ApplyCommands(), colorrules.ColorTable.DoPreview(), sqlbuilder.SQLFrame.OnAddValue(), forms.TaskFrame.OnApply(), manager.AttributeManager.OnApplySqlStatement(), manager.AttributeManager.OnBuilderEvt(), forms.TaskFrame.OnCancel(), manager.VirtualAttributeList.OnColumnCompute(), manager.AttributeManager.OnDataItemAdd(), manager.AttributeManager.OnDataItemDelete(), manager.AttributeManager.OnDataItemDeleteAll(), manager.AttributeManager.OnDataItemEdit(), manager.AttributeManager.OnDataSelectAll(), manager.AttributeManager.OnDataSelectNone(), manager.AttributeManager.OnDeleteSelected(), manager.AttributeManager.OnExtractSelected(), manager.AttributeManager.OnLayerPageChanged(), manager.AttributeManager.OnPageChanged(), manager.AttributeManager.OnTableAddColumnName(), manager.AttributeManager.OnTableChangeType(), manager.AttributeManager.OnTableItemChange(), manager.AttributeManager.OnTableItemDelete(), manager.AttributeManager.OnTableItemDeleteAll(), manager.AttributeManager.OnTableReload(), manager.AttributeManager.OnTableRenameColumnName(), sqlbuilder.SQLFrame.OnUniqueValues(), histogram.HistogramFrame.SetHistLayer(), manager.VirtualAttributeList.Update(), and manager.AttributeManager.ValidateSelectStatement().
manager.VirtualAttributeList.log |
Definition at line 82 of file dbmgr/manager.py.
Referenced by vclean.VectorCleaningFrame.OnCleaningRun(), mcalc_builder.MapCalcFrame.OnMCalcRun(), toolbars.VDigitToolbar.OnSelectMap(), and mapwindow.NvizThread.run().
manager.VirtualAttributeList.mapDBInfo |
Definition at line 83 of file dbmgr/manager.py.
Referenced by manager.AttributeManager.ApplyCommands(), manager.LayerBook.OnAddLayer(), manager.AttributeManager.OnDataItemEdit(), manager.LayerBook.OnDeleteLayer(), manager.LayerBook.OnModifyLayer(), manager.VirtualAttributeList.Update(), and manager.AttributeManager.UpdateDialog().
manager.VirtualAttributeList.parent |
Definition at line 81 of file dbmgr/manager.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().
manager.VirtualAttributeList.popupID1 |
Definition at line 382 of file dbmgr/manager.py.
manager.VirtualAttributeList.popupID10 |
Definition at line 391 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.OnColumnCompute().
manager.VirtualAttributeList.popupID11 |
Definition at line 392 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.OnColumnCompute().
manager.VirtualAttributeList.popupID12 |
Definition at line 393 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.OnColumnCompute().
manager.VirtualAttributeList.popupID2 |
Definition at line 383 of file dbmgr/manager.py.
manager.VirtualAttributeList.popupID3 |
Definition at line 384 of file dbmgr/manager.py.
manager.VirtualAttributeList.popupID4 |
Definition at line 385 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.OnColumnCompute().
manager.VirtualAttributeList.popupID5 |
Definition at line 386 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.OnColumnCompute().
manager.VirtualAttributeList.popupID6 |
Definition at line 387 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.OnColumnCompute().
manager.VirtualAttributeList.popupID7 |
Definition at line 388 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.OnColumnCompute().
manager.VirtualAttributeList.popupID8 |
Definition at line 389 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.OnColumnCompute().
manager.VirtualAttributeList.popupID9 |
Definition at line 390 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.OnColumnCompute().
manager.VirtualAttributeList.sm_dn |
Definition at line 109 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.GetSortImages(), wizard.ItemList.GetSortImages(), and manager.GCP.GetSortImages().
manager.VirtualAttributeList.sm_up |
Definition at line 107 of file dbmgr/manager.py.
Referenced by manager.VirtualAttributeList.GetSortImages(), wizard.ItemList.GetSortImages(), and manager.GCP.GetSortImages().