Skip to content

Commit dac6868

Browse files
committed
rename: template_attribute_form -> plan_feature_form, new_plan_regulation_group_form -> plan_regulation_group_form
1 parent 321c010 commit dac6868

6 files changed

+6
-6
lines changed

arho_feature_template/core/feature_template_library.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
parse_template_library_config,
1818
)
1919
from arho_feature_template.exceptions import LayerNotFoundError, LayerNotVectorTypeError
20-
from arho_feature_template.gui.template_attribute_form import TemplateAttributeForm
20+
from arho_feature_template.gui.plan_feature_form import PlanFeatureForm
2121
from arho_feature_template.gui.template_dock import TemplateLibraryDock
2222
from arho_feature_template.resources.template_libraries import library_config_files
2323
from arho_feature_template.utils.project_utils import get_layer_from_project
@@ -157,7 +157,7 @@ def ask_for_feature_attributes(self, feature: QgsFeature) -> None:
157157
if not self.active_template:
158158
return
159159

160-
attribute_form = TemplateAttributeForm(self.active_template.config)
160+
attribute_form = PlanFeatureForm(self.active_template.config)
161161

162162
if attribute_form.exec_():
163163
layer = get_layer_from_project(self.active_template.config.feature.layer)

arho_feature_template/gui/template_attribute_form.py arho_feature_template/gui/plan_feature_form.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
FormClass, _ = uic.loadUiType(ui_path)
3636

3737

38-
class TemplateAttributeForm(QDialog, FormClass): # type: ignore
38+
class PlanFeatureForm(QDialog, FormClass): # type: ignore
3939
"""Parent class for feature template forms for adding and modifying feature attribute data."""
4040

4141
def __init__(self, feature_template_config: FeatureTemplate):

arho_feature_template/gui/new_plan_regulation_group_form.py arho_feature_template/gui/plan_regulation_group_form.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
FormClass, _ = uic.loadUiType(ui_path)
1818

1919

20-
class NewPlanRegulationGroupForm(QDialog, FormClass): # type: ignore
20+
class PlanRegulationGroupForm(QDialog, FormClass): # type: ignore
2121
"""Form to create a new plan regulation group."""
2222

2323
def __init__(self):

arho_feature_template/plugin.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from arho_feature_template.core.feature_template_library import FeatureTemplater, TemplateGeometryDigitizeMapTool
1111
from arho_feature_template.core.plan_manager import PlanManager
12-
from arho_feature_template.gui.new_plan_regulation_group_form import NewPlanRegulationGroupForm
12+
from arho_feature_template.gui.plan_regulation_group_form import PlanRegulationGroupForm
1313
from arho_feature_template.gui.plugin_settings import PluginSettings
1414
from arho_feature_template.qgis_plugin_tools.tools.custom_logging import setup_logger, teardown_logger
1515
from arho_feature_template.qgis_plugin_tools.tools.i18n import setup_translation
@@ -225,5 +225,5 @@ def toggle_template_dock(self, show: bool) -> None: # noqa: FBT001
225225
self.templater.template_dock.setUserVisible(show)
226226

227227
def open_plan_regulation_group_form(self):
228-
self.new_plan_regulation_group_dialog = NewPlanRegulationGroupForm()
228+
self.new_plan_regulation_group_dialog = PlanRegulationGroupForm()
229229
self.new_plan_regulation_group_dialog.exec_()

0 commit comments

Comments
 (0)