Gui: Add CERN OHL to default licenses list
This commit is contained in:
@@ -1594,6 +1594,18 @@ Document::Document(const char *name)
|
||||
license = "FreeArt";
|
||||
licenseUrl = "https://artlibre.org/licence/lal";
|
||||
break;
|
||||
case 9:
|
||||
license = "CERN Open Hardware Licence strongly-reciprocal";
|
||||
licenseUrl = "https://cern-ohl.web.cern.ch/";
|
||||
break;
|
||||
case 10:
|
||||
license = "CERN Open Hardware Licence weakly-reciprocal";
|
||||
licenseUrl = "https://cern-ohl.web.cern.ch/";
|
||||
break;
|
||||
case 11:
|
||||
license = "CERN Open Hardware Licence permissive";
|
||||
licenseUrl = "https://cern-ohl.web.cern.ch/";
|
||||
break;
|
||||
default:
|
||||
license = "Other";
|
||||
break;
|
||||
|
||||
@@ -69,6 +69,9 @@ DlgProjectInformationImp::DlgProjectInformationImp(App::Document* doc, QWidget*
|
||||
<< "Creative Commons Attribution-NonCommercial-NoDerivatives"
|
||||
<< "Public Domain"
|
||||
<< "FreeArt"
|
||||
<< "CERN Open Hardware Licence strongly-reciprocal"
|
||||
<< "CERN Open Hardware Licence weakly-reciprocal"
|
||||
<< "CERN Open Hardware Licence permissive"
|
||||
<< "Other";
|
||||
for (QList<QByteArray>::iterator it = rawLicenses.begin(); it != rawLicenses.end(); ++it) {
|
||||
QString text = QApplication::translate("Gui::Dialog::DlgSettingsDocument", it->constData());
|
||||
@@ -170,6 +173,9 @@ void DlgProjectInformationImp::onLicenseTypeChanged(int index)
|
||||
case 8:
|
||||
ui->lineEditLicenseURL->setText(QString::fromLatin1("http://artlibre.org/licence/lal"));
|
||||
break;
|
||||
case 9: case 10: case 11:
|
||||
ui->lineEditLicenseURL->setText(QString::fromLatin1("https://cern-ohl.web.cern.ch/"));
|
||||
break;
|
||||
default:
|
||||
ui->lineEditLicenseURL->setText(QString::fromUtf8(_doc->LicenseURL.getValue()));
|
||||
break;
|
||||
|
||||
@@ -725,6 +725,21 @@ You can also use the form: John Doe <john@doe.com></string>
|
||||
<string>FreeArt</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>CERN Open Hardware Licence strongly-reciprocal</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>CERN Open Hardware Licence weakly-reciprocal</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>CERN Open Hardware Licence permissive</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Other</string>
|
||||
|
||||
@@ -178,6 +178,9 @@ void DlgSettingsDocumentImp::onLicenseTypeChanged(int index)
|
||||
case 8:
|
||||
ui->prefLicenseUrl->setText(QString::fromLatin1("http://artlibre.org/licence/lal"));
|
||||
break;
|
||||
case 9: case 10: case 11:
|
||||
ui->prefLicenseUrl->setText(QString::fromLatin1("https://cern-ohl.web.cern.ch/"));
|
||||
break;
|
||||
default:
|
||||
ui->prefLicenseUrl->clear();
|
||||
ui->prefLicenseUrl->setReadOnly(false);
|
||||
|
||||
Reference in New Issue
Block a user