adsfolio.gui.config
Persistent configuration for the adsfolio desktop application.
- class adsfolio.gui.config.GuiConfig(version=4, roots=<factory>, last_root=None, last_view='all', combined_view=False, combined_roots=None, search_exact=False, search_wildcards=False, search_highlight=True, export_format='bibtex', export_exclude_fields=<factory>, search_fields=<factory>, watch_sound='silent', window_geometry=None, window_state=None, column_widths=<factory>, column_fonts=<factory>, column_alignments=<factory>, table_column_order=<factory>, hidden_table_columns=<factory>, detail_fonts=<factory>, timestamp_format='iso8601', sort_column='first_seen_at', sort_descending=True, secondary_sort_column=None, tertiary_sort_column=None, expand_abstracts=False, table_row_height=None, detail_row_spacing=None, detail_label_bold=True, detail_label_width=None, detail_compact_rows=True, sidebar_visible=True, detail_visible=True, check_updates_automatically=True, skipped_update_version=None, remembered_recheck_prompt_version=None, show_edit_buttons=True, show_lock_buttons=True, filename_click_action='open', link_activation='double', pdf_viewer_command=None, web_browser_command=None, splitter_sizes=<factory>, detail_row_order=<factory>, detail_hidden_rows=<factory>, citation_styles=<factory>, identify_scopes=<factory>, rename_scopes=<factory>)[source]
Bases:
objectSerializable GUI preferences and registered library roots.
- Parameters:
version (int)
roots (list[adsfolio.gui.config.RootEntry])
last_root (str | None)
last_view (str)
combined_view (bool)
search_exact (bool)
search_wildcards (bool)
search_highlight (bool)
export_format (str)
watch_sound (str)
window_geometry (str | None)
window_state (str | None)
timestamp_format (str)
sort_column (str)
sort_descending (bool)
secondary_sort_column (str | None)
tertiary_sort_column (str | None)
expand_abstracts (bool)
table_row_height (int | None)
detail_row_spacing (int | None)
detail_label_bold (bool)
detail_label_width (int | None)
detail_compact_rows (bool)
sidebar_visible (bool)
detail_visible (bool)
check_updates_automatically (bool)
skipped_update_version (str | None)
remembered_recheck_prompt_version (str | None)
show_edit_buttons (bool)
show_lock_buttons (bool)
filename_click_action (str)
link_activation (str)
pdf_viewer_command (str | None)
web_browser_command (str | None)
citation_styles (list[adsfolio.citations.CitationStyle])
- citation_styles: list[adsfolio.citations.CitationStyle]
- roots: list[adsfolio.gui.config.RootEntry]
- class adsfolio.gui.config.RootEntry(path, label='', recursive=False, watch_on_start=False, auto_process_new_pdfs=False)[source]
Bases:
objectA PDF library root registered in the GUI.
- Parameters:
- adsfolio.gui.config.config_path()[source]
Return the path of the GUI configuration file.
- Return type:
- adsfolio.gui.config.load_config()[source]
Load GUI preferences, returning defaults when unavailable or invalid.
- Returns:
Loaded preferences, or a default configuration when the file is missing, malformed, or unreadable.
- Return type: