GRASS Programmer's Manual  6.4.4(2014)-r
dialogs.GroupDialog Class Reference

Dialog for creating/editing groups. More...

Inheritance diagram for dialogs.GroupDialog:
Collaboration diagram for dialogs.GroupDialog:

Public Member Functions

def __init__ (self, parent=None, defaultGroup=None, title=_("Create or edit imagery groups"), style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER, kwargs)
 
def OnAddLayer (self, event)
 Add new layer to listbox. More...
 
def OnRemoveLayer (self, event)
 Remove layer from listbox. More...
 
def GetLayers (self)
 Get layers. More...
 
def OnGroupSelected (self, event)
 Text changed in group selector. More...
 
def GroupSelected (self)
 Group was selected, check if changes were apllied. More...
 
def ShowGroupLayers (self, mapList)
 Show map layers in currently selected group. More...
 
def EditGroup (self, group)
 Edit selected group. More...
 
def CreateNewGroup (self, group)
 Create new group. More...
 
def GetExistGroups (self)
 Returns existing groups in current mapset. More...
 
def ShowResult (self, group, returnCode, create)
 Show if operation was successfull. More...
 
def GetSelectedGroup (self)
 Return currently selected group (without mapset) More...
 
def GetGroupLayers (self, group)
 Get layers in group. More...
 
def ClearNotification (self)
 Clear notification string. More...
 
def ApplyChanges (self, showResult)
 Create or edit group. More...
 
def OnApply (self, event)
 Apply changes. More...
 
def OnOk (self, event)
 Apply changes and close dialog. More...
 
def OnClose (self, event)
 Close dialog. More...
 

Data Fields

 parent
 
 defaultGroup
 
 currentGroup
 
 groupChanged
 
 bodySizer
 
 groupSelect
 
 layerBox
 
 addLayer
 
 removeLayer
 
 infoLabel
 
 subGroup
 

Detailed Description

Dialog for creating/editing groups.

Definition at line 818 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 822 of file gui_core/dialogs.py.

Member Function Documentation

def dialogs.GroupDialog.ClearNotification (   self)

Clear notification string.

Definition at line 1082 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 1030 of file gui_core/dialogs.py.

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

Referenced by dialogs.GroupDialog.ApplyChanges().

def dialogs.GroupDialog.EditGroup (   self,
  group 
)
def dialogs.GroupDialog.GetExistGroups (   self)

Returns existing groups in current mapset.

Definition at line 1044 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 1071 of file gui_core/dialogs.py.

References gcmd.RunCommand().

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

def dialogs.GroupDialog.GetLayers (   self)
def dialogs.GroupDialog.GetSelectedGroup (   self)

Return currently selected group (without mapset)

Definition at line 1067 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 932 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 1116 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 959 of file gui_core/dialogs.py.

References dialogs.GroupDialog.GroupSelected().

def dialogs.GroupDialog.OnOk (   self,
  event 
)
def dialogs.GroupDialog.OnRemoveLayer (   self,
  event 
)

Remove layer from listbox.

Definition at line 948 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 988 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 1048 of file gui_core/dialogs.py.

References dialogs.GroupDialog.ClearNotification().

Referenced by dialogs.GroupDialog.ApplyChanges().

Field Documentation

dialogs.GroupDialog.addLayer

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

dialogs.GroupDialog.bodySizer

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

dialogs.GroupDialog.currentGroup
dialogs.GroupDialog.defaultGroup

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

dialogs.GroupDialog.groupSelect

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

dialogs.GroupDialog.infoLabel

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

dialogs.GroupDialog.layerBox

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

Referenced by dialogs.ImportDialog.doLayout().

dialogs.GroupDialog.removeLayer

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

dialogs.GroupDialog.subGroup

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


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