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 activities and removes it from the unselected activities passed as removed_activities.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
activities |
list
|
Selected activities. |
required |
removed_activities |
list
|
Activities that dialog layer should be removed from. |
[]
|
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:
November 25, 2024