Merge pull request #2010 from rdswift/scripting_options_ui_clarification

PICARD-2379: Add clarification text to scripting options ui
This commit is contained in:
Philipp Wolfer
2022-01-14 07:52:30 +01:00
committed by GitHub
2 changed files with 30 additions and 4 deletions

View File

@@ -20,6 +20,14 @@ class Ui_ScriptingOptionsPage(object):
self.enable_tagger_scripts.setObjectName("enable_tagger_scripts")
self.verticalLayout = QtWidgets.QVBoxLayout(self.enable_tagger_scripts)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setContentsMargins(-1, -1, -1, 0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label = QtWidgets.QLabel(self.enable_tagger_scripts)
self.label.setWordWrap(True)
self.label.setObjectName("label")
self.horizontalLayout_2.addWidget(self.label)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.scripting_options_splitter = QtWidgets.QSplitter(self.enable_tagger_scripts)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
@@ -108,7 +116,8 @@ class Ui_ScriptingOptionsPage(object):
def retranslateUi(self, ScriptingOptionsPage):
_translate = QtCore.QCoreApplication.translate
self.enable_tagger_scripts.setTitle(_("Tagger Script(s)"))
self.enable_tagger_scripts.setTitle(_("Enable Tagger Script(s)"))
self.label.setText(_("Scripts that have been activated below will be executed automatically for each track of a release loaded from MusicBrainz."))
self.tagger_script.setPlaceholderText(_("Enter your tagger script here."))
self.move_up_button.setToolTip(_("Move script up"))
self.move_down_button.setToolTip(_("Move script down"))
@@ -118,6 +127,6 @@ class Ui_ScriptingOptionsPage(object):
self.remove_button.setText(_("Remove script"))
self.import_button.setText(_("Import"))
self.export_button.setText(_("Export"))
self.scripting_documentation_button.setText(_("Scripting Documentation"))
self.scripting_documentation_button.setText(_("Documentation"))
from picard.ui.widgets.scriptlistwidget import ScriptListWidget
from picard.ui.widgets.scripttextedit import ScriptTextEdit

View File

@@ -29,12 +29,29 @@
<item>
<widget class="QGroupBox" name="enable_tagger_scripts">
<property name="title">
<string>Tagger Script(s)</string>
<string>Enable Tagger Script(s)</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Scripts that have been activated below will be executed automatically for each track of a release loaded from MusicBrainz.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QSplitter" name="scripting_options_splitter">
<property name="sizePolicy">
@@ -197,7 +214,7 @@
</sizepolicy>
</property>
<property name="text">
<string>Scripting Documentation</string>
<string>Documentation</string>
</property>
</widget>
</item>