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
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | |
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
get_pathway_type_options ¶
Returns the user-defined option values for the currently selected pathway type.
Returns:
| Type | Description |
|---|---|
dict
|
User-defined options values for the current pathway type. |
Source code in src/cplus_plugin/gui/ncs_pathway_editor_dialog.py
open_help ¶
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. |