GUI main¶
The plugin main window class.
QgisCplusMain ¶
Bases: QDockWidget, WidgetUi
Main plugin UI class
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | |
add_priority_group ¶
Adds a new priority group into the plugin, then updates the priority list to show the new added priority group.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
add_priority_layer ¶
Adds a new priority layer into the plugin, then updates the priority list to show the new added priority layer.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
add_priority_layer_group ¶
Adds priority layer from the weighting layers into a priority group If no target_group or priority_layer is passed then the current selected group or priority layer from their respective list will be used.
Checks if priority layer is already in the target group and if so no addition is done.
Once the addition is done, the respective priority layer plugin settings are updated to store the new information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target_group |
dict
|
Priority group where layer will be added to |
None
|
priority_layer |
dict
|
Priority weighting layer to be added |
None
|
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 | |
add_scenario ¶
Adds a new scenario into the scenario list.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
analysis_complete ¶
Calls the responsible function for handling analysis results outputs
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task |
ScenarioAnalysisTask
|
Analysis task |
required |
report_manager |
ReportManager
|
Report manager used to generate analysis report_templates |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
can_clip_to_studyarea ¶
Return true if clipping layers by study area is selected
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
cancel_processing_task ¶
Cancels the current processing task.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
edit_priority_group ¶
Edits the current selected priority group and updates the group box list.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
edit_priority_layer ¶
Edits the current selected priority layer and updates the layer box list.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
enable_analysis_controls ¶
Enable or disable controls related to running the scenario analysis.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enable |
bool
|
True to enable else False to disable. |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
fetch_default_layer_list ¶
Fetch default layer list from API.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
fetch_scenario_history_list ¶
Fetch scenario history list from API.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
get_studyarea_path ¶
Return the path of the study area
Returns: str: Study area path
group_value_changed ¶
Slot to handle priority group widget changes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_name |
str
|
Group name |
required |
group_value |
int
|
Group value |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
has_trends_auth ¶
Check if plugin has user Trends.Earth authentication.
Returns:
| Type | Description |
|---|---|
bool
|
True if user has provided the username and password. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
initialize_priority_layers ¶
Prepares the priority weighted layers UI with the defaults.
Gets the store priority layers from plugin settings and populates them into the QListWidget as QListWidgetItems then fetches the priority groups and adds them to the QTreeWidget as QTreeWidgetItems with their corresponding priority layers as their child items.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
is_metric_configuration_valid ¶
Checks if the setup of the metric configuration for the scenario analysis report is correct.
Returns:
| Type | Description |
|---|---|
bool
|
True if the configuration is correct else False. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
load_layer_options ¶
Retrieve outputs scenarion layers selection from settings and update the releated ui components
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
load_report_options ¶
Load previously saved report options.
load_scenario ¶
Edits the current selected scenario and updates the layer box list.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 | |
main_task ¶
Serves as a QgsTask function for the main task that contains smaller sub-tasks running the actual processing calculations.
move_layer_to_group ¶
Moves a layer open in QGIS to another group.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layer |
QgsRasterLayer
|
Raster layer to move |
required |
group |
QgsLayerTreeGroup
|
Group to which the raster should be moved |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_aoi_source_changed ¶
Slot raised when the area of interest source button group has been toggled.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_fetch_scenario_history_list_finished ¶
Callback when plugin has finished pulling scenario history list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
success |
bool
|
True if API call is successful |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_generate_comparison_report ¶
Slot raised to generate a comparison for two or more selected scenario results.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 | |
on_log_message_received ¶
Slot to handle log tab updates and processing logs
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message |
str
|
The received message from QGIS message log |
required |
tag |
str
|
Message log tag |
required |
level |
MessageLevel
|
Message level enum value |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_manage_constant_raster_pwls ¶
Slot raised to show the Constant Raster manager dialog.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_manage_pwls_relative_impact_matrix ¶
Slot raised to show the dialog for managing relative impact matrix of PWLs.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_npv_pwl_created ¶
Callback that creates an PWL item when the corresponding raster layer has been created.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pathway_npv |
ActivityNpv
|
NPV mapping for an NCS pathway. |
required |
npv_pwl_path |
str
|
Absolute file path of the created NPV PWL. |
required |
algorithm |
QgsProcessingAlgorithm
|
Processing algorithm that created the NPV PWL. |
required |
context |
QgsProcessingContext
|
Contextual information that was used to create the NPV PWL in processing. |
required |
feedback |
QgsProcessingFeedback
|
Feedback to update on the processing progress. |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_npv_pwl_removed ¶
Callback that is executed when an NPV PWL has been removed because it was disabled by the user.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_online_task_check_finished ¶
Handler for view online task and generate report button.
The button itself will be shown when Cplus plugin becomes visible.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_profile_action_group_triggered ¶
Slot raised when the action group for profiles has been triggered.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
action |
QAction
|
Action in the group that has been triggered. |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_progress_dialog_cancelled ¶
Slot raised when analysis has been cancelled in progress dialog.
on_report_error ¶
Slot raised when report task error has occured.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_report_finished ¶
Slot raised when report task has finished.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
scenario_id |
str
|
Scenario analysis id |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_report_running ¶
Slot raised when report task has started.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
scenario_id |
str
|
Scenario analysis id |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_report_status_changed ¶
Slot raised when report task status has changed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
message |
str
|
Status message. |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_reporting_progress_changed ¶
Slot raised when the reporting progress has changed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
progress |
float
|
Analysis progress value between 0 and 100 |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_scenario_list_selection_changed ¶
Slot raised when the selection of scenarios changes.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_show_metrics_wizard ¶
Slot raised to show the metric customization wizard for creating the scenario analysis report.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_tab_step_changed ¶
Slot raised when the current tab changes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index |
int
|
Zero-based index position of new current tab |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 | |
on_use_custom_metrics ¶
Slot raised when use custom metrics has been enabled or disabled.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
checked |
bool
|
True to use custom metrics else False. |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_view_status_button_clicked ¶
Handler when view status report button in tab 4 is clicked.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
open_help ¶
open_settings ¶
outputs_options_changed ¶
Handles selected outputs changes
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
post_analysis ¶
Handles analysis outputs from the final analysis results. Adds the resulting scenario raster to the canvas with styling. Adds each of the activities to the canvas with styling. Adds each activities' pathways to the canvas.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scenario_result |
ScenarioResult
|
ScenarioResult of output results |
required |
task |
ScenarioAnalysisTask
|
Analysis task |
required |
report_manager |
ReportManager
|
Report manager used to generate analysis report_templates |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 | |
prepare_aoi_box ¶
Initialize the Area of interest box
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
prepare_extent_box ¶
Configure the spatial extent box with the initial settings.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
prepare_input ¶
Initializes plugin input widgets
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 | |
prepare_message_bar ¶
Initializes the widget message bar settings
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
priority_groups_update ¶
Updates the priority groups list item with the passed selected layer items.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target_item |
QTreeWidgetItem
|
The priority group tree widget item that is to be updated |
required |
selected_items |
list
|
Priority layers items from the list widget |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
processing_options_changed ¶
remove_priority_group ¶
Removes the current active priority group.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
remove_priority_layer ¶
Removes one or more of the selected priority layers.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
remove_priority_layer_group ¶
Remove the current select priority layer from the current priority group.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
remove_scenario ¶
Removes the current active scenario.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
report_job_is_for_current_scenario ¶
Checks if the given scenario identifier is for the current scenario result.
This is to ensure that signals raised by the report manager refer to the current scenario result object and not for old jobs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scenario_id |
str
|
Scenario identifier usually from a signal raised by the report manager. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the scenario identifier matches the current scenario object in the results, else False. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
reset_reporting_feedback ¶
Creates a new reporting feedback object and reconnects the signals.
We are doing this to address cases where the feedback is canceled and the same object has to be reused for subsequent report generation tasks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
Returns:
| Type | Description |
|---|---|
QgsFeedback
|
Feedback instance to be used in storing processing status details. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
restore_scenario ¶
Update the first tab input with the last scenario details
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
run_analysis ¶
Runs the plugin analysis Creates new QgsTask, progress dialog and report manager for each new scenario analysis.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 | |
run_report ¶
Run report generation. This should be called after the analysis is complete.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
report_manager |
ReportManager
|
Report manager used to generate analysis report_templates |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
save_scenario ¶
Save current scenario details into settings
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
scenario_results ¶
Called when the task ends. Sets the progress bar to 100 if it finished.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task |
ScenarioAnalysisTask
|
Analysis task |
required |
report_manager |
ReportManager
|
Report manager used to generate analysis report_templates |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
selected_activities ¶
Gets the collection of selected activities.
Returns:
| Type | Description |
|---|---|
typing.List[Activity]
|
A list of selected activities. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
show_message ¶
Shows message on the main widget message bar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message |
str
|
Text message |
required |
level |
MessageLevel
|
Message level type |
Warning
|
duration |
int
|
Duration of the shown message |
0
|
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
show_scenario_info ¶
Loads dialog for showing scenario information.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
style_activities_layer ¶
Applies the styling to the passed layer that contains the passed list of activities.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layer |
QgsRasterLayer
|
Layer to be styled |
required |
activities |
list
|
List which contains the activities that were passed to the highest position analysis tool. |
required |
Returns:
| Type | Description |
|---|---|
QgsPalettedRasterRenderer
|
Renderer for the symbology. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
style_activity_layer ¶
Applies the styling to the layer that contains the passed activity name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layer |
QgsRasterLayer
|
Raster layer to which to apply the symbology |
required |
activity |
Activity
|
activity |
required |
Returns:
| Type | Description |
|---|---|
QgsSingleBandPseudoColorRenderer
|
Renderer for the symbology. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
task_terminated ¶
Handles logging of the scenario analysis task status after it has been terminated.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task |
Union[ScenarioAnalysisTask, ScenarioAnalysisTaskApiClient]
|
Task that was terminated |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
transform_extent ¶
Transforms the passed extent into the destination crs
:param extent: Target extent
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source_crs |
QgsCoordinateReferenceSystem
|
Source CRS of the passed extent |
required |
dest_crs |
QgsCoordinateReferenceSystem
|
Destination CRS |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_message_bar ¶
Changes the message in the message bar item.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message |
str
|
Message to be updated |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_metric_button_profiles ¶
Updates the profiles in the metric button menu based on the existing metric configuration profiles.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_naturebase_carbon_impact ¶
Fetch the naturebase zonal stats based on the current extent.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_priority_layers ¶
Updates the priority weighting layers list in the UI.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
update_groups |
bool
|
Whether to update the priority groups list or not |
True
|
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_progress_bar ¶
Sets the value of the progress bar
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
value |
float
|
Value to be set on the progress bar |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_progress_dialog ¶
Run report generation. This should be called after the analysis is complete.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
message |
ReportManager
|
Report manager used to generate analysis report_templates |
None
|
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_pwl_layers ¶
Updates the priority layers path available in the store activities.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
notify |
bool
|
Whether to show message to user about the update |
False
|
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_scenario_list ¶
Fetches scenarios from plugin settings and updates the scenario history list
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
zoom_pilot_area ¶
Zoom the current main map canvas to the pilot area extent.