示例#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
示例#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)
示例#3
0
文件: infodock.py 项目: nicklv/Roam
    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)
示例#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)
示例#5
0
文件: infodock.py 项目: pxp44/Roam
 def openform(self):
     cursor = self.selection
     RoamEvents.load_feature_form(cursor.form, cursor.feature, True)