Addon Manager: Sketch out basics of Developer Mode

This commit is contained in:
Chris Hennes
2022-08-30 21:18:11 -05:00
parent 5cafa954d4
commit 2524e8081a
10 changed files with 1831 additions and 16 deletions

View File

@@ -0,0 +1,362 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dialog</class>
<widget class="QDialog" name="Dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>641</width>
<height>388</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="checkBox">
<property name="toolTip">
<string>If this is the only thing in the Addon, all other metadata can be inherited from the top level, and does not need to be specified here.</string>
</property>
<property name="text">
<string>This workbench is the only item in the Addon</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Class name</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="lineEdit"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Path</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="lineEdit_3"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Icon</string>
</property>
</widget>
</item>
<item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>actualIcon</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_2"/>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Browse...</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>Dependencies...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_3">
<property name="text">
<string>FreeCAD Versions...</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Other Metadata</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="5" column="0">
<widget class="QLabel" name="labelLicensePath">
<property name="text">
<string>License file path</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLineEdit" name="descriptionLineEdit">
<property name="toolTip">
<string>Explanation of what this Addon provides. Displayed in the Addon Manager. It is not necessary for this to state that this is a FreeCAD Addon.</string>
</property>
</widget>
</item>
<item row="4" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QComboBox" name="licenseComboBox"/>
</item>
<item>
<widget class="QLineEdit" name="otherLicenseLineEdit"/>
</item>
</layout>
</item>
<item row="5" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QLineEdit" name="licenseFilePathLineEdit"/>
</item>
<item>
<widget class="QPushButton" name="licenseFilePathBrowse">
<property name="text">
<string>Browse...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="licenseCreateButton">
<property name="text">
<string>Create...</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="0" colspan="3">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="labelMaintainerName">
<property name="text">
<string>Primary maintainer name</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="maintainerNameLineEdit"/>
</item>
<item>
<widget class="QLabel" name="labelContactEmail">
<property name="text">
<string>Contact email</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="maintainerEmailLineEdit"/>
</item>
<item>
<widget class="QPushButton" name="addPeopleButton">
<property name="text">
<string>Add additional people</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0">
<widget class="QLabel" name="labelVersion">
<property name="text">
<string>Version</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLineEdit" name="displayNameLineEdit">
<property name="toolTip">
<string>Displayed in the Addon Manager's list of Addons. Should not include the word &quot;FreeCAD&quot;.</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="labelLicense">
<property name="text">
<string>License</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelDescription">
<property name="text">
<string>Description</string>
</property>
</widget>
</item>
<item row="2" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QComboBox" name="versionTypeComboBox">
<item>
<property name="text">
<string>Semantic (e.g. 1.2.3-beta)</string>
</property>
</item>
<item>
<property name="text">
<string>CalVer (e.g. 2021.12.08)</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QLabel" name="versionMajorLabel">
<property name="text">
<string>Y:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="versionMajorSpinBox"/>
</item>
<item>
<widget class="QLabel" name="versionMinorLabel">
<property name="text">
<string>M:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="versionMinorSpinBox"/>
</item>
<item>
<widget class="QLabel" name="versionPatchLabel">
<property name="text">
<string>D:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="versionPatchSpinBox"/>
</item>
<item>
<widget class="QLabel" name="versionSuffixDashLabel">
<property name="text">
<string>-</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="versionSuffixLineEdit">
<property name="placeholderText">
<string>(optional suffix)</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="versionToTodayButton">
<property name="text">
<string>Set to today</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="0">
<widget class="QLabel" name="labelDisplayName">
<property name="text">
<string>Display Name</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</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>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</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>Dialog</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>