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

Dialog for creating/editing groups. More...

Public Member Functions

def __init__
def OnAddLayer
 Add new layer to listbox.
def OnRemoveLayer
 Remove layer from listbox.
def GetLayers
 Get layers.
def OnGroupSelected
 Text changed in group selector.
def GroupSelected
 Group was selected, check if changes were apllied.
def ShowGroupLayers
 Show map layers in currently selected group.
def EditGroup
 Edit selected group.
def CreateNewGroup
 Create new group.
def GetExistGroups
 Returns existing groups in current mapset.
def ShowResult
 Show if operation was successfull.
def GetSelectedGroup
 Return currently selected group (without mapset)
def GetGroupLayers
 Get layers in group.
def ClearNotification
 Clear notification string.
def ApplyChanges
 Create or edit group.
def OnApply
 Apply changes.
def OnOk
 Apply changes and close dialog.
def OnClose
 Close dialog.

Data Fields

 parent
 defaultGroup
 currentGroup
 groupChanged
 bodySizer
 groupSelect
 layerBox
 addLayer
 removeLayer
 infoLabel
 subGroup

Detailed Description

Dialog for creating/editing groups.

Definition at line 855 of file gui_core/dialogs.py.


Constructor & Destructor Documentation

def dialogs.GroupDialog.__init__ (   self,
  parent = None,
  defaultGroup = None,
  title = _("Create or edit imagery groups"),
  style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER,
  kwargs 
)

Definition at line 859 of file gui_core/dialogs.py.


Member Function Documentation

Clear notification string.

Definition at line 1119 of file gui_core/dialogs.py.

Referenced by dialogs.GroupDialog.GroupSelected(), and dialogs.GroupDialog.ShowResult().

def dialogs.GroupDialog.CreateNewGroup (   self,
  group 
)

Create new group.

Definition at line 1067 of file gui_core/dialogs.py.

References dialogs.GroupDialog.GetLayers(), and gcmd.RunCommand().

Referenced by dialogs.GroupDialog.ApplyChanges().

def dialogs.GroupDialog.EditGroup (   self,
  group 
)

Returns existing groups in current mapset.

Definition at line 1081 of file gui_core/dialogs.py.

Referenced by dialogs.GroupDialog.ApplyChanges(), and dialogs.GroupDialog.GroupSelected().

def dialogs.GroupDialog.GetGroupLayers (   self,
  group 
)

Get layers in group.

Definition at line 1108 of file gui_core/dialogs.py.

References gcmd.RunCommand().

Referenced by dialogs.GroupDialog.EditGroup(), and dialogs.GroupDialog.GroupSelected().

Return currently selected group (without mapset)

Definition at line 1104 of file gui_core/dialogs.py.

References utils.split().

Referenced by dialogs.GroupDialog.GroupSelected().

def dialogs.GroupDialog.OnAddLayer (   self,
  event 
)

Add new layer to listbox.

Definition at line 969 of file gui_core/dialogs.py.

References dialogs.GroupDialog.GetLayers(), and dialogs.GroupDialog.groupChanged.

def dialogs.GroupDialog.OnClose (   self,
  event 
)

Close dialog.

Definition at line 1153 of file gui_core/dialogs.py.

Referenced by dialogs.GroupDialog.OnOk().

def dialogs.GroupDialog.OnGroupSelected (   self,
  event 
)

Text changed in group selector.

Definition at line 996 of file gui_core/dialogs.py.

References dialogs.GroupDialog.GroupSelected().

def dialogs.GroupDialog.OnRemoveLayer (   self,
  event 
)

Remove layer from listbox.

Definition at line 985 of file gui_core/dialogs.py.

References dialogs.GroupDialog.groupChanged.

def dialogs.GroupDialog.ShowGroupLayers (   self,
  mapList 
)

Show map layers in currently selected group.

Definition at line 1025 of file gui_core/dialogs.py.

Referenced by dialogs.GroupDialog.GroupSelected().

def dialogs.GroupDialog.ShowResult (   self,
  group,
  returnCode,
  create 
)

Show if operation was successfull.

Definition at line 1085 of file gui_core/dialogs.py.

References dialogs.GroupDialog.ClearNotification().

Referenced by dialogs.GroupDialog.ApplyChanges().


Field Documentation


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