Reference

# Module `view.MapEditor`

Dialog that allows the creation / manipulation of maps.

## Functions

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

## Functions

MapEditor.new (parent)
  Constructor.

  ### Parameters

  - parent: Parent window

  ### Return value:

  New instance of MapEditor
MapEditor:get_map ()
  Transforms the user input into a map.
MapEditor:run (map)
  Runs the map editor.

  ### Parameters

  - map: Map to edit

  ### Return value:

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

  ### Parameters

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

  ### Parameters

  - path:
  - data:
(private) MapEditor:prepare (map)
  Prepares the interface for a new map.

  ### Parameters

  - map:
(private) MapEditor:remove_row ()
  Removes the selected row from the editor.