Activity editor
Dialog for creating or editing an activity.
ActivityEditorDialog
Bases: QDialog
, WidgetUi
Dialog for creating or editing an activity.
Source code in src/cplus_plugin/gui/activity_editor_dialog.py
activity
property
Returns a reference to the activity object.
Returns:
Type | Description |
---|---|
Activity
|
Reference to the activity object. |
edit_mode
property
Returns the state of the editor.
Returns:
Type | Description |
---|---|
bool
|
True if the editor is editing an existing activity 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. |
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/activity_editor_dialog.py
open_help
output_layer_color_ramp
Returns the selected color ramp.
Returns:
Type | Description |
---|---|
QgsColorRamp
|
The color ramp selected by the user. |
Source code in src/cplus_plugin/gui/activity_editor_dialog.py
scenario_fill_symbol_layer
Gets the first fill symbol layer in the symbol as set in the button.
It checks to ensure that there is at least one fill symbol layer contained in the symbol.
Returns:
Type | Description |
---|---|
QgsFillSymbolLayer
|
Fill symbol layer to be used in the activity. |
Source code in src/cplus_plugin/gui/activity_editor_dialog.py
validate
Validates if name has been specified.
Returns:
Type | Description |
---|---|
True
|
True if the name have been set. |