Exemple #1
0
 def _show_annotation_tool(self):
     from mapclient.tools.annotation.annotationdialog import AnnotationDialog
     location = self._model.workflowManager().location()
     dlg = AnnotationDialog(location, DEFAULT_WORKFLOW_ANNOTATION_FILENAME,
                            self)
     dlg.setModal(True)
     dlg.exec_()
Exemple #2
0
        def testAnnotationDialog(self):
            QtGui.QApplication.instance()
            to_path = os.path.join(os.path.dirname(utils.__file__),
                                   'test_resources/annotation_test/')
            if not os.path.exists(to_path):
                os.mkdir(to_path)

            dlg = AnnotationDialog(to_path)
            dlg.setModal(True)
Exemple #3
0
 def annotateMe(self):
     dlg = AnnotationDialog(self._getStepLocation())
     dlg.setModal(True)
     dlg.exec_()