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
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)
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)
def openform(self): cursor = self.selection RoamEvents.load_feature_form(cursor.form, cursor.feature, True)