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

This is the Frame containing the dialog for options input. More...

Public Member Functions

def __init__
def updateValuesHook
 Update status bar data.
def OnKeyUp
 Key released (check hot-keys)
def OnDone
 This function is launched from OnRun() when command is finished.
def OnOK
 OK button pressed.
def OnApply
 Apply the command.
def OnRun
 Run the command.
def OnAbort
 Abort running command.
def OnCopy
 Copy the command.
def OnCancel
 Cancel button pressed.
def OnHelp
 Show manual page (switch to the 'Manual' notebook page)
def createCmd
 Create command string (python list)

Data Fields

 get_dcmd
 layer
 task
 parent
 modeler
 locale
 panel
 standalone
 logo
 description
 notebookpanel
 goutput
 btn_cancel
 btn_run
 btn_clipboard
 btn_help
 addbox
 closebox
 requestQ
 resultQ
 updateThread

Detailed Description

This is the Frame containing the dialog for options input.

The dialog is organized in a notebook according to the guisections defined by each GRASS command.

If run with a parent, it may Apply, Ok or Cancel; the latter two close the dialog. The former two trigger a callback.

If run standalone, it will allow execution of the command.

The command is checked and sent to the clipboard when clicking 'Copy'.

Definition at line 333 of file forms.py.


Constructor & Destructor Documentation

def forms.TaskFrame.__init__ (   self,
  parent,
  ID,
  task_description,
  get_dcmd = None,
  layer = None 
)

Definition at line 348 of file forms.py.


Member Function Documentation

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

Create command string (python list)

Definition at line 715 of file forms.py.

Referenced by forms.TaskFrame.OnApply(), forms.TaskFrame.OnCopy(), and forms.TaskFrame.OnRun().

def forms.TaskFrame.OnAbort (   self,
  event 
)

Abort running command.

Definition at line 667 of file forms.py.

References frame.ModelFrame.goutput, and forms.TaskFrame.goutput.

Referenced by forms.TaskFrame.OnKeyUp().

def forms.TaskFrame.OnCancel (   self,
  event 
)

Cancel button pressed.

Definition at line 685 of file forms.py.

References forms.TaskFrame.get_dcmd, statusbar.SbItem.Hide(), statusbar.SbTextItem.Hide(), sqlbuilder.SQLFrame.layer, manager.VirtualAttributeList.layer, forms.TaskFrame.layer, manager.AttributeManager.layer, sqlbuilder.SQLFrame.parent, dialogs.ModelDataDialog.parent, dialogs.DisplayAttributesDialog.parent, manager.Log.parent, frame.ModelFrame.parent, manager.VirtualAttributeList.parent, manager.GCPWizard.parent, dialogs.ModelSearchDialog.parent, forms.UpdateThread.parent, dialogs.ModelRelationDialog.parent, manager.LocationPage.parent, forms.UpdateQThread.parent, forms.TaskFrame.parent, dialogs.ModelItemDialog.parent, manager.GroupPage.parent, dialogs.DecorationDialog.parent, manager.AttributeManager.parent, dialogs.ModelListCtrl.parent, manager.DispMapPage.parent, dialogs.TextLayerDialog.parent, manager.GCP.parent, model.ModelAction.parent, dialogs.GroupDialog.parent, dialogs.ItemCheckListCtrl.parent, frame.ModelCanvas.parent, model.ModelData.parent, dialogs.MapLayersDialog.parent, model.ModelRelation.parent, frame.VariablePanel.parent, model.ModelItem.parent, frame.ItemPanel.parent, frame.PythonPanel.parent, dialogs.ImportDialog.parent, dialogs.LayersList.parent, dialogs.SetOpacityDialog.parent, dialogs.ImageSizeDialog.parent, model.ModelParamDialog.parent, manager.TableListCtrl.parent, manager.LayerListCtrl.parent, manager.GrSettingsDialog.parent, and manager.LayerBook.parent.

Referenced by colorrules.ColorTable.OnCloseWindow(), forms.TaskFrame.OnKeyUp(), dialogs.VDigitCategoryDialog.OnOK(), colorrules.ColorTable.OnOK(), and forms.TaskFrame.OnOK().

def forms.TaskFrame.OnCopy (   self,
  event 
)

Copy the command.

Definition at line 672 of file forms.py.

References forms.TaskFrame.createCmd().

Referenced by toolbars.VDigitToolbar.OnAdditionalToolMenu(), and forms.TaskFrame.OnKeyUp().

def forms.TaskFrame.OnDone (   self,
  cmd,
  returncode 
)

This function is launched from OnRun() when command is finished.

Parameters:
returncodecommand's return code (0 for success)

Definition at line 582 of file forms.py.

References sqlbuilder.SQLFrame.parent, dialogs.ModelDataDialog.parent, dialogs.DisplayAttributesDialog.parent, manager.Log.parent, frame.ModelFrame.parent, manager.VirtualAttributeList.parent, manager.GCPWizard.parent, dialogs.ModelSearchDialog.parent, forms.UpdateThread.parent, dialogs.ModelRelationDialog.parent, manager.LocationPage.parent, forms.UpdateQThread.parent, forms.TaskFrame.parent, dialogs.ModelItemDialog.parent, manager.GroupPage.parent, dialogs.DecorationDialog.parent, manager.AttributeManager.parent, dialogs.ModelListCtrl.parent, manager.DispMapPage.parent, dialogs.TextLayerDialog.parent, manager.GCP.parent, model.ModelAction.parent, dialogs.GroupDialog.parent, dialogs.ItemCheckListCtrl.parent, frame.ModelCanvas.parent, model.ModelData.parent, dialogs.MapLayersDialog.parent, model.ModelRelation.parent, frame.VariablePanel.parent, model.ModelItem.parent, frame.ItemPanel.parent, frame.PythonPanel.parent, dialogs.ImportDialog.parent, dialogs.LayersList.parent, dialogs.SetOpacityDialog.parent, dialogs.ImageSizeDialog.parent, model.ModelParamDialog.parent, manager.TableListCtrl.parent, manager.LayerListCtrl.parent, manager.GrSettingsDialog.parent, and manager.LayerBook.parent.

Referenced by vclean.VectorCleaningFrame.OnCleaningRun(), extensions.InstallExtensionWindow.OnInstall(), mcalc_builder.MapCalcFrame.OnMCalcRun(), and forms.TaskFrame.OnRun().

def forms.TaskFrame.OnHelp (   self,
  event 
)

Show manual page (switch to the 'Manual' notebook page)

Definition at line 706 of file forms.py.

Referenced by forms.TaskFrame.OnKeyUp().

def forms.TaskFrame.OnRun (   self,
  event 
)

Run the command.

Definition at line 639 of file forms.py.

References forms.TaskFrame.btn_cancel, dialogs.ImportDialog.btn_cancel, forms.TaskFrame.btn_clipboard, forms.TaskFrame.btn_help, forms.TaskFrame.btn_run, dialogs.ImportDialog.btn_run, forms.TaskFrame.createCmd(), frame.ModelFrame.OnDone(), forms.TaskFrame.OnDone(), frame.PythonPanel.OnDone(), sqlbuilder.SQLFrame.parent, dialogs.ModelDataDialog.parent, dialogs.DisplayAttributesDialog.parent, manager.Log.parent, frame.ModelFrame.parent, manager.VirtualAttributeList.parent, manager.GCPWizard.parent, dialogs.ModelSearchDialog.parent, forms.UpdateThread.parent, dialogs.ModelRelationDialog.parent, manager.LocationPage.parent, forms.UpdateQThread.parent, forms.TaskFrame.parent, dialogs.ModelItemDialog.parent, manager.GroupPage.parent, dialogs.DecorationDialog.parent, manager.AttributeManager.parent, dialogs.ModelListCtrl.parent, manager.DispMapPage.parent, dialogs.TextLayerDialog.parent, manager.GCP.parent, model.ModelAction.parent, dialogs.GroupDialog.parent, dialogs.ItemCheckListCtrl.parent, frame.ModelCanvas.parent, model.ModelData.parent, dialogs.MapLayersDialog.parent, model.ModelRelation.parent, frame.VariablePanel.parent, model.ModelItem.parent, frame.ItemPanel.parent, frame.PythonPanel.parent, dialogs.ImportDialog.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, and forms.TaskFrame.standalone.

Referenced by ghelp.MenuTreeWindow.OnItemActivated(), and forms.TaskFrame.OnKeyUp().

def forms.TaskFrame.updateValuesHook (   self,
  event = None 
)

Update status bar data.

Definition at line 551 of file forms.py.


Field Documentation

Definition at line 497 of file forms.py.

Definition at line 435 of file forms.py.

Referenced by forms.TaskFrame.OnRun().

Definition at line 462 of file forms.py.

Referenced by forms.TaskFrame.OnRun().

Definition at line 476 of file forms.py.

Referenced by forms.TaskFrame.OnRun().

Definition at line 456 of file forms.py.

Referenced by forms.TaskFrame.OnRun().

Definition at line 512 of file forms.py.

Definition at line 373 of file forms.py.

Definition at line 395 of file forms.py.

Definition at line 354 of file forms.py.

Referenced by forms.TaskFrame.OnApply().

Definition at line 418 of file forms.py.

Definition at line 536 of file forms.py.

Definition at line 537 of file forms.py.

Definition at line 387 of file forms.py.

Referenced by forms.TaskFrame.OnRun().

Definition at line 538 of file forms.py.


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