Skip to content

Commit

Permalink
Add link to documentation on the file naming page
Browse files Browse the repository at this point in the history
  • Loading branch information
alexBerman999 committed Dec 11, 2015
1 parent ddffeda commit d4d5b57
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
17 changes: 9 additions & 8 deletions picard/ui/ui_options_renaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,6 @@ def setupUi(self, RenamingOptionsPage):
self.file_naming_format.setTextInteractionFlags(QtCore.Qt.TextEditorInteraction)
self.file_naming_format.setObjectName(_fromUtf8("file_naming_format"))
self.verticalLayout_2.addWidget(self.file_naming_format)
self.file_naming_format_documentation = QtGui.QLabel(self.file_naming_format_group)
self.file_naming_format_documentation.setText(_fromUtf8(""))
self.file_naming_format_documentation.setOpenExternalLinks(True);
self.file_naming_format_documentation.setTextFormat(QtCore.Qt.RichText)
self.file_naming_format_documentation.setWordWrap(True)
self.file_naming_format_documentation.setObjectName(_fromUtf8("file_naming_format_documentation"))
self.verticalLayout_2.addWidget(self.file_naming_format_documentation)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setSpacing(2)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
Expand All @@ -132,6 +125,12 @@ def setupUi(self, RenamingOptionsPage):
self.horizontalLayout.addWidget(self.file_naming_format_default)
self.verticalLayout_2.addLayout(self.horizontalLayout)
self.verticalLayout_3.addWidget(self.file_naming_format_group)
self.ile_naming_format_documentation = QtGui.QLabel(self.rename_files)
self.ile_naming_format_documentation.setOpenExternalLinks(True)
self.ile_naming_format_documentation.setTextFormat(QtCore.Qt.RichText)
self.ile_naming_format_documentation.setWordWrap(True)
self.ile_naming_format_documentation.setObjectName(_fromUtf8("ile_naming_format_documentation"))
self.verticalLayout_3.addWidget(self.ile_naming_format_documentation)
self.verticalLayout_5.addWidget(self.rename_files)
self.groupBox = QtGui.QGroupBox(RenamingOptionsPage)
self.groupBox.setObjectName(_fromUtf8("groupBox"))
Expand Down Expand Up @@ -174,7 +173,9 @@ def retranslateUi(self, RenamingOptionsPage):
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Monospace\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;\"><br /></p></body></html>", None))
self.file_naming_format_documentation.setText(_('''<a href='https://picard.musicbrainz.org/docs/scripting'>View full documentaton online'''))
self.file_naming_format_default.setText(_("Default"))
self.ile_naming_format_documentation.setText(_translate("RenamingOptionsPage", "\n"
" <a href=\"https://picard.musicbrainz.org/docs/scripting\">View full documentation online</a>\n"
" ", None))
self.groupBox.setTitle(_("Examples"))

18 changes: 18 additions & 0 deletions ui/options_renaming.ui
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,24 @@ p, li { white-space: pre-wrap; }
</layout>
</widget>
</item>
<item>
<widget class="QLabel" name="ile_naming_format_documentation">
<property name="text">
<string><![CDATA[
<a href="https://picard.musicbrainz.org/docs/scripting">View full documentation online</a>
]]></string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
Expand Down

0 comments on commit d4d5b57

Please sign in to comment.