10 from PyQt6.QtCore import Qt, QCoreApplication |
10 from PyQt6.QtCore import Qt, QCoreApplication |
11 from PyQt6.QtWidgets import QDialog |
11 from PyQt6.QtWidgets import QDialog |
12 |
12 |
13 from .Ui_AboutDialog import Ui_AboutDialog |
13 from .Ui_AboutDialog import Ui_AboutDialog |
14 |
14 |
15 import Preferences |
15 from eric7 import Preferences |
16 |
16 |
17 import UI.PixmapCache |
17 from eric7.EricGui import EricPixmapCache |
18 import UI.Info |
18 from eric7.UI import Info |
19 |
19 |
20 |
20 |
21 titleText = "<b>{0} - {1}</b>".format(UI.Info.Program, UI.Info.Version) |
21 titleText = "<b>{0} - {1}</b>".format(Info.Program, Info.Version) |
22 |
22 |
23 aboutText = QCoreApplication.translate( |
23 aboutText = QCoreApplication.translate( |
24 "AboutDialog", |
24 "AboutDialog", |
25 """<p>{0} is an Integrated Development Environment for the Python""" |
25 """<p>{0} is an Integrated Development Environment for the Python""" |
26 """ programming language. It is written using the PyQt Python bindings""" |
26 """ programming language. It is written using the PyQt Python bindings""" |
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, UI.Info.FeatureAddress) |
36 ).format(Info.Program, Info.Homepage, Info.BugAddress, Info.FeatureAddress) |
37 |
37 |
38 authorsText = """ |
38 authorsText = """ |
39 Detlev Offenbach |
39 Detlev Offenbach |
40 Project Manager, Maintainer and German translation |
40 Project Manager, Maintainer and German translation |
41 |
41 |
727 Program, unless a warranty or assumption of liability accompanies a |
727 Program, unless a warranty or assumption of liability accompanies a |
728 copy of the Program in return for a fee. |
728 copy of the Program in return for a fee. |
729 |
729 |
730 END OF TERMS AND CONDITIONS |
730 END OF TERMS AND CONDITIONS |
731 """ |
731 """ |
732 ).format(UI.Info.Copyright) |
732 ).format(Info.Copyright) |
733 |
733 |
734 |
734 |
735 class AboutDialog(QDialog, Ui_AboutDialog): |
735 class AboutDialog(QDialog, Ui_AboutDialog): |
736 """ |
736 """ |
737 Class implementing an 'About Eric' dialog. |
737 Class implementing an 'About Eric' dialog. |
746 super().__init__(parent) |
746 super().__init__(parent) |
747 self.setupUi(self) |
747 self.setupUi(self) |
748 self.setWindowFlags(Qt.WindowType.Window) |
748 self.setWindowFlags(Qt.WindowType.Window) |
749 |
749 |
750 self.ericLabel.setText(titleText) |
750 self.ericLabel.setText(titleText) |
751 self.ericPixmap.setPixmap(UI.PixmapCache.getPixmap("eric").scaled(48, 48)) |
751 self.ericPixmap.setPixmap(EricPixmapCache.getPixmap("eric").scaled(48, 48)) |
752 |
752 |
753 #################################################################### |
753 #################################################################### |
754 ## ABOUT |
754 ## ABOUT |
755 #################################################################### |
755 #################################################################### |
756 |
756 |