Exemplo n.º 1
0
 def quick_inspect(self):
     cursor = self.selection
     tools = self.project.layer_tools(cursor.layer)
     config = tools['inspection']
     form, feature = self.get_inspection_config(cursor.feature, config)
     editmode = False
     form.suppressform = True
     RoamEvents.load_feature_form(form, feature, editmode)
     # Leaking state is leaking.  But this is what we have for now.
     form.suppressform = False
Exemplo n.º 2
0
    def openform(self):
        cursor = self.selection
        tools = self.project.layer_tools(cursor.layer)
        if 'inspection' in tools:
            config = tools['inspection']
            form, feature = self.get_inspection_config(cursor.feature, config)
            editmode = False
        else:
            form = cursor.form
            feature = cursor.feature
            editmode = True

        RoamEvents.load_feature_form(form, feature, editmode)
Exemplo n.º 3
0
    def openform(self):
        cursor = self.selection
        tools = self.project.layer_tools(cursor.layer)
        if 'inspection' in tools:
            config = tools['inspection']
            form, feature = self.get_inspection_config(cursor.feature, config)
            editmode = False
        else:
            form = cursor.form
            feature = cursor.feature
            editmode = True

        RoamEvents.load_feature_form(form, feature, editmode)
Exemplo n.º 4
0
    def openform(self):
        """
        Fire the open feature form event to open the form for the current feature.
        :return:
        """
        cursor = self.selection
        tools = self.project.layer_tools(cursor.layer)
        if 'inspection' in tools:
            config = tools['inspection']
            form, feature = self.get_inspection_config(cursor.feature, config)
            editmode = False
        else:
            form = cursor.form
            feature = cursor.feature
            editmode = True

        RoamEvents.load_feature_form(form, feature, editmode)
Exemplo n.º 5
0
 def openform(self):
     cursor = self.selection
     RoamEvents.load_feature_form(cursor.form, cursor.feature, True)