giface.py 958 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. """
  2. @package gmodeler.giface
  3. @brief wxGUI Graphical Modeler GRASS interface
  4. Classes:
  5. - giface::GraphicalModelerGrassInterface
  6. (C) 2013-2018 by the GRASS Development Team
  7. This program is free software under the GNU General Public License
  8. (>=v2). Read the file COPYING that comes with GRASS for details.
  9. @author Martin Landa <landa.martin gmail.com>
  10. """
  11. from grass.pydispatch.signal import Signal
  12. class GraphicalModelerGrassInterface:
  13. """@implements core::giface::GrassInterface"""
  14. def __init__(self, model):
  15. self._model = model
  16. # Signal emitted to request updating of map (TODO)
  17. self.updateMap = Signal("GraphicalModelerGrassInterface.updateMap")
  18. def GetLayerTree(self):
  19. return None
  20. def GetLayerList(self, prompt):
  21. return self._model.GetMaps(prompt)
  22. def GetMapDisplay(self):
  23. """
  24. ..todo::
  25. implement connection with mapdisplay
  26. """
  27. return None