Reference

# Module `view.FilterEditor`

Dialog that allows the creation / manipulation of filters (or maps, as they maps non numerical data to numerical data.

## Functions

FilterEditor.new (parent) | Constructor.
FilterEditor:get_filter () | Transforms the user input into a filter.
FilterEditor:run (filter) | Runs the filter editor.
(private) FilterEditor:add_row () | Adds a row to the editor.
(private) FilterEditor:build_gui (parent) | Builds the interface.
(private) FilterEditor:cell_edited (path, data) | Handles a cell edition.
(private) FilterEditor:prepare (filter) | Prepares the interface for a new filter.
(private) FilterEditor:remove_row () | Removes the selected row from the editor.

## Functions

FilterEditor.new (parent)
  Constructor.

  ### Parameters

  - parent: Parent window

  ### Return value:

  New instance of FilterEditor
FilterEditor:get_filter ()
  Transforms the user input into a filter.
FilterEditor:run (filter)
  Runs the filter editor.

  ### Parameters

  - filter: Filter to edit

  ### Return value:

  New filter, or nil to clear the filter
(private) FilterEditor:add_row ()
  Adds a row to the editor.
(private) FilterEditor:build_gui (parent)
  Builds the interface.

  ### Parameters

  - parent:
(private) FilterEditor:cell_edited (path, data)
  Handles a cell edition.

  ### Parameters

  - path:
  - data:
(private) FilterEditor:prepare (filter)
  Prepares the interface for a new filter.

  ### Parameters

  - filter:
(private) FilterEditor:remove_row ()
  Removes the selected row from the editor.