# sec_interp.gui.main_dialog_config module

Configuration and defaults for the SecInterp dialogs.

class sec_interp.gui.main_dialog_config.DialogConfig

  Bases: `object`

  Configuration 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: `object`

  Default 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: `object`

  UI-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: `object`

  Standard validation error messages.

  static empty_layer() → str

    Return translated ‘Layer contains no features’ message.

  static invalid_field_type(field: str) → str

    Return translated ‘Field type incorrect’ message.

  static invalid_geometry() → str

    Return translated ‘Layer contains invalid geometries’ message.

  static invalid_output_path() → str

    Return translated ‘Output path is not valid or not writable’ message.

  static invalid_raster() → str

    Return translated ‘Selected raster layer is not valid’ message.

  static invalid_section_line() → str

    Return translated ‘Selected section line is not valid’ message.

  static missing_dip_field() → str

    Return translated ‘Dip field required’ message.

  static missing_field(field: str) → str

    Return translated ‘Required field not found’ message.

  static missing_outcrop_field() → str

    Return translated ‘Outcrop name field required’ message.

  static missing_outcrop_layer() → str

    Return translated ‘Outcrop layer required’ message.

  static missing_output_path() → str

    Return translated ‘Output path is required’ message.

  static missing_raster() → str

    Return translated ‘DEM raster layer is required’ message.

  static missing_section_line() → str

    Return translated ‘Cross-section line is required’ message.

  static missing_strike_field() → str

    Return translated ‘Strike field required’ message.

  static missing_structural_layer() → str

    Return translated ‘Structural layer required’ message.

  static unknown_error() → str

    Return translated ‘Unknown error’ message.

  static validation_failed() → str

    Return translated ‘Input validation failed’ message.

  static wrong_geometry_type() → str

    Return translated ‘Layer has incorrect geometry type’ message.