Module view.MapManager

Dialog that handles a list of maps. To store the maps and the relations, the following data structures are used:

  • self.maps: array that contains the current maps (may have 'holes')
  • self.model: list in the form (mapname, self.maps index)
  • self.neurons_tab.model: list in the form (neuron identifier, self.maps index)

Functions

MapManager.new (parent) Constructor.
MapManager:run (project) Runs the dialog.
(private) MapManager:add_helper (map)
(private) MapManager:add_map ()
(private) MapManager:build_gui (parent) Builds the interface.
(private) MapManager:build_map_tab () Builds the map creation / edition / removal tab.
(private) MapManager:build_neurons_tab () Builds the neurons tab.
(private) MapManager:cell_edited (path, data)
(private) MapManager:edit_map ()
(private) MapManager:has_selection ()
(private) MapManager:neurons_map_cell_data_func (iter)
(private) MapManager:neurons_map_changed (path, iter)
(private) MapManager:neurons_map_edited (path)
(private) MapManager:prepare (project) Prepares the manager for an array of maps.
(private) MapManager:remove_map ()
(private) MapManager:save_maps () Saves the maps back to the project.
(private) MapManager:selection_changed ()


Functions

MapManager.new (parent)
Constructor.

Parameters

  • parent: Parent window

Return value:

New instance of MapManager
MapManager:run (project)
Runs the dialog.

Parameters

  • project: Project that contains the maps

Return value:

true if the maps changed
(private) MapManager:add_helper (map)

Parameters

  • map:
(private) MapManager:add_map ()
(private) MapManager:build_gui (parent)
Builds the interface.

Parameters

  • parent: Parent window
(private) MapManager:build_map_tab ()
Builds the map creation / edition / removal tab.
(private) MapManager:build_neurons_tab ()
Builds the neurons tab.
(private) MapManager:cell_edited (path, data)

Parameters

  • path:
  • data:
(private) MapManager:edit_map ()
(private) MapManager:has_selection ()
(private) MapManager:neurons_map_cell_data_func (iter)

Parameters

  • iter:
(private) MapManager:neurons_map_changed (path, iter)

Parameters

  • path:
  • iter:
(private) MapManager:neurons_map_edited (path)

Parameters

  • path:
(private) MapManager:prepare (project)
Prepares the manager for an array of maps.

Parameters

  • project: Project that contains the maps
(private) MapManager:remove_map ()
(private) MapManager:save_maps ()
Saves the maps back to the project.
(private) MapManager:selection_changed ()

Valid XHTML 1.0!