app package
Module contents
- class app.ConfigManager[source]
Bases :
objectManages configuration state for the UI application.
- get_effective_config_path()[source]
Get the effective config path, falling back to default if needed.
- Type renvoyé:
Path
- toggle_vessel_mode()[source]
Toggle vessel mode and handle mutual exclusivity. Returns True if changed.
- Type renvoyé:
bool
- class app.DependencyContainer[source]
Bases :
objectConteneur pour l’injection de dépendance.
- class app.FileDisplay(get_files_callback, remove_callback=None)[source]
Bases :
objectComponent for displaying selected files.
- class app.FileManager[source]
Bases :
objectHandles file operations for the application.
- static _is_numeric_extension(extension)[source]
Check if the extension is numeric (e.g., .1, .2, .3).
- Type renvoyé:
bool
- async static open_config_dialog(initial_dir='')[source]
Open config file selection dialog and return selected file.
- Type renvoyé:
str
- async static open_directory_dialog(initial_dir='')[source]
Open directory selection dialog and return selected directory.
- Type renvoyé:
str
- _is_duplicate(file_name)[source]
Check if file name already exists in collection.
- Type renvoyé:
bool
- add_files(file_paths)[source]
Add files to the collection and return number of added files.
- Type renvoyé:
int
- ALLOWED_EXTENSIONS = {'.csv', '.geojson', '.txt', '.xyz'}
- class app.FileOperations(config_manager, file_manager, validator)[source]
Bases :
objectHandles file-related operations like dialogs and file management.
- class app.FileSelectionComponentNative(file_manager, validator, file_display)[source]
Bases :
FileSelectionComponentABCComponent for file selection in the native application.
- class app.FileSelectionComponentWeb(file_manager, validator, file_display)[source]
Bases :
FileSelectionComponentABCComponent for file selection in the web application.
- class app.GuiType(value)[source]
Bases :
StrEnumEnumeration for GUI types.
- NATIVE = 'native'
- WEB = 'web'
- class app.OptionsComponent(config_path, config_manager, ui_event_handler)[source]
Bases :
objectComponent for processing options.
- class app.ProcessingHandler(config_manager, file_manager, validator, status_display, log_display, log_settings=None)[source]
Bases :
objectHandles the file processing workflow.
- async _execute_processing_workflow()[source]
Execute the main processing workflow.
- Type renvoyé:
None
- async _handle_validation_errors(validation_errors)[source]
Handle validation errors.
- Type renvoyé:
None
- _perform_validation()[source]
Perform comprehensive validation and return list of errors.
- Type renvoyé:
list[str]
- _prepare_vessel_config()[source]
Prepare vessel configuration based on current settings.
- Type renvoyé:
Any
- class app.ProcessingSection(process_callback)[source]
Bases :
objectComponent for the processing section.
- class app.ThemeManager(dark_mode=True)[source]
Bases :
objectGestionnaire des thèmes de l’interface utilisateur.
- class app.UIEventHandler(config_manager, file_operations, validator, log_display)[source]
Bases :
object- remove_file(file_info, file_selection_component)[source]
Remove a file from the upload list.
- Type renvoyé:
None
- async select_config_file()[source]
Select config file and return the selected path.
- Type renvoyé:
str
- async select_output_directory()[source]
Select output directory and return the selected path.
- Type renvoyé:
str
- toggle_vessel()[source]
Toggle vessel option and return True if waterline was disabled.
- Type renvoyé:
bool
- class app.UILogHandler(level='INFO')[source]
Bases :
objectCustom log handler to capture logs for UI display.
- FORMAT: str = '{time:YYYY-MM-DD HH:mm:ss} | {level:^8} | {message}'
- class app.UIRunner(main_ui, gui)[source]
Bases :
objectRunner for the CSB Processing UI application.