sec_interp.gui.ui.pages.section_feature_selector module
Feature selector with optional label field for the section line.
- class sec_interp.gui.ui.pages.section_feature_selector.SectionFeatureSelector(*args: Any, **kwargs: Any)
Bases:
QWidgetSelect a 2-vertex section feature and the field used for its label.
The feature combo only lists valid section lines (exactly two vertices, single part). The label field combo offers
Autoplus every attribute field of the current layer. The selected field only affects the displayed text; it does not change the feature id or any preview/cache input.- MAX_FEATURES = 500
- __init__(parent: Any = None) None
Build the feature and label-field combos.
- label_field() str | None
Return the selected label field, or None for automatic labels.
- select_feature(feature_id: int | None) bool
Select
feature_id; return False when it is not a valid feature.
- selected_feature_id() int | None
Return the selected feature id, or None when nothing is selected.
- set_label_field(field_name: str | None) bool
Select a label field by name; fall back to Auto when missing.
- set_layer(layer: Any) None
Repopulate both combos from
layer.