eric7.CycloneDXInterface.CycloneDXConfigDialog

Module implementing a dialog to configure the CycloneDX SBOM generation.

Global Attributes

None

Classes

CycloneDXConfigDialog Class implementing a dialog to configure the CycloneDX SBOM generation.

Functions

None


CycloneDXConfigDialog

Class implementing a dialog to configure the CycloneDX SBOM generation.

Derived from

QDialog, Ui_CycloneDXConfigDialog

Class Attributes

DefaultFileFormat
DefaultFileNames
Sources
SupportedSpecs

Class Methods

None

Methods

CycloneDXConfigDialog Constructor
__repopulateSpecVersionComboBox Private slot to repopulate the spec version selector.
getData Public method to get the SBOM configuration data.
on_fileFormatComboBox_currentTextChanged Private slot to handle the selection of a SBOM file format.
on_poetryButton_toggled Private slot handling a change of the 'Poetry' button state.

Static Methods

None

CycloneDXConfigDialog (Constructor)

CycloneDXConfigDialog(environment, parent=None)

Constructor

environment (str)
name of the virtual environment
parent (QWidget (optional))
reference to the parent widget (defaults to None)

CycloneDXConfigDialog.__repopulateSpecVersionComboBox

__repopulateSpecVersionComboBox()

Private slot to repopulate the spec version selector.

CycloneDXConfigDialog.getData

getData()

Public method to get the SBOM configuration data.

Return:
tuple containing the input source, the input path name, the file format, the schema version, the path of the SBOM file to be written, the path to the pyproject.toml file and the type of the main component.
Return Type:
tuple of (str, str, str, str, str, str, str)

CycloneDXConfigDialog.on_fileFormatComboBox_currentTextChanged

on_fileFormatComboBox_currentTextChanged(fileFormat)

Private slot to handle the selection of a SBOM file format.

fileFormat (str)
selected format

CycloneDXConfigDialog.on_poetryButton_toggled

on_poetryButton_toggled(checked)

Private slot handling a change of the 'Poetry' button state.

checked (bool)
state of the button
Up