NCS pathway editor
Dialog for creating or editing an NCS pathway entry.
NcsPathwayEditorDialog
Bases: QDialog
, WidgetUi
Dialog for creating or editing an NCS pathway entry.
Source code in src/cplus_plugin/gui/ncs_pathway_editor_dialog.py
edit_mode
property
Returns the state of the editor.
Returns:
Type | Description |
---|---|
bool
|
True if the editor is editing an existing NcsPathway object, else False if its creating a new object. |
layer
property
Returns the raster layer specified by the user, either existing layers in the map canvas or from the selected file.
Returns:
Type | Description |
---|---|
QgsRasterLayer
|
The raster layer specified by the user or None if not set. |
ncs_pathway
property
Returns a reference to the NcsPathway object.
Returns:
Type | Description |
---|---|
NcsPathway
|
Reference to the NcsPathway object. |
description_changed
Slot to handle description text changes, it currently limits the number of characters to only be 300 characters per description
Source code in src/cplus_plugin/gui/ncs_pathway_editor_dialog.py
open_help
selected_carbon_items
Returns the selected carbon items in the list view.
Returns:
Type | Description |
---|---|
list
|
A collection of the selected carbon items. |
Source code in src/cplus_plugin/gui/ncs_pathway_editor_dialog.py
validate
Validates if name and layer have been specified.
Returns:
Type | Description |
---|---|
True
|
True if user input (i.e. name and layer) have been set. |