stratified_packager.gui.wdg_project_options_page

Project Properties page editing the project-scoped defaults (SPEC §5/§19).

Classes

ProjectOptionsPageWidget([parent])

Project Properties page editing the stratified_packager_* default variables.

ProjectOptionsPageWidgetFactory(*args, **kwargs)

Factory registering ProjectOptionsPageWidget in the Project Properties dialog.

class stratified_packager.gui.wdg_project_options_page.ProjectOptionsPageWidget(parent=None)[source]

Project Properties page editing the stratified_packager_* default variables.

Parameters:

parent (QWidget | None)

__init__(parent=None)[source]

Build the page and load the current project variables.

Parameters:

parent (QWidget | None) – The host widget supplied by the Project Properties dialog.

_effective(spec)[source]

Return the inherited effective value of spec (the plugin setting).

Parameters:

spec (FieldSpec) – The field whose inherited value to display.

Return type:

str

Returns:

The plugin-setting value as a display token; empty for a project-only field, which has no setting tier (its editor ignores the value).

Feed the stratification-layer selection to the stratum-name expression builder.

Return type:

None

_load()[source]

Populate the editors from the project variables and inherited settings.

Return type:

None

apply()[source]

Write the explicit project variables, clearing inherited fields.

Contained at this QGIS-invoked boundary: a failed write is reported, not raised.

Return type:

None

form_host: qgis.PyQt.QtWidgets.QWidget
lbl_header: qgis.PyQt.QtWidgets.QLabel
scroll_area: qgis.PyQt.QtWidgets.QScrollArea
verticalLayout: qgis.PyQt.QtWidgets.QVBoxLayout
class stratified_packager.gui.wdg_project_options_page.ProjectOptionsPageWidgetFactory(*args, **kwargs)[source]

Factory registering ProjectOptionsPageWidget in the Project Properties dialog.

Parameters:
createWidget(parent=None)[source]

Create the project-defaults page.

Parameters:

parent (QWidget | None) – The dialog-supplied parent widget.

Return type:

ProjectOptionsPageWidget | None

Returns:

The page, or None when no parent is supplied.

icon()[source]

Return the page’s tab icon.

Return type:

QIcon

Returns:

The plugin icon.

title()[source]

Return the page’s tab title.

Return type:

str

Returns:

The plugin title.