adsfolio.gui.ads_library_dialog

Dialogs for selecting and populating an ADS library.

class adsfolio.gui.ads_library_dialog.AdsLibraryDialog(root, selected_records, all_records, job_factory=<class 'adsfolio.gui.ads_library_jobs.AdsLibraryJob'>, parent=None)[source]

Bases: PySide6.QtWidgets.QDialog

Choose an ADS destination and add a snapshot of local Bibcodes.

Parameters:
property active_selection: adsfolio.library_sync.BibcodeSelection[source]

Return the immutable selection represented by the active scope.

closeEvent(event)[source]

Request normal job cancellation before allowing the dialog to close.

Parameters:

event (PySide6.QtGui.QCloseEvent)

Return type:

None

property destination_documents: tuple[str, ...] | None[source]

Return complete preflight documents, or None when unknown.

staticMetaObject = PySide6.QtCore.QMetaObject("AdsLibraryDialog" inherits "QDialog": Methods:   #41 type=Slot, signature=_destination_selection_changed()   #42 type=Slot, signature=_job_succeeded(PyObject), parameters=PyObject   #43 type=Slot, signature=_job_failed(PyObject), parameters=PyObject )
class adsfolio.gui.ads_library_dialog.CreateAdsLibraryDialog(parent=None)[source]

Bases: PySide6.QtWidgets.QDialog

Collect the values needed to create an empty ADS library.

Parameters:

parent (QWidget | None)

accept()[source]

Accept only a non-empty trimmed library name.

Return type:

None

staticMetaObject = PySide6.QtCore.QMetaObject("CreateAdsLibraryDialog" inherits "QDialog": )
values()[source]

Return trimmed creation values when the name is valid.

Return type:

tuple[str, str, bool] | None