GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Public Member Functions | |
def | __init__ |
Create rules panel. More... | |
def | Clear |
Clear and widgets and delete information. More... | |
def | OnCheckAll |
(Un)check all rules More... | |
def | OnClearAll |
Delete all widgets in panel. More... | |
def | OnAddRules |
Add rules button pressed. More... | |
def | AddRules |
Add rules. More... | |
def | OnRuleEnable |
Rule enabled/disabled. More... | |
def | OnRuleColor |
Rule color changed. More... | |
def | OnRuleSize |
Rule size changed. More... | |
def | OnRuleValue |
Rule value changed. More... | |
def | SetRasterRule |
Set raster rule. More... | |
def | SetVectorRule |
Set vector rule. More... | |
def | Enable |
Enable/Disable all widgets. More... | |
def | LoadRules |
def | SQLConvert |
Prepare value for SQL query. More... | |
Data Fields | |
ruleslines | |
mapType | |
attributeType | |
properties | |
parent | |
panelWidth | |
mainSizer | |
mainPanel | |
checkAll | |
clearAll | |
numRules | |
btnAdd | |
Definition at line 45 of file colorrules.py.
def colorrules.RulesPanel.__init__ | ( | self, | |
parent, | |||
mapType, | |||
attributeType, | |||
properties, | |||
panelWidth = 180 |
|||
) |
Create rules panel.
mapType | raster/vector |
attributeType | color/size for choosing widget type |
properties | properties of classes derived from ColorTable |
panelWidth | width of scroll panel |
Definition at line 46 of file colorrules.py.
def colorrules.RulesPanel.AddRules | ( | self, | |
nrules, | |||
start = False |
|||
) |
Add rules.
start | set widgets (not append) |
Definition at line 112 of file colorrules.py.
References colorrules.RulesPanel.attributeType, colorrules.RulesPanel.mainPanel, colorrules.RulesPanel.mapType, dialogs.MapLayersDialog.mapType, colorrules.RulesPanel.OnRuleColor(), colorrules.RulesPanel.OnRuleEnable(), colorrules.RulesPanel.OnRuleSize(), colorrules.RulesPanel.OnRuleValue(), tools.range, and colorrules.RulesPanel.ruleslines.
Referenced by colorrules.RulesPanel.OnAddRules().
def colorrules.RulesPanel.Clear | ( | self | ) |
Clear and widgets and delete information.
Definition at line 89 of file colorrules.py.
Referenced by colorrules.RulesPanel.OnClearAll().
def colorrules.RulesPanel.Enable | ( | self, | |
enable = True |
|||
) |
Enable/Disable all widgets.
Definition at line 257 of file colorrules.py.
Referenced by colorrules.RulesPanel.OnRuleEnable().
def colorrules.RulesPanel.LoadRules | ( | self | ) |
Definition at line 269 of file colorrules.py.
References colorrules.RulesPanel.attributeType, pyshell.PyShellWindow.parent, mapwindow.MapWindow.parent, menu.Menu.parent, dialogs.RegionDef.parent, sqlbuilder.SQLFrame.parent, dialogs.ModelDataDialog.parent, mapdisp.MapFrameBase.parent, dialogs.DisplayAttributesDialog.parent, colorrules.RulesPanel.parent, preferences.PreferencesBaseDialog.parent, manager.Log.parent, goutput.CmdThread.parent, frame.ModelFrame.parent, frame.GMFrame.parent, manager.VirtualAttributeList.parent, toolbars.BaseToolbar.parent, manager.GCPWizard.parent, dialogs.ModelSearchDialog.parent, menu.MenuTreeWindow.parent, forms.UpdateThread.parent, goutput.GMConsole.parent, wizard.CoordinateSystemPage.parent, widgets.StaticWrapText.parent, dialogs.ModelRelationDialog.parent, menu.MenuTree.parent, manager.LocationPage.parent, forms.UpdateQThread.parent, wizard.ProjectionsPage.parent, forms.TaskFrame.parent, dialogs.ModelItemDialog.parent, manager.GroupPage.parent, prompt.GPrompt.parent, dialogs.DecorationDialog.parent, manager.AttributeManager.parent, dialogs.ModelListCtrl.parent, manager.DispMapPage.parent, ghelp.HelpWindow.parent, wizard.ProjParamsPage.parent, gselect.LayerSelect.parent, dialogs.TextLayerDialog.parent, forms.CmdPanel.parent, manager.GCP.parent, wizard.DatumPage.parent, model.ModelAction.parent, dialogs.GroupDialog.parent, dialogs.ItemCheckListCtrl.parent, frame.ModelCanvas.parent, wizard.EllipsePage.parent, goutput.GMStdout.parent, goutput.GMStderr.parent, model.ModelData.parent, gselect.GdalSelect.parent, goutput.GMStc.parent, dialogs.MapLayersDialog.parent, goutput.PyStc.parent, model.ModelRelation.parent, wizard.EPSGPage.parent, frame.VariablePanel.parent, model.ModelItem.parent, frame.ItemPanel.parent, dialogs.ImportDialog.parent, wizard.CustomPage.parent, frame.PythonPanel.parent, wizard.SummaryPage.parent, preferences.CheckListMapset.parent, wizard.LocationWizard.parent, forms.GUI.parent, dialogs.LayersList.parent, dialogs.SetOpacityDialog.parent, dialogs.ImageSizeDialog.parent, model.ModelParamDialog.parent, manager.TableListCtrl.parent, manager.LayerListCtrl.parent, manager.GrSettingsDialog.parent, manager.LayerBook.parent, tools.range, colorrules.RulesPanel.ruleslines, widgets.SetValue(), and utils.split().
def colorrules.RulesPanel.OnAddRules | ( | self, | |
event | |||
) |
Add rules button pressed.
Definition at line 107 of file colorrules.py.
References colorrules.RulesPanel.AddRules().
def colorrules.RulesPanel.OnCheckAll | ( | self, | |
event | |||
) |
(Un)check all rules
Definition at line 94 of file colorrules.py.
def colorrules.RulesPanel.OnClearAll | ( | self, | |
event | |||
) |
Delete all widgets in panel.
Definition at line 103 of file colorrules.py.
References colorrules.RulesPanel.Clear(), gis_set.GListBox.Clear(), and model.ModelItem.Clear().
def colorrules.RulesPanel.OnRuleColor | ( | self, | |
event | |||
) |
Rule color changed.
Definition at line 204 of file colorrules.py.
References colorrules.RulesPanel.ruleslines.
Referenced by colorrules.RulesPanel.AddRules().
def colorrules.RulesPanel.OnRuleEnable | ( | self, | |
event | |||
) |
Rule enabled/disabled.
Definition at line 167 of file colorrules.py.
References colorrules.RulesPanel.attributeType, colorrules.RulesPanel.Enable(), widgets.GetValue(), colorrules.RulesPanel.mapType, dialogs.MapLayersDialog.mapType, colorrules.RulesPanel.ruleslines, and colorrules.RulesPanel.SQLConvert().
Referenced by colorrules.RulesPanel.AddRules().
def colorrules.RulesPanel.OnRuleSize | ( | self, | |
event | |||
) |
Rule size changed.
Definition at line 216 of file colorrules.py.
References colorrules.RulesPanel.attributeType, and colorrules.RulesPanel.ruleslines.
Referenced by colorrules.RulesPanel.AddRules().
def colorrules.RulesPanel.OnRuleValue | ( | self, | |
event | |||
) |
Rule value changed.
Definition at line 223 of file colorrules.py.
References colorrules.RulesPanel.SetRasterRule(), and colorrules.RulesPanel.SetVectorRule().
Referenced by colorrules.RulesPanel.AddRules().
def colorrules.RulesPanel.SetRasterRule | ( | self, | |
num, | |||
val | |||
) |
Set raster rule.
Definition at line 243 of file colorrules.py.
References colorrules.RulesPanel.ruleslines.
Referenced by colorrules.RulesPanel.OnRuleValue().
def colorrules.RulesPanel.SetVectorRule | ( | self, | |
num, | |||
val | |||
) |
Set vector rule.
Definition at line 247 of file colorrules.py.
References widgets.GetValue(), colorrules.RulesPanel.ruleslines, and colorrules.RulesPanel.SQLConvert().
Referenced by colorrules.RulesPanel.OnRuleValue().
def colorrules.RulesPanel.SQLConvert | ( | self, | |
vals | |||
) |
Prepare value for SQL query.
Definition at line 301 of file colorrules.py.
References colorrules.RulesPanel.properties, model.Model.properties, model.ProcessModelFile.properties, and model.WriteModelFile.properties.
Referenced by colorrules.RulesPanel.OnRuleEnable(), and colorrules.RulesPanel.SetVectorRule().
colorrules.RulesPanel.attributeType |
Definition at line 56 of file colorrules.py.
Referenced by colorrules.RulesPanel.AddRules(), colorrules.RulesPanel.LoadRules(), colorrules.VectorColorTable.LoadRulesFromColumn(), colorrules.VectorColorTable.OnAddColumn(), colorrules.VectorColorTable.OnColumnPreview(), colorrules.VectorColorTable.OnLayerSelection(), colorrules.RulesPanel.OnRuleEnable(), colorrules.RulesPanel.OnRuleSize(), colorrules.VectorColorTable.UpdateColorColumn(), colorrules.VectorColorTable.UpdateDialog(), and colorrules.VectorColorTable.UseAttrColumn().
colorrules.RulesPanel.btnAdd |
Definition at line 79 of file colorrules.py.
colorrules.RulesPanel.checkAll |
Definition at line 71 of file colorrules.py.
colorrules.RulesPanel.clearAll |
Definition at line 74 of file colorrules.py.
colorrules.RulesPanel.mainPanel |
Definition at line 66 of file colorrules.py.
Referenced by colorrules.RulesPanel.AddRules().
colorrules.RulesPanel.mainSizer |
Definition at line 61 of file colorrules.py.
colorrules.RulesPanel.mapType |
Definition at line 55 of file colorrules.py.
Referenced by colorrules.RulesPanel.AddRules(), colorrules.ColorTable.CreateColorTable(), dialogs.MapFramePanel.OnElementType(), colorrules.RulesPanel.OnRuleEnable(), colorrules.ColorTable.ReadColorTable(), and dialogs.MapFramePanel.update().
colorrules.RulesPanel.numRules |
Definition at line 76 of file colorrules.py.
colorrules.RulesPanel.panelWidth |
Definition at line 59 of file colorrules.py.
colorrules.RulesPanel.parent |
Definition at line 58 of file colorrules.py.
Referenced by wxdigit.VDigitError.Database(), wxdigit.VDigitError.DbExecute(), wxdigit.VDigitError.DbLink(), wxdigit.VDigitError.DeadLine(), wxdigit.VDigitError.Driver(), wxdigit.VDigitError.FeatureType(), colorrules.RulesPanel.LoadRules(), wxdigit.VDigitError.NoMap(), frame.PsMapBufferedWindow.OnLeftUp(), wxdigit.VDigitError.ReadLine(), colorrules.VectorColorTable.UpdateColorColumn(), and wxdigit.VDigitError.WriteLine().
colorrules.RulesPanel.properties |
Definition at line 57 of file colorrules.py.
Referenced by colorrules.VectorColorTable.AddTemporaryColumn(), colorrules.ColorTable.CreateColorTable(), colorrules.VectorColorTable.DeleteTemporaryColumn(), base.BasePlotFrame.DrawPlot(), base.BasePlotFrame.InitRasterOpts(), colorrules.VectorColorTable.LoadRulesFromColumn(), colorrules.ColorTable.LoadTable(), colorrules.VectorColorTable.OnAddColumn(), colorrules.VectorColorTable.OnApply(), colorrules.VectorColorTable.OnCheckColumn(), colorrules.VectorColorTable.OnColumnPreview(), colorrules.VectorColorTable.OnFromColSelection(), colorrules.VectorColorTable.OnLayerSelection(), base.BasePlotFrame.OnPlotText(), colorrules.VectorColorTable.OnSourceColumnSelection(), colorrules.VectorColorTable.OnToColSelection(), colorrules.ColorTable.ReadColorTable(), base.BasePlotFrame.SetGraphStyle(), colorrules.VectorColorTable.SetRangeLabel(), colorrules.RulesPanel.SQLConvert(), colorrules.VectorColorTable.UpdateColorColumn(), dialogs.TextDialog.UpdateSettings(), dialogs.OptDialog.UpdateSettings(), and colorrules.VectorColorTable.UseAttrColumn().
colorrules.RulesPanel.ruleslines |
Definition at line 54 of file colorrules.py.
Referenced by colorrules.RulesPanel.AddRules(), colorrules.RulesPanel.LoadRules(), colorrules.RulesPanel.OnRuleColor(), colorrules.RulesPanel.OnRuleEnable(), colorrules.RulesPanel.OnRuleSize(), colorrules.RulesPanel.SetRasterRule(), and colorrules.RulesPanel.SetVectorRule().