Example #1
0
 def show_definitions(self):
     """Show InaSAFE Definitions (a report showing all key metadata)."""
     from safe.gui.tools.help_dialog import HelpDialog
     from safe.gui.tools.help import definitions_help
     dialog = HelpDialog(self.iface.mainWindow(),
                         definitions_help.definitions_help())
     dialog.show()  # non modal
Example #2
0
    def test_definitions_help(self):
        """Test definitions help generation."""
        help_text = definitions_help.definitions_help().to_text()
        expected_result = get_control_text('test-definition-help-response.txt')

        for line in expected_result:
            line = line.replace('\n', '')
            self.assertIn(line, help_text)
Example #3
0
 def show_definitions(self):
     """Show InaSAFE Definitions (a report showing all key metadata)."""
     from safe.gui.tools.help_dialog import HelpDialog
     from safe.gui.tools.help import definitions_help
     dialog = HelpDialog(
         self.iface.mainWindow(),
         definitions_help.definitions_help())
     dialog.show()  # non modal
Example #4
0
    def test_definitions_help(self):
        """Test definitions help generation."""
        help_text = definitions_help.definitions_help().to_text()
        expected_result = get_control_text(
            'test-definition-help-response.txt')

        for line in expected_result:
            line = line.replace('\n', '')
            self.assertIn(line, help_text)
Example #5
0
 def show_definitions(self):
     """Show InaSAFE Definitions (a report showing all key metadata)."""
     from safe.utilities.help import show_help
     from safe.gui.tools.help import definitions_help
     show_help(definitions_help.definitions_help())
# coding=utf-8
"""Interactive test for definitions help."""
from safe.definitions.constants import INASAFE_TEST
from safe.test.utilities import get_qgis_app
QGIS_APP, CANVAS, IFACE, PARENT = get_qgis_app(qsetting=INASAFE_TEST)
from safe.gui.tools.help_dialog import HelpDialog  # NOQA
from safe.gui.tools.help import definitions_help  # NOQA

__copyright__ = "Copyright 2016, The InaSAFE Project"
__license__ = "GPL version 3"
__email__ = "*****@*****.**"
__revision__ = 'fdf1afffab4271e5fbb873566278d5b4a7ff5722'

dialog = HelpDialog(None, definitions_help.definitions_help())
# coding=utf-8

"""Interactive test for definitions help."""


from safe.test.utilities import get_qgis_app, get_dock
QGIS_APP, CANVAS, IFACE, PARENT = get_qgis_app()
from PyQt4.QtGui import QApplication
from safe.gui.tools.help_dialog import HelpDialog
from safe.gui.tools.help import definitions_help

__copyright__ = "Copyright 2016, The InaSAFE Project"
__license__ = "GPL version 3"
__email__ = "*****@*****.**"
__revision__ = 'b68f9f9b473d275ea4d63c7b831184f2c08e0e6e'

dialog = HelpDialog(None, definitions_help.definitions_help())
Example #8
0
#!/usr/bin/python
"""A helper to open the help documentation as a standalone dialog.

Tim Sutton, 2016
"""
from safe.test.qgis_app import qgis_app
from safe.gui.tools.help_dialog import HelpDialog
from safe.gui.tools.help import definitions_help

APP, IFACE = qgis_app()

dialog = HelpDialog(IFACE.mainWindow(), definitions_help.definitions_help())
dialog.show()  # non modal
APP.exec_()
Example #9
0
#!/usr/bin/python

"""A helper to open the help documentation as a standalone dialog.

Tim Sutton, 2016
"""
from safe.test.utilities import get_qgis_app, get_dock
QGIS_APP, CANVAS, IFACE, PARENT = get_qgis_app()
# from PyQt4.QtGui import QApplication
from safe.gui.tools.help_dialog import HelpDialog
from safe.gui.tools.help import definitions_help
dialog = HelpDialog(
    None,
    definitions_help.definitions_help())
dialog.show()  # non modal
QGIS_APP.exec_()