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

A panel containing a notebook dividing in tabs the different guisections of the GRASS cmd. More...

Public Member Functions

def __init__
def OnFileLoad
 Load file to interactive input.
def OnFileSave
 Save interactive input to the file.
def OnFileText
def OnUpdateDialog
def OnVerbosity
 Verbosity level changed.
def OnPageChange
def OnColorChange
def OnUpdateValues
 If we were part of a richer interface, report back the current command being built.
def OnCheckBoxMulti
 Fill the values as a ','-separated string according to current status of the checkboxes.
def OnSetValue
 Retrieve the widget value and set the task value field accordingly.
def OnSetSymbol
 Shows dialog for symbol selection.
def OnUpdateSelection
 Update dialog (layers, tables, columns, etc.)
def createCmd
 Produce a command line string (list) or feeding into GRASS.
def OnSize

Data Fields

 parent
 task
 label_id
 notebook
 goutput
 add 'command output' tab regardless standalone dialog
 outpage
 manual_tab
 panelMinHeight
 constrained_size

Detailed Description

A panel containing a notebook dividing in tabs the different guisections of the GRASS cmd.

Definition at line 720 of file forms.py.


Constructor & Destructor Documentation

def forms.CmdPanel.__init__ (   self,
  parent,
  task,
  id = wx.ID_ANY,
  frame = None,
  args,
  kwargs 
)

Definition at line 724 of file forms.py.


Member Function Documentation

def forms.CmdPanel.createCmd (   self,
  ignoreErrors = False,
  ignoreRequired = False 
)

Produce a command line string (list) or feeding into GRASS.

Parameters:
ignoreErrorsTrue then it will return whatever has been built so far, even though it would not be a correct command for GRASS

Definition at line 1755 of file forms.py.

def forms.CmdPanel.OnCheckBoxMulti (   self,
  event 
)

Fill the values as a ','-separated string according to current status of the checkboxes.

Definition at line 1641 of file forms.py.

def forms.CmdPanel.OnColorChange (   self,
  event 
)

Definition at line 1612 of file forms.py.

References widgets.GetValue(), and forms.CmdPanel.OnUpdateValues().

def forms.CmdPanel.OnFileLoad (   self,
  event 
)

Load file to interactive input.

Definition at line 1486 of file forms.py.

References widgets.GetValue(), and widgets.SetValue().

def forms.CmdPanel.OnFileSave (   self,
  event 
)

Save interactive input to the file.

Definition at line 1514 of file forms.py.

References widgets.GetValue(), and widgets.SetValue().

def forms.CmdPanel.OnFileText (   self,
  event 
)
File input interactively entered

Definition at line 1550 of file forms.py.

def forms.CmdPanel.OnPageChange (   self,
  event 
)

Definition at line 1596 of file forms.py.

def forms.CmdPanel.OnSetSymbol (   self,
  event 
)

Shows dialog for symbol selection.

Definition at line 1712 of file forms.py.

References forms.CmdPanel.OnUpdateValues().

def forms.CmdPanel.OnSetValue (   self,
  event 
)

Retrieve the widget value and set the task value field accordingly.

Use for widgets that have a proper GetValue() method, i.e. not for selectors.

Definition at line 1674 of file forms.py.

References forms.CmdPanel.OnUpdateValues().

def forms.CmdPanel.OnSize (   self,
  event 
)

Definition at line 1776 of file forms.py.

References forms.CmdPanel.label_id, and max.

def forms.CmdPanel.OnUpdateDialog (   self,
  event 
)

Definition at line 1574 of file forms.py.

References frame.fn.

def forms.CmdPanel.OnUpdateValues (   self,
  event = None 
)

If we were part of a richer interface, report back the current command being built.

This method should be set by the parent of this panel if needed. It's a hook, actually. Beware of what is 'self' in the method def, though. It will be called with no arguments.

Definition at line 1631 of file forms.py.

Referenced by forms.CmdPanel.OnColorChange(), forms.CmdPanel.OnSetSymbol(), and forms.CmdPanel.OnSetValue().

def forms.CmdPanel.OnVerbosity (   self,
  event 
)

Verbosity level changed.

Definition at line 1580 of file forms.py.


Field Documentation

Definition at line 1465 of file forms.py.

add 'command output' tab regardless standalone dialog

Definition at line 783 of file forms.py.

Referenced by frame.GMFrame.GetLogWindow(), frame.GMFrame.OnDone(), frame.GMFrame.OnNewVector(), and frame.GMFrame.OnShowAttributeTable().

Definition at line 738 of file forms.py.

Referenced by forms.CmdPanel.OnSize().

Definition at line 788 of file forms.py.

Definition at line 784 of file forms.py.

Definition at line 1464 of file forms.py.


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