GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
colorrules.RulesPanel Class Reference

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
 

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

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.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 
)
def colorrules.RulesPanel.SQLConvert (   self,
  vals 
)

Field Documentation

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.numRules

Definition at line 76 of file colorrules.py.

colorrules.RulesPanel.panelWidth

Definition at line 59 of file colorrules.py.


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