adsfolio.gui.dialogs
Dialogs for identify and rename operations.
- class adsfolio.gui.dialogs.ExplainedFormLabel(text, explanation, parent=None)[source]
Bases:
PySide6.QtWidgets.QWidgetForm label with visible, keyboard-accessible contextual help.
- staticMetaObject = PySide6.QtCore.QMetaObject("ExplainedFormLabel" inherits "QWidget": )
- class adsfolio.gui.dialogs.IdentifyDialog(root, global_settings=None, library_settings=None, *, initial_scope='global', save_settings=None, files=(), parent=None)[source]
Bases:
PySide6.QtWidgets.QDialogCollect identify flags and run the CLI as a subprocess.
- Parameters:
root (Path)
global_settings (IdentifySettings | None)
library_settings (IdentifySettings | None)
initial_scope (str)
save_settings (Callable[[str, IdentifySettings], None] | None)
files (Sequence[Path])
parent (Any)
- job_started
- run_identify()[source]
Start Identify with the displayed controls without saving defaults.
- Return type:
None
- save_defaults()[source]
Persist reusable settings without running or closing the dialog.
- Return type:
None
- selected_strategies()[source]
Return enabled strategies in the displayed priority order.
- Return type:
- staticMetaObject = PySide6.QtCore.QMetaObject("IdentifyDialog" inherits "QDialog": Methods: #41 type=Signal, signature=job_started(PyObject), parameters=PyObject )
- class adsfolio.gui.dialogs.ManualMetadataDialog(path, metadata, *, save_metadata, parent=None)[source]
Bases:
PySide6.QtWidgets.QDialogEnter paper metadata and save it without an online lookup.
- Parameters:
- fields: dict[str, QLineEdit | QPlainTextEdit]
- staticMetaObject = PySide6.QtCore.QMetaObject("ManualMetadataDialog" inherits "QDialog": )
- class adsfolio.gui.dialogs.OptionalYearSpinBox[source]
Bases:
PySide6.QtWidgets.QSpinBoxSpin box that displays its zero sentinel as an empty year.
- staticMetaObject = PySide6.QtCore.QMetaObject("OptionalYearSpinBox" inherits "QSpinBox": )
- class adsfolio.gui.dialogs.RenameDialog(root, global_settings=None, library_settings=None, *, initial_scope='global', identify_settings=None, save_settings=None, parent=None)[source]
Bases:
PySide6.QtWidgets.QDialogPreview and apply registry-backed PDF renames.
- Parameters:
root (Path)
global_settings (RenameSettings | None)
library_settings (RenameSettings | None)
initial_scope (str)
identify_settings (IdentifySettings | None)
save_settings (Callable[[str, RenameSettings], None] | None)
parent (Any)
- done(result)[source]
Stop a running preview when the dialog closes.
- Parameters:
result (int)
- Return type:
None
- job_started
- preview()[source]
Start a preview in a child process. The dialog stays responsive.
- Return type:
None
- staticMetaObject = PySide6.QtCore.QMetaObject("RenameDialog" inherits "QDialog": Methods: #41 type=Signal, signature=job_started(PyObject), parameters=PyObject )
- class adsfolio.gui.dialogs.RenamePreviewJob(root, options, parent=None)[source]
Bases:
adsfolio.gui.jobs.JsonWorkerJobBuild a rename preview in a child process.
The preview reads every tracked PDF, so it must not run in the window’s process. finished carries the run_request payload and an error.
- Parameters:
root (Path)
options (Mapping[str, Any])
parent (Any)
- command = 'rename-preview'
- staticMetaObject = PySide6.QtCore.QMetaObject("RenamePreviewJob" inherits "JsonWorkerJob": )
- class adsfolio.gui.dialogs.UserProfileDialog(profile, *, save_profile=None, parent=None)[source]
Bases:
PySide6.QtWidgets.QDialogEdit the global publication profile used for ADS prefetching.
- Parameters:
profile (UserProfile)
save_profile (Callable[[UserProfile], None] | None)
parent (Any)
- staticMetaObject = PySide6.QtCore.QMetaObject("UserProfileDialog" inherits "QDialog": )