dicogis.ui.wdg_tab_files module

Name: TabFiles Purpose: Tab containing files widgets in DicoGIS Notebook.

Author: Julien Moura (@geojulien)

class dicogis.ui.wdg_tab_files.TabFiles(parent=None, listing_initial_folder=None)

Bases: QWidget

Tab for listing and picking geodata files formats.

Parameters:

QWidget – inherited Qt widget

__init__(parent=None, listing_initial_folder=None)

Initializes UI tab for files browsing and filtering.

Parameters:
  • parent (QWidget | None) – Qt parent widget

  • listing_initial_folder (Path | None) – initial folder for the browse dialog. Defaults to Path().home().

disable_unsupported_format_filters()

Grey out (and uncheck) filters for formats the installed GDAL build cannot actually read. Some drivers (e.g. Geoconcept, ECW) are optional/plugin drivers not included in every GDAL packaging.

Return type:

None

folder_selected
get_filters_state()

Return the state of every format filter checkbox.

Return type:

dict[str, bool]

get_target_path()

Return the currently entered target folder path.

Return type:

str

on_browse_get_initial_listing_folder_path()

Browse and insert the path of target folder.

Return type:

Path | None

Returns:

selected folder path or None if something went wrong

retranslate_ui()

Update widgets texts for the currently active language.

Return type:

None

set_filters_state(values)

Apply the state of every format filter checkbox from a dict.

Return type:

None

set_target_path(path)

Set the target folder path.

Return type:

None