src/eric7/Plugins/AboutPlugin/AboutDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
30 """<p>Please send bug reports to <a href="mailto:{2}">{2}</a>.</p>""" 30 """<p>Please send bug reports to <a href="mailto:{2}">{2}</a>.</p>"""
31 """<p>To request a new feature please send an email to""" 31 """<p>To request a new feature please send an email to"""
32 """ <a href="mailto:{3}">{3}</a>.</p>""" 32 """ <a href="mailto:{3}">{3}</a>.</p>"""
33 """<p>{0} uses third party software which is copyrighted""" 33 """<p>{0} uses third party software which is copyrighted"""
34 """ by its respective copyright holder. For details see""" 34 """ by its respective copyright holder. For details see"""
35 """ the copyright notice of the individual package.</p>""" 35 """ the copyright notice of the individual package.</p>""",
36 ).format(UI.Info.Program, UI.Info.Homepage, UI.Info.BugAddress, 36 ).format(UI.Info.Program, UI.Info.Homepage, UI.Info.BugAddress, UI.Info.FeatureAddress)
37 UI.Info.FeatureAddress) 37
38 38 authorsText = """
39 authorsText = (
40 """
41 Detlev Offenbach 39 Detlev Offenbach
42 Project Manager, Maintainer and German translation 40 Project Manager, Maintainer and German translation
43 41
44 Andrew Bushnell 42 Andrew Bushnell
45 Multithreaded debugger 43 Multithreaded debugger
65 Chinese translations 63 Chinese translations
66 64
67 Gianluca 65 Gianluca
68 Italian translations 66 Italian translations
69 """ 67 """
70 ) 68
71 69 thanksText = """Phil Thompson for providing PyQt and QScintilla and pushing me into this
72 thanksText = (
73 """Phil Thompson for providing PyQt and QScintilla and pushing me into this
74 business. 70 business.
75 71
76 Andrew Bushnell of Fluent Inc. for contributing the multithreading debugger 72 Andrew Bushnell of Fluent Inc. for contributing the multithreading debugger
77 and a bunch of fixes to enhance the platform independence. 73 and a bunch of fixes to enhance the platform independence.
78 74
98 Martin v. Löwis 94 Martin v. Löwis
99 Thorsten Kohnhorst 95 Thorsten Kohnhorst
100 for providing patches to improve eric3, eric4, eric5 and eric6. 96 for providing patches to improve eric3, eric4, eric5 and eric6.
101 97
102 And all the people who reported bugs and made suggestions.""" 98 And all the people who reported bugs and made suggestions."""
103 )
104 99
105 licenseText = ( 100 licenseText = (
106 """Eric is {0} 101 """Eric is {0}
107 102
108 You may use, distribute and copy Eric under the terms of the GNU 103 You may use, distribute and copy Eric under the terms of the GNU
731 an absolute waiver of all civil liability in connection with the 726 an absolute waiver of all civil liability in connection with the
732 Program, unless a warranty or assumption of liability accompanies a 727 Program, unless a warranty or assumption of liability accompanies a
733 copy of the Program in return for a fee. 728 copy of the Program in return for a fee.
734 729
735 END OF TERMS AND CONDITIONS 730 END OF TERMS AND CONDITIONS
736 """).format(UI.Info.Copyright) 731 """
732 ).format(UI.Info.Copyright)
737 733
738 734
739 class AboutDialog(QDialog, Ui_AboutDialog): 735 class AboutDialog(QDialog, Ui_AboutDialog):
740 """ 736 """
741 Class implementing an 'About Eric' dialog. 737 Class implementing an 'About Eric' dialog.
742 """ 738 """
739
743 def __init__(self, parent=None): 740 def __init__(self, parent=None):
744 """ 741 """
745 Constructor 742 Constructor
746 743
747 @param parent reference to the parent widget (QWidget) 744 @param parent reference to the parent widget (QWidget)
748 """ 745 """
749 super().__init__(parent) 746 super().__init__(parent)
750 self.setupUi(self) 747 self.setupUi(self)
751 self.setWindowFlags(Qt.WindowType.Window) 748 self.setWindowFlags(Qt.WindowType.Window)
752 749
753 self.ericLabel.setText(titleText) 750 self.ericLabel.setText(titleText)
754 self.ericPixmap.setPixmap( 751 self.ericPixmap.setPixmap(UI.PixmapCache.getPixmap("eric").scaled(48, 48))
755 UI.PixmapCache.getPixmap("eric").scaled(48, 48)) 752
756
757 #################################################################### 753 ####################################################################
758 ## ABOUT 754 ## ABOUT
759 #################################################################### 755 ####################################################################
760 756
761 self.aboutEdit.setHtml(aboutText) 757 self.aboutEdit.setHtml(aboutText)
762 758
763 #################################################################### 759 ####################################################################
764 ## Copyright, Authors 760 ## Copyright, Authors
765 #################################################################### 761 ####################################################################
766 762
767 self.authorsEdit.setPlainText(authorsText) 763 self.authorsEdit.setPlainText(authorsText)
768 764
769 #################################################################### 765 ####################################################################
770 ## THANKS 766 ## THANKS
771 #################################################################### 767 ####################################################################
772 768
773 self.thanksEdit.setPlainText(thanksText) 769 self.thanksEdit.setPlainText(thanksText)
774 770
775 #################################################################### 771 ####################################################################
776 ## LICENSE 772 ## LICENSE
777 #################################################################### 773 ####################################################################
778 774
779 font = Preferences.getEditorOtherFonts("MonospacedFont") 775 font = Preferences.getEditorOtherFonts("MonospacedFont")
780 self.licenseEdit.setFontFamily(font.family()) 776 self.licenseEdit.setFontFamily(font.family())
781 self.licenseEdit.setFontPointSize(font.pointSize()) 777 self.licenseEdit.setFontPointSize(font.pointSize())
782 778
783 self.licenseEdit.setPlainText(licenseText) 779 self.licenseEdit.setPlainText(licenseText)
784 780
785 self.aboutTabWidget.setCurrentWidget(self.about) 781 self.aboutTabWidget.setCurrentWidget(self.about)

eric ide

mercurial