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
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
925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 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 |
|
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
1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 |
|
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
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 |
|
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 |
Qgis.MessageLevel
|
Message level enum value |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_manage_npv_pwls ¶
Slot raised to show the dialog for managing NPV PWLs.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 |
|
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 |
NcsPathwayNpv
|
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
2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 |
|
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
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 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 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 |
|
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
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 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 |
|
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
1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 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 |
|
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
set_crs_from_layer ¶
Set the CRS of the CRS selector component from a layer if the selector CRS is None or Invalid or IsGeographic and the layer CRS is not None and IsValid and is not Geographic
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 |
Qgis.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_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.