Priority weighting layer dialog¶
Priority layer dialog
PriorityLayerDialog ¶
Bases: QDialog
, DialogUi
Dialog that provide UI for priority layer details.
Source code in src/cplus_plugin/gui/priority_layer_dialog.py
accept ¶
Handles logic for adding new priority layer and an edit existing one.
Source code in src/cplus_plugin/gui/priority_layer_dialog.py
initialize_ui ¶
Populate UI inputs when loading the dialog
Source code in src/cplus_plugin/gui/priority_layer_dialog.py
map_layer_changed ¶
Sets the file path of the selected layer in file path input
Parameters:
Name | Type | Description | Default |
---|---|---|---|
layer |
QgsMapLayer
|
Qgis map layer |
required |
Source code in src/cplus_plugin/gui/priority_layer_dialog.py
open_help ¶
open_layer_select_dialog ¶
Opens priority layer item selection dialog
set_selected_items ¶
Adds this dialog layer into the passed pathways and removes it from the unselected pathways passed as removed_pathways.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pathways |
list
|
Selected pathways. |
required |
removed_pathways |
list
|
Pathways that dialog layer should be removed from. |
None
|
Source code in src/cplus_plugin/gui/priority_layer_dialog.py
update_ok_buttons ¶
Responsible for changing the state of the dialog OK button.
Source code in src/cplus_plugin/gui/priority_layer_dialog.py
Last update:
June 9, 2025