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

Panel for displaying one symbol. More...

Inheritance diagram for widgets.SingleSymbolPanel:
Collaboration diagram for widgets.SingleSymbolPanel:

Public Member Functions

def __init__
 Panel constructor. More...
 
def OnLeftDown
 Panel selected, background changes. More...
 
def OnDoubleClick
 
def Deselect
 Panel deselected, background changes back to default. More...
 
def Select
 Select panel, no event emitted. More...
 

Data Fields

 sBmp
 
 selected
 
 selectColor
 
 deselectColor
 

Detailed Description

Panel for displaying one symbol.

Changes background when selected. Assumes that parent will catch events emitted on mouse click. Used in gui_core::dialog::SymbolDialog.

Definition at line 463 of file widgets.py.

Constructor & Destructor Documentation

def widgets.SingleSymbolPanel.__init__ (   self,
  parent,
  symbolPath 
)

Panel constructor.

Parameters
parentparent (gui_core::dialog::SymbolDialog)
symbolPathabsolute path to symbol

Definition at line 469 of file widgets.py.

References render.Layer.SetName(), and model.ModelRelation.SetName().

Member Function Documentation

def widgets.SingleSymbolPanel.Deselect (   self)

Panel deselected, background changes back to default.

Definition at line 509 of file widgets.py.

References widgets.SingleSymbolPanel.deselectColor, widgets.SingleSymbolPanel.selected, gis_set.GListBox.selected, manager.GCPList.selected, and dialogs.SymbolDialog.selected.

def widgets.SingleSymbolPanel.Select (   self)

Field Documentation

widgets.SingleSymbolPanel.deselectColor

Definition at line 481 of file widgets.py.

Referenced by widgets.SingleSymbolPanel.Deselect().

widgets.SingleSymbolPanel.sBmp

Definition at line 477 of file widgets.py.

widgets.SingleSymbolPanel.selectColor

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