Module: safe_qgis.function_options_dialog

InaSAFE Disaster risk assessment tool developed by AusAid - Impact Functions Dialog.

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

class safe_qgis.function_options_dialog.FunctionOptionsDialog(theParent=None)[source]

ConfigurableImpactFunctions Dialog for InaSAFE.

accept()[source]

Override the default accept function

Args:

Returns:
not applicable
bind(theObject, theProperty, theType)[source]

Create a function that return the QWidget property of object and convert the value to type.

Args:
  • theObject - QWidget instance
  • theProperty - the name of property inside QWidget instance
  • theType - a function to convert the property value
Returns:
a function that return the property value of theObject
buildForm(theParams)[source]

we build a form from impact functions parameter

Args:
  • params - parameters to be edited
Returns:
not applicable
buildPostProcessorForm(theParams)[source]

Build Post Processor Tab

Args:
  • theParams - dictionary containing element of form
Returns:
not applicable
buildWidget(theFormLayout, theName, theValue)[source]

Create a new form element dynamically based from theValue type. The element will be inserted to theFormLayout.

Args:
  • theFormLayout: QFormLayout Mandatory a layout instance

  • theName: str Mandatory string referencing the key in the

    function configurable parameters dictionary.

  • theValue: object Mandatory representing the value

    referenced by the key.

Returns:
a function that return the value of widget
Raises:
None
parseInput(theInput)[source]

Parse the input value of widget. Args:

  • theInput: dictionary that holds all value of element
Returns:
a dictionary that can be consumed for impact functions.
Raises:
  • ValueError - occurs when some input cannot be converted

    to suitable type.

This module forms part of the InaSAFE tool.

Previous topic

Module: safe_qgis.keywords_dialog

Next topic

Module: safe_qgis.impact_functions_doc_base

This Page