GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
colorrules.RulesPanel Class Reference

Public Member Functions

def __init__
 Create rules panel.
def Clear
 Clear and widgets and delete information.
def OnCheckAll
 (Un)check all rules
def OnClearAll
 Delete all widgets in panel.
def OnAddRules
 Add rules button pressed.
def AddRules
 Add rules.
def OnRuleEnable
 Rule enabled/disabled.
def OnRuleColor
 Rule color changed.
def OnRuleSize
 Rule size changed.
def OnRuleValue
 Rule value changed.
def SetRasterRule
 Set raster rule.
def SetVectorRule
 Set vector rule.
def Enable
 Enable/Disable all widgets.
def LoadRules
def SQLConvert
 Prepare value for SQL query.

Data Fields

 ruleslines
 mapType
 attributeType
 properties
 parent
 panelWidth
 mainSizer
 mainPanel
 checkAll
 clearAll
 numRules
 btnAdd

Detailed Description

Definition at line 45 of file colorrules.py.


Constructor & Destructor Documentation

def colorrules.RulesPanel.__init__ (   self,
  parent,
  mapType,
  attributeType,
  properties,
  panelWidth = 180 
)

Create rules panel.

Parameters:
mapTyperaster/vector
attributeTypecolor/size for choosing widget type
propertiesproperties of classes derived from ColorTable
panelWidthwidth of scroll panel

Definition at line 46 of file colorrules.py.


Member Function Documentation

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().

Definition at line 269 of file colorrules.py.

References colorrules.RulesPanel.attributeType, pyshell.PyShellWindow.parent, menu.Menu.parent, mapwindow.MapWindow.parent, dialogs.RegionDef.parent, sqlbuilder.SQLFrame.parent, dialogs.ModelDataDialog.parent, mapdisp.MapFrameBase.parent, dialogs.DisplayAttributesDialog.parent, preferences.PreferencesBaseDialog.parent, colorrules.RulesPanel.parent, manager.Log.parent, frame.ModelFrame.parent, goutput.CmdThread.parent, frame.GMFrame.parent, manager.VirtualAttributeList.parent, toolbars.BaseToolbar.parent, manager.GCPWizard.parent, dialogs.ModelSearchDialog.parent, forms.UpdateThread.parent, ghelp.MenuTreeWindow.parent, goutput.GMConsole.parent, wizard.CoordinateSystemPage.parent, widgets.StaticWrapText.parent, dialogs.ModelRelationDialog.parent, manager.LocationPage.parent, forms.UpdateQThread.parent, wizard.ProjectionsPage.parent, ghelp.MenuTree.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, wizard.ProjParamsPage.parent, gselect.LayerSelect.parent, dialogs.TextLayerDialog.parent, forms.CmdPanel.parent, manager.GCP.parent, ghelp.HelpWindow.parent, wizard.DatumPage.parent, model.ModelAction.parent, dialogs.GroupDialog.parent, goutput.GMStdout.parent, dialogs.ItemCheckListCtrl.parent, goutput.GMStderr.parent, frame.ModelCanvas.parent, wizard.EllipsePage.parent, goutput.GMStc.parent, model.ModelData.parent, gselect.GdalSelect.parent, goutput.PyStc.parent, dialogs.MapLayersDialog.parent, wizard.EPSGPage.parent, model.ModelRelation.parent, frame.VariablePanel.parent, model.ModelItem.parent, frame.ItemPanel.parent, frame.PythonPanel.parent, dialogs.ImportDialog.parent, wizard.CustomPage.parent, preferences.CheckListMapset.parent, wizard.SummaryPage.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.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 
)

Field Documentation

Definition at line 79 of file colorrules.py.

Definition at line 71 of file colorrules.py.

Definition at line 74 of file colorrules.py.

Definition at line 61 of file colorrules.py.

Definition at line 76 of file colorrules.py.

Definition at line 59 of file colorrules.py.


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