src/eric7/CycloneDXInterface/CycloneDXConfigDialog.ui

Mon, 07 Nov 2022 17:19:58 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 07 Nov 2022 17:19:58 +0100
branch
eric7
changeset 9482
a2bc06a54d9d
parent 9413
80c06d472826
child 9509
c06561080e32
permissions
-rw-r--r--

Corrected/acknowledged some bad import style and removed some obsolete code.

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>CycloneDXConfigDialog</class>
 <widget class="QDialog" name="CycloneDXConfigDialog">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>650</width>
    <height>338</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>SBOM Configuration</string>
  </property>
  <property name="sizeGripEnabled">
   <bool>true</bool>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout">
   <item>
    <layout class="QHBoxLayout" name="horizontalLayout_2">
     <item>
      <widget class="QLabel" name="label">
       <property name="text">
        <string>Environment:</string>
       </property>
      </widget>
     </item>
     <item>
      <widget class="QLabel" name="environmentLabel">
       <property name="sizePolicy">
        <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
         <horstretch>0</horstretch>
         <verstretch>0</verstretch>
        </sizepolicy>
       </property>
       <property name="wordWrap">
        <bool>true</bool>
       </property>
      </widget>
     </item>
    </layout>
   </item>
   <item>
    <widget class="QGroupBox" name="groupBox">
     <property name="title">
      <string>Input</string>
     </property>
     <layout class="QHBoxLayout" name="horizontalLayout">
      <item>
       <widget class="QRadioButton" name="environmentButton">
        <property name="toolTip">
         <string>Select to build SBOM from environment</string>
        </property>
        <property name="text">
         <string>Environment</string>
        </property>
        <property name="checked">
         <bool>true</bool>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QRadioButton" name="pipenvButton">
        <property name="toolTip">
         <string>Select to build SBOM from 'Pipfile.lock' file</string>
        </property>
        <property name="text">
         <string>PipEnv</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QRadioButton" name="poetryButton">
        <property name="toolTip">
         <string>Select to build SBOM from 'poetry.lock' file</string>
        </property>
        <property name="text">
         <string>Poetry</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QRadioButton" name="requirementsButton">
        <property name="toolTip">
         <string>Select to build SBOM from 'requirements.txt' file</string>
        </property>
        <property name="text">
         <string>Requirements</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item>
    <widget class="QGroupBox" name="groupBox_2">
     <property name="title">
      <string>SBOM Output</string>
     </property>
     <layout class="QGridLayout" name="gridLayout">
      <item row="3" column="0">
       <widget class="QLabel" name="label_3">
        <property name="text">
         <string>Schema Version:</string>
        </property>
       </widget>
      </item>
      <item row="4" column="0">
       <widget class="QLabel" name="label_4">
        <property name="text">
         <string>File Name:</string>
        </property>
       </widget>
      </item>
      <item row="3" column="1">
       <widget class="QComboBox" name="schemaVersionComboBox">
        <property name="toolTip">
         <string>Select the SBOM schema version of the SBOM file</string>
        </property>
       </widget>
      </item>
      <item row="2" column="2">
       <spacer name="horizontalSpacer">
        <property name="orientation">
         <enum>Qt::Horizontal</enum>
        </property>
        <property name="sizeHint" stdset="0">
         <size>
          <width>413</width>
          <height>20</height>
         </size>
        </property>
       </spacer>
      </item>
      <item row="2" column="1">
       <widget class="QComboBox" name="fileFormatComboBox">
        <property name="toolTip">
         <string>Select the format of the SBOM file</string>
        </property>
        <item>
         <property name="text">
          <string>JSON</string>
         </property>
        </item>
        <item>
         <property name="text">
          <string>XML</string>
         </property>
        </item>
       </widget>
      </item>
      <item row="2" column="0">
       <widget class="QLabel" name="label_2">
        <property name="text">
         <string>File Format:</string>
        </property>
       </widget>
      </item>
      <item row="4" column="1" colspan="2">
       <widget class="EricPathPicker" name="filePicker" native="true">
        <property name="focusPolicy">
         <enum>Qt::StrongFocus</enum>
        </property>
        <property name="toolTip">
         <string>Enter the file path for the SBOM file (leave empty for default)</string>
        </property>
       </widget>
      </item>
      <item row="0" column="0" colspan="3">
       <widget class="QCheckBox" name="vulnerabilityCheckBox">
        <property name="toolTip">
         <string>Select to include vulnerability data in the generated SBOM (requires Schema 1.4 or newer)</string>
        </property>
        <property name="text">
         <string>Include Vulnerability Information</string>
        </property>
        <property name="checked">
         <bool>true</bool>
        </property>
       </widget>
      </item>
      <item row="1" column="0" colspan="3">
       <widget class="QCheckBox" name="dependenciesCheckBox">
        <property name="toolTip">
         <string>Select to include dependency information in the generated SBOM</string>
        </property>
        <property name="text">
         <string>Include Dependencies</string>
        </property>
        <property name="checked">
         <bool>true</bool>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item>
    <widget class="QDialogButtonBox" name="buttonBox">
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
     <property name="standardButtons">
      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
     </property>
    </widget>
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>EricPathPicker</class>
   <extends>QWidget</extends>
   <header>eric7/EricWidgets/EricPathPicker.h</header>
   <container>1</container>
  </customwidget>
 </customwidgets>
 <tabstops>
  <tabstop>environmentButton</tabstop>
  <tabstop>pipenvButton</tabstop>
  <tabstop>poetryButton</tabstop>
  <tabstop>requirementsButton</tabstop>
  <tabstop>vulnerabilityCheckBox</tabstop>
  <tabstop>dependenciesCheckBox</tabstop>
  <tabstop>fileFormatComboBox</tabstop>
  <tabstop>schemaVersionComboBox</tabstop>
  <tabstop>filePicker</tabstop>
 </tabstops>
 <resources/>
 <connections>
  <connection>
   <sender>buttonBox</sender>
   <signal>accepted()</signal>
   <receiver>CycloneDXConfigDialog</receiver>
   <slot>accept()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>248</x>
     <y>254</y>
    </hint>
    <hint type="destinationlabel">
     <x>157</x>
     <y>274</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>buttonBox</sender>
   <signal>rejected()</signal>
   <receiver>CycloneDXConfigDialog</receiver>
   <slot>reject()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>316</x>
     <y>260</y>
    </hint>
    <hint type="destinationlabel">
     <x>286</x>
     <y>274</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>

eric ide

mercurial