Layout Items
Custom CPLUS layout items.
BasicScenarioDetailsItem
Bases: QgsLayoutItemGroup
Contains elements showing the basic details of a scenario such as a title, description, map and legend.
Source code in src/cplus_plugin/lib/reports/layout_items.py
attemptResize
Override to set the correct position of the legend item.
Source code in src/cplus_plugin/lib/reports/layout_items.py
set_label_font
classmethod
Set font properties of the given layout label item.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
label |
QgsLayoutItemLabel
|
Label item whose font properties will be updated. |
required |
size |
float
|
Point size of the font. |
required |
bold |
bool
|
True if font is to be bold, else False (default). |
False
|
italic |
bool
|
True if font is to be in italics, else False (default). |
False
|
color |
QColor
|
Color for the text or None for the default color. |
None
|
Source code in src/cplus_plugin/lib/reports/layout_items.py
CplusMapRepeatItem
Bases: QgsLayoutItemShape
Defines an outline area within a layout where map items containing NCS pathway or activity will be drawn.
Source code in src/cplus_plugin/lib/reports/layout_items.py
model_component_type
property
writable
Gets the model component type associated with this map item i.e. NCS pathway or activity.
Returns:
Type | Description |
---|---|
Enum
|
Type of the model component. |
icon
readPropertiesFromElement
Override reading of item properties.
Source code in src/cplus_plugin/lib/reports/layout_items.py
type
visibleName
visiblePluralName
writePropertiesToElement
Override saving of item properties.
Source code in src/cplus_plugin/lib/reports/layout_items.py
CplusMapRepeatItemLayoutItemMetadata
Bases: QgsLayoutItemAbstractMetadata
Metadata info of the cplus map repeat item.