sec_interp.gui.main_dialog_config module
Configuration and defaults for the SecInterp dialogs.
- class sec_interp.gui.main_dialog_config.DialogConfig
Bases:
objectConfiguration for dialog behavior and features.
- ALLOW_EMPTY_GEOLOGY = True
- ALLOW_EMPTY_STRUCTURES = True
- AUTO_REFRESH_PREVIEW = False
- AUTO_SAVE_SETTINGS = True
- CACHE_EXPIRY_SECONDS = 3600
- ENABLE_CACHE = True
- ENABLE_LOD = False
- ENABLE_PERFORMANCE_METRICS: bool = True
- ENABLE_TOOLTIPS = True
- ENABLE_ZOOM = True
- LOG_DETAILED_METRICS: bool = False
- LOG_PERFORMANCE = False
- MAX_PREVIEW_POINTS = 10000
- SHOW_HELP_ON_START = False
- SHOW_LEGEND = True
- SHOW_METRICS_IN_RESULTS: bool = True
- STRICT_VALIDATION = True
- VERBOSE_LOGGING = False
- ZOOM_DEBOUNCE_MS = 200
- class sec_interp.gui.main_dialog_config.DialogDefaults
Bases:
objectDefault values for dialog inputs and settings.
- BACKGROUND_COLOR = 255
- BUFFER_DISTANCE = 100
- DEFAULT_BAND = 1
- DIP_SCALE = '4'
- DIP_SCALE_FACTOR = '4'
- DPI = 300
- EXPORT_QUALITY = 95
- GRID_COLOR = 200
- PREVIEW_HEIGHT = 600
- PREVIEW_WIDTH = 800
- SAMPLING_INTERVAL = 10
- SCALE = '50000'
- SUPPORTED_DOCUMENT_FORMATS: ClassVar[list[str]] = ['.pdf', '.svg']
- SUPPORTED_IMAGE_FORMATS: ClassVar[list[str]] = ['.png', '.jpg', '.jpeg']
- SUPPORTED_VECTOR_FORMATS: ClassVar[list[str]] = ['.shp']
- VERTICAL_EXAGGERATION = '1.0'
- class sec_interp.gui.main_dialog_config.UIConstants
Bases:
objectUI-related constants.
- ICON_CLEAR = 'mActionDeleteSelected.svg'
- ICON_EXPORT = 'mActionFileSave.svg'
- ICON_HELP = 'mActionHelpContents.svg'
- ICON_REFRESH = 'mActionRefresh.svg'
- MAX_PREVIEW_HEIGHT = 1080
- MAX_PREVIEW_WIDTH = 1920
- MIN_PREVIEW_HEIGHT = 300
- MIN_PREVIEW_WIDTH = 400
- REQUIRED_COLOR = 255
- REQUIRED_INDICATOR = '*'
- STATUS_ERROR = '✗'
- STATUS_OK = '✓'
- STATUS_WARNING = '⚠'
- class sec_interp.gui.main_dialog_config.ValidationMessages
Bases:
objectStandard validation error messages.
- EMPTY_LAYER = 'Layer contains no features'
- INVALID_FIELD_TYPE = "Field '{}' has incorrect type"
- INVALID_GEOMETRY = 'Layer contains invalid geometries'
- INVALID_OUTPUT_PATH = 'Output path is not valid or not writable'
- INVALID_RASTER = 'Selected raster layer is not valid'
- INVALID_SECTION_LINE = 'Selected section line is not valid'
- MISSING_DIP_FIELD = 'Dip field is required'
- MISSING_FIELD = "Required field '{}' not found in layer"
- MISSING_OUTCROP_FIELD = 'Outcrop name field is required'
- MISSING_OUTCROP_LAYER = 'Outcrop layer is required for geological profile'
- MISSING_OUTPUT_PATH = 'Output path is required'
- MISSING_RASTER = 'DEM raster layer is required'
- MISSING_SECTION_LINE = 'Cross-section line is required'
- MISSING_STRIKE_FIELD = 'Strike field is required'
- MISSING_STRUCTURAL_LAYER = 'Structural layer is required for structure projection'
- UNKNOWN_ERROR = 'An unknown error occurred'
- VALIDATION_FAILED = 'Input validation failed'
- WRONG_GEOMETRY_TYPE = 'Layer has incorrect geometry type'