eric6/UI/UserInterface.py

branch
maintenance
changeset 7560
343db73c4842
parent 7503
b17672e6812d
parent 7533
88261c96484b
child 7607
dd1054be15aa
equal deleted inserted replaced
7507:a4eb1787ea41 7560:343db73c4842
223 223
224 self.capProject = "" 224 self.capProject = ""
225 self.capEditor = "" 225 self.capEditor = ""
226 self.captionShowsFilename = Preferences.getUI("CaptionShowsFilename") 226 self.captionShowsFilename = Preferences.getUI("CaptionShowsFilename")
227 227
228 QApplication.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) 228 QApplication.setWindowIcon(UI.PixmapCache.getIcon("eric"))
229 self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) 229 self.setWindowIcon(UI.PixmapCache.getIcon("eric"))
230 self.__setWindowCaption() 230 self.__setWindowCaption()
231 231
232 # load the view profiles 232 # load the view profiles
233 self.profiles = Preferences.getUI("ViewProfiles2") 233 self.profiles = Preferences.getUI("ViewProfiles2")
234 234
831 # Create the project browser 831 # Create the project browser
832 logging.debug("Creating Project Browser...") 832 logging.debug("Creating Project Browser...")
833 from Project.ProjectBrowser import ProjectBrowser 833 from Project.ProjectBrowser import ProjectBrowser
834 self.projectBrowser = ProjectBrowser(self.project) 834 self.projectBrowser = ProjectBrowser(self.project)
835 self.lToolbox.addItem(self.projectBrowser, 835 self.lToolbox.addItem(self.projectBrowser,
836 UI.PixmapCache.getIcon("projectViewer.png"), 836 UI.PixmapCache.getIcon("projectViewer"),
837 self.tr("Project-Viewer")) 837 self.tr("Project-Viewer"))
838 838
839 # Create the multi project browser 839 # Create the multi project browser
840 logging.debug("Creating Multiproject Browser...") 840 logging.debug("Creating Multiproject Browser...")
841 from MultiProject.MultiProjectBrowser import MultiProjectBrowser 841 from MultiProject.MultiProjectBrowser import MultiProjectBrowser
842 self.multiProjectBrowser = MultiProjectBrowser(self.multiProject, 842 self.multiProjectBrowser = MultiProjectBrowser(self.multiProject,
843 self.project) 843 self.project)
844 self.lToolbox.addItem(self.multiProjectBrowser, 844 self.lToolbox.addItem(self.multiProjectBrowser,
845 UI.PixmapCache.getIcon("multiProjectViewer.png"), 845 UI.PixmapCache.getIcon("multiProjectViewer"),
846 self.tr("Multiproject-Viewer")) 846 self.tr("Multiproject-Viewer"))
847 847
848 if Preferences.getUI("ShowTemplateViewer"): 848 if Preferences.getUI("ShowTemplateViewer"):
849 # Create the template viewer part of the user interface 849 # Create the template viewer part of the user interface
850 logging.debug("Creating Template Viewer...") 850 logging.debug("Creating Template Viewer...")
851 from Templates.TemplateViewer import TemplateViewer 851 from Templates.TemplateViewer import TemplateViewer
852 self.templateViewer = TemplateViewer(None, 852 self.templateViewer = TemplateViewer(None,
853 self.viewmanager) 853 self.viewmanager)
854 self.lToolbox.addItem(self.templateViewer, 854 self.lToolbox.addItem(self.templateViewer,
855 UI.PixmapCache.getIcon("templateViewer.png"), 855 UI.PixmapCache.getIcon("templateViewer"),
856 self.tr("Template-Viewer")) 856 self.tr("Template-Viewer"))
857 857
858 #################################################### 858 ####################################################
859 ## Populate the right toolbox 859 ## Populate the right toolbox
860 #################################################### 860 ####################################################
863 # Create the code documentation viewer 863 # Create the code documentation viewer
864 logging.debug("Creating Code Documentation Viewer...") 864 logging.debug("Creating Code Documentation Viewer...")
865 from .CodeDocumentationViewer import CodeDocumentationViewer 865 from .CodeDocumentationViewer import CodeDocumentationViewer
866 self.codeDocumentationViewer = CodeDocumentationViewer(self) 866 self.codeDocumentationViewer = CodeDocumentationViewer(self)
867 self.rToolbox.addItem(self.codeDocumentationViewer, 867 self.rToolbox.addItem(self.codeDocumentationViewer,
868 UI.PixmapCache.getIcon("codeDocuViewer.png"), 868 UI.PixmapCache.getIcon("codeDocuViewer"),
869 self.tr("Code Documentation Viewer")) 869 self.tr("Code Documentation Viewer"))
870 870
871 # Create the debug viewer 871 # Create the debug viewer
872 logging.debug("Creating Debug Viewer...") 872 logging.debug("Creating Debug Viewer...")
873 from Debugger.DebugViewer import DebugViewer 873 from Debugger.DebugViewer import DebugViewer
874 self.debugViewer = DebugViewer(debugServer) 874 self.debugViewer = DebugViewer(debugServer)
875 self.rToolbox.addItem(self.debugViewer, 875 self.rToolbox.addItem(self.debugViewer,
876 UI.PixmapCache.getIcon("debugViewer.png"), 876 UI.PixmapCache.getIcon("debugViewer"),
877 self.tr("Debug-Viewer")) 877 self.tr("Debug-Viewer"))
878 878
879 if Preferences.getUI("ShowPyPIPackageManager"): 879 if Preferences.getUI("ShowPyPIPackageManager"):
880 # Create the PyPI package manager 880 # Create the PyPI package manager
881 logging.debug("Creating PyPI Package Manager...") 881 logging.debug("Creating PyPI Package Manager...")
889 # Create the conda package manager 889 # Create the conda package manager
890 logging.debug("Creating Conda Package Manager...") 890 logging.debug("Creating Conda Package Manager...")
891 from CondaInterface.CondaPackagesWidget import CondaPackagesWidget 891 from CondaInterface.CondaPackagesWidget import CondaPackagesWidget
892 self.condaWidget = CondaPackagesWidget(self.condaInterface) 892 self.condaWidget = CondaPackagesWidget(self.condaInterface)
893 self.rToolbox.addItem(self.condaWidget, 893 self.rToolbox.addItem(self.condaWidget,
894 UI.PixmapCache.getIcon("miniconda.png"), 894 UI.PixmapCache.getIcon("miniconda"),
895 self.tr("Conda")) 895 self.tr("Conda"))
896 896
897 if Preferences.getUI("ShowCooperation"): 897 if Preferences.getUI("ShowCooperation"):
898 # Create the chat part of the user interface 898 # Create the chat part of the user interface
899 logging.debug("Creating Chat Widget...") 899 logging.debug("Creating Chat Widget...")
900 from Cooperation.ChatWidget import ChatWidget 900 from Cooperation.ChatWidget import ChatWidget
901 self.cooperation = ChatWidget(self) 901 self.cooperation = ChatWidget(self)
902 self.rToolbox.addItem(self.cooperation, 902 self.rToolbox.addItem(self.cooperation,
903 UI.PixmapCache.getIcon("cooperation.png"), 903 UI.PixmapCache.getIcon("cooperation"),
904 self.tr("Cooperation")) 904 self.tr("Cooperation"))
905 905
906 if Preferences.getUI("ShowIrc"): 906 if Preferences.getUI("ShowIrc"):
907 # Create the IRC part of the user interface 907 # Create the IRC part of the user interface
908 logging.debug("Creating IRC Widget...") 908 logging.debug("Creating IRC Widget...")
909 from Network.IRC.IrcWidget import IrcWidget 909 from Network.IRC.IrcWidget import IrcWidget
910 self.irc = IrcWidget(self) 910 self.irc = IrcWidget(self)
911 self.rToolbox.addItem(self.irc, 911 self.rToolbox.addItem(self.irc,
912 UI.PixmapCache.getIcon("irc.png"), 912 UI.PixmapCache.getIcon("irc"),
913 self.tr("IRC")) 913 self.tr("IRC"))
914 914
915 if Preferences.getUI("ShowMicroPython"): 915 if Preferences.getUI("ShowMicroPython"):
916 # Create the MicroPython part of the user interface 916 # Create the MicroPython part of the user interface
917 logging.debug("Creating MicroPython Widget...") 917 logging.debug("Creating MicroPython Widget...")
928 # Create the task viewer part of the user interface 928 # Create the task viewer part of the user interface
929 logging.debug("Creating Task Viewer...") 929 logging.debug("Creating Task Viewer...")
930 from Tasks.TaskViewer import TaskViewer 930 from Tasks.TaskViewer import TaskViewer
931 self.taskViewer = TaskViewer(None, self.project) 931 self.taskViewer = TaskViewer(None, self.project)
932 self.hToolbox.addItem(self.taskViewer, 932 self.hToolbox.addItem(self.taskViewer,
933 UI.PixmapCache.getIcon("task.png"), 933 UI.PixmapCache.getIcon("task"),
934 self.tr("Task-Viewer")) 934 self.tr("Task-Viewer"))
935 935
936 # Create the log viewer part of the user interface 936 # Create the log viewer part of the user interface
937 logging.debug("Creating Log Viewer...") 937 logging.debug("Creating Log Viewer...")
938 from .LogView import LogViewer 938 from .LogView import LogViewer
939 self.logViewer = LogViewer(self) 939 self.logViewer = LogViewer(self)
940 self.hToolbox.addItem(self.logViewer, 940 self.hToolbox.addItem(self.logViewer,
941 UI.PixmapCache.getIcon("logViewer.png"), 941 UI.PixmapCache.getIcon("logViewer"),
942 self.tr("Log-Viewer")) 942 self.tr("Log-Viewer"))
943 943
944 if Preferences.getUI("ShowFileBrowser"): 944 if Preferences.getUI("ShowFileBrowser"):
945 # Create the file browser 945 # Create the file browser
946 logging.debug("Creating File Browser...") 946 logging.debug("Creating File Browser...")
947 from .Browser import Browser 947 from .Browser import Browser
948 self.browser = Browser() 948 self.browser = Browser()
949 self.lToolbox.addItem(self.browser, 949 self.lToolbox.addItem(self.browser,
950 UI.PixmapCache.getIcon("browser.png"), 950 UI.PixmapCache.getIcon("browser"),
951 self.tr("File-Browser")) 951 self.tr("File-Browser"))
952 952
953 if Preferences.getUI("ShowSymbolsViewer"): 953 if Preferences.getUI("ShowSymbolsViewer"):
954 # Create the symbols viewer 954 # Create the symbols viewer
955 logging.debug("Creating Symbols Viewer...") 955 logging.debug("Creating Symbols Viewer...")
956 from .SymbolsWidget import SymbolsWidget 956 from .SymbolsWidget import SymbolsWidget
957 self.symbolsViewer = SymbolsWidget() 957 self.symbolsViewer = SymbolsWidget()
958 self.lToolbox.addItem(self.symbolsViewer, 958 self.lToolbox.addItem(self.symbolsViewer,
959 UI.PixmapCache.getIcon("symbols.png"), 959 UI.PixmapCache.getIcon("symbols"),
960 self.tr("Symbols")) 960 self.tr("Symbols"))
961 961
962 if Preferences.getUI("ShowNumbersViewer"): 962 if Preferences.getUI("ShowNumbersViewer"):
963 # Create the numbers viewer 963 # Create the numbers viewer
964 logging.debug("Creating Numbers Viewer...") 964 logging.debug("Creating Numbers Viewer...")
965 from .NumbersWidget import NumbersWidget 965 from .NumbersWidget import NumbersWidget
966 self.numbersViewer = NumbersWidget() 966 self.numbersViewer = NumbersWidget()
967 self.hToolbox.addItem(self.numbersViewer, 967 self.hToolbox.addItem(self.numbersViewer,
968 UI.PixmapCache.getIcon("numbers.png"), 968 UI.PixmapCache.getIcon("numbers"),
969 self.tr("Numbers")) 969 self.tr("Numbers"))
970 970
971 #################################################### 971 ####################################################
972 ## Populate the configurable widgets 972 ## Populate the configurable widgets
973 #################################################### 973 ####################################################
984 from QScintilla.Shell import ShellAssembly 984 from QScintilla.Shell import ShellAssembly
985 self.shellAssembly = ShellAssembly( 985 self.shellAssembly = ShellAssembly(
986 debugServer, self.viewmanager, self.project, True) 986 debugServer, self.viewmanager, self.project, True)
987 self.shell = self.shellAssembly.shell() 987 self.shell = self.shellAssembly.shell()
988 self.__shellParent.widget().insertItem( 988 self.__shellParent.widget().insertItem(
989 0, self.shellAssembly, UI.PixmapCache.getIcon("shell.png"), 989 0, self.shellAssembly, UI.PixmapCache.getIcon("shell"),
990 self.tr("Shell")) 990 self.tr("Shell"))
991 991
992 #################################################### 992 ####################################################
993 ## Set the start index of each toolbox 993 ## Set the start index of each toolbox
994 #################################################### 994 ####################################################
1025 logging.debug("Creating Project Browser...") 1025 logging.debug("Creating Project Browser...")
1026 from Project.ProjectBrowser import ProjectBrowser 1026 from Project.ProjectBrowser import ProjectBrowser
1027 self.projectBrowser = ProjectBrowser(self.project) 1027 self.projectBrowser = ProjectBrowser(self.project)
1028 self.leftSidebar.addTab( 1028 self.leftSidebar.addTab(
1029 self.projectBrowser, 1029 self.projectBrowser,
1030 UI.PixmapCache.getIcon("projectViewer.png"), 1030 UI.PixmapCache.getIcon("projectViewer"),
1031 self.tr("Project-Viewer")) 1031 self.tr("Project-Viewer"))
1032 1032
1033 # Create the multi project browser 1033 # Create the multi project browser
1034 logging.debug("Creating Multiproject Browser...") 1034 logging.debug("Creating Multiproject Browser...")
1035 from MultiProject.MultiProjectBrowser import MultiProjectBrowser 1035 from MultiProject.MultiProjectBrowser import MultiProjectBrowser
1036 self.multiProjectBrowser = MultiProjectBrowser(self.multiProject, 1036 self.multiProjectBrowser = MultiProjectBrowser(self.multiProject,
1037 self.project) 1037 self.project)
1038 self.leftSidebar.addTab( 1038 self.leftSidebar.addTab(
1039 self.multiProjectBrowser, 1039 self.multiProjectBrowser,
1040 UI.PixmapCache.getIcon("multiProjectViewer.png"), 1040 UI.PixmapCache.getIcon("multiProjectViewer"),
1041 self.tr("Multiproject-Viewer")) 1041 self.tr("Multiproject-Viewer"))
1042 1042
1043 if Preferences.getUI("ShowTemplateViewer"): 1043 if Preferences.getUI("ShowTemplateViewer"):
1044 # Create the template viewer part of the user interface 1044 # Create the template viewer part of the user interface
1045 logging.debug("Creating Template Viewer...") 1045 logging.debug("Creating Template Viewer...")
1046 from Templates.TemplateViewer import TemplateViewer 1046 from Templates.TemplateViewer import TemplateViewer
1047 self.templateViewer = TemplateViewer(None, 1047 self.templateViewer = TemplateViewer(None,
1048 self.viewmanager) 1048 self.viewmanager)
1049 self.leftSidebar.addTab( 1049 self.leftSidebar.addTab(
1050 self.templateViewer, 1050 self.templateViewer,
1051 UI.PixmapCache.getIcon("templateViewer.png"), 1051 UI.PixmapCache.getIcon("templateViewer"),
1052 self.tr("Template-Viewer")) 1052 self.tr("Template-Viewer"))
1053 1053
1054 #################################################### 1054 ####################################################
1055 ## Populate the right side bar 1055 ## Populate the right side bar
1056 #################################################### 1056 ####################################################
1060 logging.debug("Creating Code Documentation Viewer...") 1060 logging.debug("Creating Code Documentation Viewer...")
1061 from .CodeDocumentationViewer import CodeDocumentationViewer 1061 from .CodeDocumentationViewer import CodeDocumentationViewer
1062 self.codeDocumentationViewer = CodeDocumentationViewer(self) 1062 self.codeDocumentationViewer = CodeDocumentationViewer(self)
1063 self.rightSidebar.addTab( 1063 self.rightSidebar.addTab(
1064 self.codeDocumentationViewer, 1064 self.codeDocumentationViewer,
1065 UI.PixmapCache.getIcon("codeDocuViewer.png"), 1065 UI.PixmapCache.getIcon("codeDocuViewer"),
1066 self.tr("Code Documentation Viewer")) 1066 self.tr("Code Documentation Viewer"))
1067 1067
1068 # Create the debug viewer 1068 # Create the debug viewer
1069 logging.debug("Creating Debug Viewer...") 1069 logging.debug("Creating Debug Viewer...")
1070 from Debugger.DebugViewer import DebugViewer 1070 from Debugger.DebugViewer import DebugViewer
1071 self.debugViewer = DebugViewer(debugServer) 1071 self.debugViewer = DebugViewer(debugServer)
1072 self.rightSidebar.addTab( 1072 self.rightSidebar.addTab(
1073 self.debugViewer, UI.PixmapCache.getIcon("debugViewer.png"), 1073 self.debugViewer, UI.PixmapCache.getIcon("debugViewer"),
1074 self.tr("Debug-Viewer")) 1074 self.tr("Debug-Viewer"))
1075 1075
1076 if Preferences.getUI("ShowPyPIPackageManager"): 1076 if Preferences.getUI("ShowPyPIPackageManager"):
1077 # Create the PyPI package manager 1077 # Create the PyPI package manager
1078 logging.debug("Creating PyPI Package Manager...") 1078 logging.debug("Creating PyPI Package Manager...")
1086 # Create the conda package manager 1086 # Create the conda package manager
1087 logging.debug("Creating Conda Package Manager...") 1087 logging.debug("Creating Conda Package Manager...")
1088 from CondaInterface.CondaPackagesWidget import CondaPackagesWidget 1088 from CondaInterface.CondaPackagesWidget import CondaPackagesWidget
1089 self.condaWidget = CondaPackagesWidget(self.condaInterface) 1089 self.condaWidget = CondaPackagesWidget(self.condaInterface)
1090 self.rightSidebar.addTab( 1090 self.rightSidebar.addTab(
1091 self.condaWidget, UI.PixmapCache.getIcon("miniconda.png"), 1091 self.condaWidget, UI.PixmapCache.getIcon("miniconda"),
1092 self.tr("Conda")) 1092 self.tr("Conda"))
1093 1093
1094 if Preferences.getUI("ShowCooperation"): 1094 if Preferences.getUI("ShowCooperation"):
1095 # Create the chat part of the user interface 1095 # Create the chat part of the user interface
1096 logging.debug("Creating Chat Widget...") 1096 logging.debug("Creating Chat Widget...")
1097 from Cooperation.ChatWidget import ChatWidget 1097 from Cooperation.ChatWidget import ChatWidget
1098 self.cooperation = ChatWidget(self) 1098 self.cooperation = ChatWidget(self)
1099 self.rightSidebar.addTab( 1099 self.rightSidebar.addTab(
1100 self.cooperation, UI.PixmapCache.getIcon("cooperation.png"), 1100 self.cooperation, UI.PixmapCache.getIcon("cooperation"),
1101 self.tr("Cooperation")) 1101 self.tr("Cooperation"))
1102 1102
1103 if Preferences.getUI("ShowIrc"): 1103 if Preferences.getUI("ShowIrc"):
1104 # Create the IRC part of the user interface 1104 # Create the IRC part of the user interface
1105 logging.debug("Creating IRC Widget...") 1105 logging.debug("Creating IRC Widget...")
1106 from Network.IRC.IrcWidget import IrcWidget 1106 from Network.IRC.IrcWidget import IrcWidget
1107 self.irc = IrcWidget(self) 1107 self.irc = IrcWidget(self)
1108 self.rightSidebar.addTab( 1108 self.rightSidebar.addTab(
1109 self.irc, UI.PixmapCache.getIcon("irc.png"), 1109 self.irc, UI.PixmapCache.getIcon("irc"),
1110 self.tr("IRC")) 1110 self.tr("IRC"))
1111 1111
1112 if Preferences.getUI("ShowMicroPython"): 1112 if Preferences.getUI("ShowMicroPython"):
1113 # Create the MicroPython part of the user interface 1113 # Create the MicroPython part of the user interface
1114 logging.debug("Creating MicroPython Widget...") 1114 logging.debug("Creating MicroPython Widget...")
1125 # Create the task viewer part of the user interface 1125 # Create the task viewer part of the user interface
1126 logging.debug("Creating Task Viewer...") 1126 logging.debug("Creating Task Viewer...")
1127 from Tasks.TaskViewer import TaskViewer 1127 from Tasks.TaskViewer import TaskViewer
1128 self.taskViewer = TaskViewer(None, self.project) 1128 self.taskViewer = TaskViewer(None, self.project)
1129 self.bottomSidebar.addTab(self.taskViewer, 1129 self.bottomSidebar.addTab(self.taskViewer,
1130 UI.PixmapCache.getIcon("task.png"), 1130 UI.PixmapCache.getIcon("task"),
1131 self.tr("Task-Viewer")) 1131 self.tr("Task-Viewer"))
1132 1132
1133 # Create the log viewer part of the user interface 1133 # Create the log viewer part of the user interface
1134 logging.debug("Creating Log Viewer...") 1134 logging.debug("Creating Log Viewer...")
1135 from .LogView import LogViewer 1135 from .LogView import LogViewer
1136 self.logViewer = LogViewer(self) 1136 self.logViewer = LogViewer(self)
1137 self.bottomSidebar.addTab(self.logViewer, 1137 self.bottomSidebar.addTab(self.logViewer,
1138 UI.PixmapCache.getIcon("logViewer.png"), 1138 UI.PixmapCache.getIcon("logViewer"),
1139 self.tr("Log-Viewer")) 1139 self.tr("Log-Viewer"))
1140 1140
1141 if Preferences.getUI("ShowFileBrowser"): 1141 if Preferences.getUI("ShowFileBrowser"):
1142 # Create the file browser 1142 # Create the file browser
1143 logging.debug("Creating File Browser...") 1143 logging.debug("Creating File Browser...")
1144 from .Browser import Browser 1144 from .Browser import Browser
1145 self.browser = Browser() 1145 self.browser = Browser()
1146 self.leftSidebar.addTab(self.browser, 1146 self.leftSidebar.addTab(self.browser,
1147 UI.PixmapCache.getIcon("browser.png"), 1147 UI.PixmapCache.getIcon("browser"),
1148 self.tr("File-Browser")) 1148 self.tr("File-Browser"))
1149 1149
1150 if Preferences.getUI("ShowSymbolsViewer"): 1150 if Preferences.getUI("ShowSymbolsViewer"):
1151 # Create the symbols viewer 1151 # Create the symbols viewer
1152 logging.debug("Creating Symbols Viewer...") 1152 logging.debug("Creating Symbols Viewer...")
1153 from .SymbolsWidget import SymbolsWidget 1153 from .SymbolsWidget import SymbolsWidget
1154 self.symbolsViewer = SymbolsWidget() 1154 self.symbolsViewer = SymbolsWidget()
1155 self.leftSidebar.addTab(self.symbolsViewer, 1155 self.leftSidebar.addTab(self.symbolsViewer,
1156 UI.PixmapCache.getIcon("symbols.png"), 1156 UI.PixmapCache.getIcon("symbols"),
1157 self.tr("Symbols")) 1157 self.tr("Symbols"))
1158 1158
1159 if Preferences.getUI("ShowNumbersViewer"): 1159 if Preferences.getUI("ShowNumbersViewer"):
1160 # Create the numbers viewer 1160 # Create the numbers viewer
1161 logging.debug("Creating Numbers Viewer...") 1161 logging.debug("Creating Numbers Viewer...")
1162 from .NumbersWidget import NumbersWidget 1162 from .NumbersWidget import NumbersWidget
1163 self.numbersViewer = NumbersWidget() 1163 self.numbersViewer = NumbersWidget()
1164 self.bottomSidebar.addTab(self.numbersViewer, 1164 self.bottomSidebar.addTab(self.numbersViewer,
1165 UI.PixmapCache.getIcon("numbers.png"), 1165 UI.PixmapCache.getIcon("numbers"),
1166 self.tr("Numbers")) 1166 self.tr("Numbers"))
1167 1167
1168 #################################################### 1168 ####################################################
1169 ## Populate the configurable widgets 1169 ## Populate the configurable widgets
1170 #################################################### 1170 ####################################################
1181 from QScintilla.Shell import ShellAssembly 1181 from QScintilla.Shell import ShellAssembly
1182 self.shellAssembly = ShellAssembly( 1182 self.shellAssembly = ShellAssembly(
1183 debugServer, self.viewmanager, self.project, True) 1183 debugServer, self.viewmanager, self.project, True)
1184 self.shell = self.shellAssembly.shell() 1184 self.shell = self.shellAssembly.shell()
1185 self.__shellParent.insertTab(0, self.shellAssembly, 1185 self.__shellParent.insertTab(0, self.shellAssembly,
1186 UI.PixmapCache.getIcon("shell.png"), 1186 UI.PixmapCache.getIcon("shell"),
1187 self.tr("Shell")) 1187 self.tr("Shell"))
1188 1188
1189 #################################################### 1189 ####################################################
1190 ## Set the start index of each side bar 1190 ## Set the start index of each side bar
1191 #################################################### 1191 ####################################################
1518 self.actions = [] 1518 self.actions = []
1519 self.wizardsActions = [] 1519 self.wizardsActions = []
1520 1520
1521 self.exitAct = E5Action( 1521 self.exitAct = E5Action(
1522 self.tr('Quit'), 1522 self.tr('Quit'),
1523 UI.PixmapCache.getIcon("exit.png"), 1523 UI.PixmapCache.getIcon("exit"),
1524 self.tr('&Quit'), 1524 self.tr('&Quit'),
1525 QKeySequence(self.tr("Ctrl+Q", "File|Quit")), 1525 QKeySequence(self.tr("Ctrl+Q", "File|Quit")),
1526 0, self, 'quit') 1526 0, self, 'quit')
1527 self.exitAct.setStatusTip(self.tr('Quit the IDE')) 1527 self.exitAct.setStatusTip(self.tr('Quit the IDE'))
1528 self.exitAct.setWhatsThis(self.tr( 1528 self.exitAct.setWhatsThis(self.tr(
1535 self.exitAct.setMenuRole(QAction.QuitRole) 1535 self.exitAct.setMenuRole(QAction.QuitRole)
1536 self.actions.append(self.exitAct) 1536 self.actions.append(self.exitAct)
1537 1537
1538 self.restartAct = E5Action( 1538 self.restartAct = E5Action(
1539 self.tr('Restart'), 1539 self.tr('Restart'),
1540 UI.PixmapCache.getIcon("restart.png"), 1540 UI.PixmapCache.getIcon("restart"),
1541 self.tr('Restart'), 1541 self.tr('Restart'),
1542 QKeySequence(self.tr("Ctrl+Shift+Q", "File|Quit")), 1542 QKeySequence(self.tr("Ctrl+Shift+Q", "File|Quit")),
1543 0, self, 'restart_eric') 1543 0, self, 'restart_eric')
1544 self.restartAct.setStatusTip(self.tr('Restart the IDE')) 1544 self.restartAct.setStatusTip(self.tr('Restart the IDE'))
1545 self.restartAct.setWhatsThis(self.tr( 1545 self.restartAct.setWhatsThis(self.tr(
1577 self.loadSessionAct.triggered.connect(self.__loadSessionFromFile) 1577 self.loadSessionAct.triggered.connect(self.__loadSessionFromFile)
1578 self.actions.append(self.loadSessionAct) 1578 self.actions.append(self.loadSessionAct)
1579 1579
1580 self.newWindowAct = E5Action( 1580 self.newWindowAct = E5Action(
1581 self.tr('New Window'), 1581 self.tr('New Window'),
1582 UI.PixmapCache.getIcon("newWindow.png"), 1582 UI.PixmapCache.getIcon("newWindow"),
1583 self.tr('New &Window'), 1583 self.tr('New &Window'),
1584 QKeySequence(self.tr("Ctrl+Shift+N", "File|New Window")), 1584 QKeySequence(self.tr("Ctrl+Shift+N", "File|New Window")),
1585 0, self, 'new_window') 1585 0, self, 'new_window')
1586 self.newWindowAct.setStatusTip(self.tr( 1586 self.newWindowAct.setStatusTip(self.tr(
1587 'Open a new eric6 instance')) 1587 'Open a new eric6 instance'))
1596 1596
1597 self.viewProfileActGrp = createActionGroup(self, "viewprofiles", True) 1597 self.viewProfileActGrp = createActionGroup(self, "viewprofiles", True)
1598 1598
1599 self.setEditProfileAct = E5Action( 1599 self.setEditProfileAct = E5Action(
1600 self.tr('Edit Profile'), 1600 self.tr('Edit Profile'),
1601 UI.PixmapCache.getIcon("viewProfileEdit.png"), 1601 UI.PixmapCache.getIcon("viewProfileEdit"),
1602 self.tr('Edit Profile'), 1602 self.tr('Edit Profile'),
1603 0, 0, 1603 0, 0,
1604 self.viewProfileActGrp, 'edit_profile', True) 1604 self.viewProfileActGrp, 'edit_profile', True)
1605 self.setEditProfileAct.setStatusTip(self.tr( 1605 self.setEditProfileAct.setStatusTip(self.tr(
1606 'Activate the edit view profile')) 1606 'Activate the edit view profile'))
1613 self.setEditProfileAct.triggered.connect(self.__setEditProfile) 1613 self.setEditProfileAct.triggered.connect(self.__setEditProfile)
1614 self.actions.append(self.setEditProfileAct) 1614 self.actions.append(self.setEditProfileAct)
1615 1615
1616 self.setDebugProfileAct = E5Action( 1616 self.setDebugProfileAct = E5Action(
1617 self.tr('Debug Profile'), 1617 self.tr('Debug Profile'),
1618 UI.PixmapCache.getIcon("viewProfileDebug.png"), 1618 UI.PixmapCache.getIcon("viewProfileDebug"),
1619 self.tr('Debug Profile'), 1619 self.tr('Debug Profile'),
1620 0, 0, 1620 0, 0,
1621 self.viewProfileActGrp, 'debug_profile', True) 1621 self.viewProfileActGrp, 'debug_profile', True)
1622 self.setDebugProfileAct.setStatusTip( 1622 self.setDebugProfileAct.setStatusTip(
1623 self.tr('Activate the debug view profile')) 1623 self.tr('Activate the debug view profile'))
2002 self.actions.append(self.microPythonWidgetActivateAct) 2002 self.actions.append(self.microPythonWidgetActivateAct)
2003 self.addAction(self.microPythonWidgetActivateAct) 2003 self.addAction(self.microPythonWidgetActivateAct)
2004 2004
2005 self.whatsThisAct = E5Action( 2005 self.whatsThisAct = E5Action(
2006 self.tr('What\'s This?'), 2006 self.tr('What\'s This?'),
2007 UI.PixmapCache.getIcon("whatsThis.png"), 2007 UI.PixmapCache.getIcon("whatsThis"),
2008 self.tr('&What\'s This?'), 2008 self.tr('&What\'s This?'),
2009 QKeySequence(self.tr("Shift+F1")), 2009 QKeySequence(self.tr("Shift+F1")),
2010 0, self, 'whatsThis') 2010 0, self, 'whatsThis')
2011 self.whatsThisAct.setStatusTip(self.tr('Context sensitive help')) 2011 self.whatsThisAct.setStatusTip(self.tr('Context sensitive help'))
2012 self.whatsThisAct.setWhatsThis(self.tr( 2012 self.whatsThisAct.setWhatsThis(self.tr(
2020 self.whatsThisAct.triggered.connect(self.__whatsThis) 2020 self.whatsThisAct.triggered.connect(self.__whatsThis)
2021 self.actions.append(self.whatsThisAct) 2021 self.actions.append(self.whatsThisAct)
2022 2022
2023 self.helpviewerAct = E5Action( 2023 self.helpviewerAct = E5Action(
2024 self.tr('Helpviewer'), 2024 self.tr('Helpviewer'),
2025 UI.PixmapCache.getIcon("help.png"), 2025 UI.PixmapCache.getIcon("help"),
2026 self.tr('&Helpviewer...'), 2026 self.tr('&Helpviewer...'),
2027 QKeySequence(self.tr("F1")), 2027 QKeySequence(self.tr("F1")),
2028 0, self, 'helpviewer') 2028 0, self, 'helpviewer')
2029 self.helpviewerAct.setStatusTip(self.tr( 2029 self.helpviewerAct.setStatusTip(self.tr(
2030 'Open the helpviewer window')) 2030 'Open the helpviewer window'))
2124 2124
2125 self.utActGrp = createActionGroup(self) 2125 self.utActGrp = createActionGroup(self)
2126 2126
2127 self.utDialogAct = E5Action( 2127 self.utDialogAct = E5Action(
2128 self.tr('Unittest'), 2128 self.tr('Unittest'),
2129 UI.PixmapCache.getIcon("unittest.png"), 2129 UI.PixmapCache.getIcon("unittest"),
2130 self.tr('&Unittest...'), 2130 self.tr('&Unittest...'),
2131 0, 0, self.utActGrp, 'unittest') 2131 0, 0, self.utActGrp, 'unittest')
2132 self.utDialogAct.setStatusTip(self.tr('Start unittest dialog')) 2132 self.utDialogAct.setStatusTip(self.tr('Start unittest dialog'))
2133 self.utDialogAct.setWhatsThis(self.tr( 2133 self.utDialogAct.setWhatsThis(self.tr(
2134 """<b>Unittest</b>""" 2134 """<b>Unittest</b>"""
2138 self.utDialogAct.triggered.connect(self.__unittest) 2138 self.utDialogAct.triggered.connect(self.__unittest)
2139 self.actions.append(self.utDialogAct) 2139 self.actions.append(self.utDialogAct)
2140 2140
2141 self.utRestartAct = E5Action( 2141 self.utRestartAct = E5Action(
2142 self.tr('Unittest Restart'), 2142 self.tr('Unittest Restart'),
2143 UI.PixmapCache.getIcon("unittestRestart.png"), 2143 UI.PixmapCache.getIcon("unittestRestart"),
2144 self.tr('&Restart Unittest...'), 2144 self.tr('&Restart Unittest...'),
2145 0, 0, self.utActGrp, 'unittest_restart') 2145 0, 0, self.utActGrp, 'unittest_restart')
2146 self.utRestartAct.setStatusTip(self.tr('Restart last unittest')) 2146 self.utRestartAct.setStatusTip(self.tr('Restart last unittest'))
2147 self.utRestartAct.setWhatsThis(self.tr( 2147 self.utRestartAct.setWhatsThis(self.tr(
2148 """<b>Restart Unittest</b>""" 2148 """<b>Restart Unittest</b>"""
2152 self.utRestartAct.setEnabled(False) 2152 self.utRestartAct.setEnabled(False)
2153 self.actions.append(self.utRestartAct) 2153 self.actions.append(self.utRestartAct)
2154 2154
2155 self.utRerunFailedAct = E5Action( 2155 self.utRerunFailedAct = E5Action(
2156 self.tr('Unittest Rerun Failed'), 2156 self.tr('Unittest Rerun Failed'),
2157 UI.PixmapCache.getIcon("unittestRerunFailed.png"), 2157 UI.PixmapCache.getIcon("unittestRerunFailed"),
2158 self.tr('Rerun Failed Tests...'), 2158 self.tr('Rerun Failed Tests...'),
2159 0, 0, self.utActGrp, 'unittest_rerun_failed') 2159 0, 0, self.utActGrp, 'unittest_rerun_failed')
2160 self.utRerunFailedAct.setStatusTip(self.tr( 2160 self.utRerunFailedAct.setStatusTip(self.tr(
2161 'Rerun failed tests of the last run')) 2161 'Rerun failed tests of the last run'))
2162 self.utRerunFailedAct.setWhatsThis(self.tr( 2162 self.utRerunFailedAct.setWhatsThis(self.tr(
2168 self.utRerunFailedAct.setEnabled(False) 2168 self.utRerunFailedAct.setEnabled(False)
2169 self.actions.append(self.utRerunFailedAct) 2169 self.actions.append(self.utRerunFailedAct)
2170 2170
2171 self.utScriptAct = E5Action( 2171 self.utScriptAct = E5Action(
2172 self.tr('Unittest Script'), 2172 self.tr('Unittest Script'),
2173 UI.PixmapCache.getIcon("unittestScript.png"), 2173 UI.PixmapCache.getIcon("unittestScript"),
2174 self.tr('Unittest &Script...'), 2174 self.tr('Unittest &Script...'),
2175 0, 0, self.utActGrp, 'unittest_script') 2175 0, 0, self.utActGrp, 'unittest_script')
2176 self.utScriptAct.setStatusTip(self.tr( 2176 self.utScriptAct.setStatusTip(self.tr(
2177 'Run unittest with current script')) 2177 'Run unittest with current script'))
2178 self.utScriptAct.setWhatsThis(self.tr( 2178 self.utScriptAct.setWhatsThis(self.tr(
2183 self.utScriptAct.setEnabled(False) 2183 self.utScriptAct.setEnabled(False)
2184 self.actions.append(self.utScriptAct) 2184 self.actions.append(self.utScriptAct)
2185 2185
2186 self.utProjectAct = E5Action( 2186 self.utProjectAct = E5Action(
2187 self.tr('Unittest Project'), 2187 self.tr('Unittest Project'),
2188 UI.PixmapCache.getIcon("unittestProject.png"), 2188 UI.PixmapCache.getIcon("unittestProject"),
2189 self.tr('Unittest &Project...'), 2189 self.tr('Unittest &Project...'),
2190 0, 0, self.utActGrp, 'unittest_project') 2190 0, 0, self.utActGrp, 'unittest_project')
2191 self.utProjectAct.setStatusTip(self.tr( 2191 self.utProjectAct.setStatusTip(self.tr(
2192 'Run unittest with current project')) 2192 'Run unittest with current project'))
2193 self.utProjectAct.setWhatsThis(self.tr( 2193 self.utProjectAct.setWhatsThis(self.tr(
2210 Utilities.getQtBinariesPath(), 2210 Utilities.getQtBinariesPath(),
2211 Utilities.generateQtToolName("designer")) 2211 Utilities.generateQtToolName("designer"))
2212 if os.path.exists(designerExe): 2212 if os.path.exists(designerExe):
2213 self.designer4Act = E5Action( 2213 self.designer4Act = E5Action(
2214 self.tr('Qt-Designer'), 2214 self.tr('Qt-Designer'),
2215 UI.PixmapCache.getIcon("designer4.png"), 2215 UI.PixmapCache.getIcon("designer4"),
2216 self.tr('Qt-&Designer...'), 2216 self.tr('Qt-&Designer...'),
2217 0, 0, self, 'qt_designer4') 2217 0, 0, self, 'qt_designer4')
2218 self.designer4Act.setStatusTip(self.tr('Start Qt-Designer')) 2218 self.designer4Act.setStatusTip(self.tr('Start Qt-Designer'))
2219 self.designer4Act.setWhatsThis(self.tr( 2219 self.designer4Act.setWhatsThis(self.tr(
2220 """<b>Qt-Designer</b>""" 2220 """<b>Qt-Designer</b>"""
2236 Utilities.getQtBinariesPath(), 2236 Utilities.getQtBinariesPath(),
2237 Utilities.generateQtToolName("linguist")) 2237 Utilities.generateQtToolName("linguist"))
2238 if os.path.exists(linguistExe): 2238 if os.path.exists(linguistExe):
2239 self.linguist4Act = E5Action( 2239 self.linguist4Act = E5Action(
2240 self.tr('Qt-Linguist'), 2240 self.tr('Qt-Linguist'),
2241 UI.PixmapCache.getIcon("linguist4.png"), 2241 UI.PixmapCache.getIcon("linguist4"),
2242 self.tr('Qt-&Linguist...'), 2242 self.tr('Qt-&Linguist...'),
2243 0, 0, self, 'qt_linguist4') 2243 0, 0, self, 'qt_linguist4')
2244 self.linguist4Act.setStatusTip(self.tr('Start Qt-Linguist')) 2244 self.linguist4Act.setStatusTip(self.tr('Start Qt-Linguist'))
2245 self.linguist4Act.setWhatsThis(self.tr( 2245 self.linguist4Act.setWhatsThis(self.tr(
2246 """<b>Qt-Linguist</b>""" 2246 """<b>Qt-Linguist</b>"""
2251 else: 2251 else:
2252 self.linguist4Act = None 2252 self.linguist4Act = None
2253 2253
2254 self.uipreviewerAct = E5Action( 2254 self.uipreviewerAct = E5Action(
2255 self.tr('UI Previewer'), 2255 self.tr('UI Previewer'),
2256 UI.PixmapCache.getIcon("uiPreviewer.png"), 2256 UI.PixmapCache.getIcon("uiPreviewer"),
2257 self.tr('&UI Previewer...'), 2257 self.tr('&UI Previewer...'),
2258 0, 0, self, 'ui_previewer') 2258 0, 0, self, 'ui_previewer')
2259 self.uipreviewerAct.setStatusTip(self.tr('Start the UI Previewer')) 2259 self.uipreviewerAct.setStatusTip(self.tr('Start the UI Previewer'))
2260 self.uipreviewerAct.setWhatsThis(self.tr( 2260 self.uipreviewerAct.setWhatsThis(self.tr(
2261 """<b>UI Previewer</b>""" 2261 """<b>UI Previewer</b>"""
2264 self.uipreviewerAct.triggered.connect(self.__UIPreviewer) 2264 self.uipreviewerAct.triggered.connect(self.__UIPreviewer)
2265 self.actions.append(self.uipreviewerAct) 2265 self.actions.append(self.uipreviewerAct)
2266 2266
2267 self.trpreviewerAct = E5Action( 2267 self.trpreviewerAct = E5Action(
2268 self.tr('Translations Previewer'), 2268 self.tr('Translations Previewer'),
2269 UI.PixmapCache.getIcon("trPreviewer.png"), 2269 UI.PixmapCache.getIcon("trPreviewer"),
2270 self.tr('&Translations Previewer...'), 2270 self.tr('&Translations Previewer...'),
2271 0, 0, self, 'tr_previewer') 2271 0, 0, self, 'tr_previewer')
2272 self.trpreviewerAct.setStatusTip(self.tr( 2272 self.trpreviewerAct.setStatusTip(self.tr(
2273 'Start the Translations Previewer')) 2273 'Start the Translations Previewer'))
2274 self.trpreviewerAct.setWhatsThis(self.tr( 2274 self.trpreviewerAct.setWhatsThis(self.tr(
2278 self.trpreviewerAct.triggered.connect(self.__TRPreviewer) 2278 self.trpreviewerAct.triggered.connect(self.__TRPreviewer)
2279 self.actions.append(self.trpreviewerAct) 2279 self.actions.append(self.trpreviewerAct)
2280 2280
2281 self.diffAct = E5Action( 2281 self.diffAct = E5Action(
2282 self.tr('Compare Files'), 2282 self.tr('Compare Files'),
2283 UI.PixmapCache.getIcon("diffFiles.png"), 2283 UI.PixmapCache.getIcon("diffFiles"),
2284 self.tr('&Compare Files...'), 2284 self.tr('&Compare Files...'),
2285 0, 0, self, 'diff_files') 2285 0, 0, self, 'diff_files')
2286 self.diffAct.setStatusTip(self.tr('Compare two files')) 2286 self.diffAct.setStatusTip(self.tr('Compare two files'))
2287 self.diffAct.setWhatsThis(self.tr( 2287 self.diffAct.setWhatsThis(self.tr(
2288 """<b>Compare Files</b>""" 2288 """<b>Compare Files</b>"""
2291 self.diffAct.triggered.connect(self.__compareFiles) 2291 self.diffAct.triggered.connect(self.__compareFiles)
2292 self.actions.append(self.diffAct) 2292 self.actions.append(self.diffAct)
2293 2293
2294 self.compareAct = E5Action( 2294 self.compareAct = E5Action(
2295 self.tr('Compare Files side by side'), 2295 self.tr('Compare Files side by side'),
2296 UI.PixmapCache.getIcon("compareFiles.png"), 2296 UI.PixmapCache.getIcon("compareFiles"),
2297 self.tr('Compare &Files side by side...'), 2297 self.tr('Compare &Files side by side...'),
2298 0, 0, self, 'compare_files') 2298 0, 0, self, 'compare_files')
2299 self.compareAct.setStatusTip(self.tr('Compare two files')) 2299 self.compareAct.setStatusTip(self.tr('Compare two files'))
2300 self.compareAct.setWhatsThis(self.tr( 2300 self.compareAct.setWhatsThis(self.tr(
2301 """<b>Compare Files side by side</b>""" 2301 """<b>Compare Files side by side</b>"""
2305 self.compareAct.triggered.connect(self.__compareFilesSbs) 2305 self.compareAct.triggered.connect(self.__compareFilesSbs)
2306 self.actions.append(self.compareAct) 2306 self.actions.append(self.compareAct)
2307 2307
2308 self.sqlBrowserAct = E5Action( 2308 self.sqlBrowserAct = E5Action(
2309 self.tr('SQL Browser'), 2309 self.tr('SQL Browser'),
2310 UI.PixmapCache.getIcon("sqlBrowser.png"), 2310 UI.PixmapCache.getIcon("sqlBrowser"),
2311 self.tr('SQL &Browser...'), 2311 self.tr('SQL &Browser...'),
2312 0, 0, self, 'sql_browser') 2312 0, 0, self, 'sql_browser')
2313 self.sqlBrowserAct.setStatusTip(self.tr('Browse a SQL database')) 2313 self.sqlBrowserAct.setStatusTip(self.tr('Browse a SQL database'))
2314 self.sqlBrowserAct.setWhatsThis(self.tr( 2314 self.sqlBrowserAct.setWhatsThis(self.tr(
2315 """<b>SQL Browser</b>""" 2315 """<b>SQL Browser</b>"""
2318 self.sqlBrowserAct.triggered.connect(self.__sqlBrowser) 2318 self.sqlBrowserAct.triggered.connect(self.__sqlBrowser)
2319 self.actions.append(self.sqlBrowserAct) 2319 self.actions.append(self.sqlBrowserAct)
2320 2320
2321 self.miniEditorAct = E5Action( 2321 self.miniEditorAct = E5Action(
2322 self.tr('Mini Editor'), 2322 self.tr('Mini Editor'),
2323 UI.PixmapCache.getIcon("editor.png"), 2323 UI.PixmapCache.getIcon("editor"),
2324 self.tr('Mini &Editor...'), 2324 self.tr('Mini &Editor...'),
2325 0, 0, self, 'mini_editor') 2325 0, 0, self, 'mini_editor')
2326 self.miniEditorAct.setStatusTip(self.tr('Mini Editor')) 2326 self.miniEditorAct.setStatusTip(self.tr('Mini Editor'))
2327 self.miniEditorAct.setWhatsThis(self.tr( 2327 self.miniEditorAct.setWhatsThis(self.tr(
2328 """<b>Mini Editor</b>""" 2328 """<b>Mini Editor</b>"""
2331 self.miniEditorAct.triggered.connect(self.__openMiniEditor) 2331 self.miniEditorAct.triggered.connect(self.__openMiniEditor)
2332 self.actions.append(self.miniEditorAct) 2332 self.actions.append(self.miniEditorAct)
2333 2333
2334 self.hexEditorAct = E5Action( 2334 self.hexEditorAct = E5Action(
2335 self.tr('Hex Editor'), 2335 self.tr('Hex Editor'),
2336 UI.PixmapCache.getIcon("hexEditor.png"), 2336 UI.PixmapCache.getIcon("hexEditor"),
2337 self.tr('&Hex Editor...'), 2337 self.tr('&Hex Editor...'),
2338 0, 0, self, 'hex_editor') 2338 0, 0, self, 'hex_editor')
2339 self.hexEditorAct.setStatusTip(self.tr( 2339 self.hexEditorAct.setStatusTip(self.tr(
2340 'Start the eric6 Hex Editor')) 2340 'Start the eric6 Hex Editor'))
2341 self.hexEditorAct.setWhatsThis(self.tr( 2341 self.hexEditorAct.setWhatsThis(self.tr(
2346 self.hexEditorAct.triggered.connect(self.__openHexEditor) 2346 self.hexEditorAct.triggered.connect(self.__openHexEditor)
2347 self.actions.append(self.hexEditorAct) 2347 self.actions.append(self.hexEditorAct)
2348 2348
2349 self.webBrowserAct = E5Action( 2349 self.webBrowserAct = E5Action(
2350 self.tr('eric6 Web Browser'), 2350 self.tr('eric6 Web Browser'),
2351 UI.PixmapCache.getIcon("ericWeb.png"), 2351 UI.PixmapCache.getIcon("ericWeb"),
2352 self.tr('eric6 &Web Browser...'), 2352 self.tr('eric6 &Web Browser...'),
2353 0, 0, self, 'web_browser') 2353 0, 0, self, 'web_browser')
2354 self.webBrowserAct.setStatusTip(self.tr( 2354 self.webBrowserAct.setStatusTip(self.tr(
2355 'Start the eric6 Web Browser')) 2355 'Start the eric6 Web Browser'))
2356 self.webBrowserAct.setWhatsThis(self.tr( 2356 self.webBrowserAct.setWhatsThis(self.tr(
2362 ## else: 2362 ## else:
2363 ## self.webBrowserAct = None 2363 ## self.webBrowserAct = None
2364 2364
2365 self.iconEditorAct = E5Action( 2365 self.iconEditorAct = E5Action(
2366 self.tr('Icon Editor'), 2366 self.tr('Icon Editor'),
2367 UI.PixmapCache.getIcon("iconEditor.png"), 2367 UI.PixmapCache.getIcon("iconEditor"),
2368 self.tr('&Icon Editor...'), 2368 self.tr('&Icon Editor...'),
2369 0, 0, self, 'icon_editor') 2369 0, 0, self, 'icon_editor')
2370 self.iconEditorAct.setStatusTip(self.tr( 2370 self.iconEditorAct.setStatusTip(self.tr(
2371 'Start the eric6 Icon Editor')) 2371 'Start the eric6 Icon Editor'))
2372 self.iconEditorAct.setWhatsThis(self.tr( 2372 self.iconEditorAct.setWhatsThis(self.tr(
2376 self.iconEditorAct.triggered.connect(self.__editPixmap) 2376 self.iconEditorAct.triggered.connect(self.__editPixmap)
2377 self.actions.append(self.iconEditorAct) 2377 self.actions.append(self.iconEditorAct)
2378 2378
2379 self.snapshotAct = E5Action( 2379 self.snapshotAct = E5Action(
2380 self.tr('Snapshot'), 2380 self.tr('Snapshot'),
2381 UI.PixmapCache.getIcon("ericSnap.png"), 2381 UI.PixmapCache.getIcon("ericSnap"),
2382 self.tr('&Snapshot...'), 2382 self.tr('&Snapshot...'),
2383 0, 0, self, 'snapshot') 2383 0, 0, self, 'snapshot')
2384 self.snapshotAct.setStatusTip(self.tr( 2384 self.snapshotAct.setStatusTip(self.tr(
2385 'Take snapshots of a screen region')) 2385 'Take snapshots of a screen region'))
2386 self.snapshotAct.setWhatsThis(self.tr( 2386 self.snapshotAct.setWhatsThis(self.tr(
2391 self.snapshotAct.triggered.connect(self.__snapshot) 2391 self.snapshotAct.triggered.connect(self.__snapshot)
2392 self.actions.append(self.snapshotAct) 2392 self.actions.append(self.snapshotAct)
2393 2393
2394 self.prefAct = E5Action( 2394 self.prefAct = E5Action(
2395 self.tr('Preferences'), 2395 self.tr('Preferences'),
2396 UI.PixmapCache.getIcon("configure.png"), 2396 UI.PixmapCache.getIcon("configure"),
2397 self.tr('&Preferences...'), 2397 self.tr('&Preferences...'),
2398 0, 0, self, 'preferences') 2398 0, 0, self, 'preferences')
2399 self.prefAct.setStatusTip(self.tr( 2399 self.prefAct.setStatusTip(self.tr(
2400 'Set the prefered configuration')) 2400 'Set the prefered configuration'))
2401 self.prefAct.setWhatsThis(self.tr( 2401 self.prefAct.setWhatsThis(self.tr(
2407 self.prefAct.setMenuRole(QAction.PreferencesRole) 2407 self.prefAct.setMenuRole(QAction.PreferencesRole)
2408 self.actions.append(self.prefAct) 2408 self.actions.append(self.prefAct)
2409 2409
2410 self.prefExportAct = E5Action( 2410 self.prefExportAct = E5Action(
2411 self.tr('Export Preferences'), 2411 self.tr('Export Preferences'),
2412 UI.PixmapCache.getIcon("configureExport.png"), 2412 UI.PixmapCache.getIcon("configureExport"),
2413 self.tr('E&xport Preferences...'), 2413 self.tr('E&xport Preferences...'),
2414 0, 0, self, 'export_preferences') 2414 0, 0, self, 'export_preferences')
2415 self.prefExportAct.setStatusTip(self.tr( 2415 self.prefExportAct.setStatusTip(self.tr(
2416 'Export the current configuration')) 2416 'Export the current configuration'))
2417 self.prefExportAct.setWhatsThis(self.tr( 2417 self.prefExportAct.setWhatsThis(self.tr(
2421 self.prefExportAct.triggered.connect(self.__exportPreferences) 2421 self.prefExportAct.triggered.connect(self.__exportPreferences)
2422 self.actions.append(self.prefExportAct) 2422 self.actions.append(self.prefExportAct)
2423 2423
2424 self.prefImportAct = E5Action( 2424 self.prefImportAct = E5Action(
2425 self.tr('Import Preferences'), 2425 self.tr('Import Preferences'),
2426 UI.PixmapCache.getIcon("configureImport.png"), 2426 UI.PixmapCache.getIcon("configureImport"),
2427 self.tr('I&mport Preferences...'), 2427 self.tr('I&mport Preferences...'),
2428 0, 0, self, 'import_preferences') 2428 0, 0, self, 'import_preferences')
2429 self.prefImportAct.setStatusTip(self.tr( 2429 self.prefImportAct.setStatusTip(self.tr(
2430 'Import a previously exported configuration')) 2430 'Import a previously exported configuration'))
2431 self.prefImportAct.setWhatsThis(self.tr( 2431 self.prefImportAct.setWhatsThis(self.tr(
2448 self.reloadAPIsAct.triggered.connect(self.__reloadAPIs) 2448 self.reloadAPIsAct.triggered.connect(self.__reloadAPIs)
2449 self.actions.append(self.reloadAPIsAct) 2449 self.actions.append(self.reloadAPIsAct)
2450 2450
2451 self.showExternalToolsAct = E5Action( 2451 self.showExternalToolsAct = E5Action(
2452 self.tr('Show external tools'), 2452 self.tr('Show external tools'),
2453 UI.PixmapCache.getIcon("showPrograms.png"), 2453 UI.PixmapCache.getIcon("showPrograms"),
2454 self.tr('Show external &tools'), 2454 self.tr('Show external &tools'),
2455 0, 0, self, 'show_external_tools') 2455 0, 0, self, 'show_external_tools')
2456 self.showExternalToolsAct.setStatusTip(self.tr( 2456 self.showExternalToolsAct.setStatusTip(self.tr(
2457 'Show external tools')) 2457 'Show external tools'))
2458 self.showExternalToolsAct.setWhatsThis(self.tr( 2458 self.showExternalToolsAct.setWhatsThis(self.tr(
2464 self.__showExternalTools) 2464 self.__showExternalTools)
2465 self.actions.append(self.showExternalToolsAct) 2465 self.actions.append(self.showExternalToolsAct)
2466 2466
2467 self.configViewProfilesAct = E5Action( 2467 self.configViewProfilesAct = E5Action(
2468 self.tr('View Profiles'), 2468 self.tr('View Profiles'),
2469 UI.PixmapCache.getIcon("configureViewProfiles.png"), 2469 UI.PixmapCache.getIcon("configureViewProfiles"),
2470 self.tr('&View Profiles...'), 2470 self.tr('&View Profiles...'),
2471 0, 0, self, 'view_profiles') 2471 0, 0, self, 'view_profiles')
2472 self.configViewProfilesAct.setStatusTip(self.tr( 2472 self.configViewProfilesAct.setStatusTip(self.tr(
2473 'Configure view profiles')) 2473 'Configure view profiles'))
2474 self.configViewProfilesAct.setWhatsThis(self.tr( 2474 self.configViewProfilesAct.setWhatsThis(self.tr(
2481 self.__configViewProfiles) 2481 self.__configViewProfiles)
2482 self.actions.append(self.configViewProfilesAct) 2482 self.actions.append(self.configViewProfilesAct)
2483 2483
2484 self.configToolBarsAct = E5Action( 2484 self.configToolBarsAct = E5Action(
2485 self.tr('Toolbars'), 2485 self.tr('Toolbars'),
2486 UI.PixmapCache.getIcon("toolbarsConfigure.png"), 2486 UI.PixmapCache.getIcon("toolbarsConfigure"),
2487 self.tr('Tool&bars...'), 2487 self.tr('Tool&bars...'),
2488 0, 0, self, 'configure_toolbars') 2488 0, 0, self, 'configure_toolbars')
2489 self.configToolBarsAct.setStatusTip(self.tr('Configure toolbars')) 2489 self.configToolBarsAct.setStatusTip(self.tr('Configure toolbars'))
2490 self.configToolBarsAct.setWhatsThis(self.tr( 2490 self.configToolBarsAct.setWhatsThis(self.tr(
2491 """<b>Toolbars</b>""" 2491 """<b>Toolbars</b>"""
2496 self.configToolBarsAct.triggered.connect(self.__configToolBars) 2496 self.configToolBarsAct.triggered.connect(self.__configToolBars)
2497 self.actions.append(self.configToolBarsAct) 2497 self.actions.append(self.configToolBarsAct)
2498 2498
2499 self.shortcutsAct = E5Action( 2499 self.shortcutsAct = E5Action(
2500 self.tr('Keyboard Shortcuts'), 2500 self.tr('Keyboard Shortcuts'),
2501 UI.PixmapCache.getIcon("configureShortcuts.png"), 2501 UI.PixmapCache.getIcon("configureShortcuts"),
2502 self.tr('Keyboard &Shortcuts...'), 2502 self.tr('Keyboard &Shortcuts...'),
2503 0, 0, self, 'keyboard_shortcuts') 2503 0, 0, self, 'keyboard_shortcuts')
2504 self.shortcutsAct.setStatusTip(self.tr( 2504 self.shortcutsAct.setStatusTip(self.tr(
2505 'Set the keyboard shortcuts')) 2505 'Set the keyboard shortcuts'))
2506 self.shortcutsAct.setWhatsThis(self.tr( 2506 self.shortcutsAct.setWhatsThis(self.tr(
2511 self.shortcutsAct.triggered.connect(self.__configShortcuts) 2511 self.shortcutsAct.triggered.connect(self.__configShortcuts)
2512 self.actions.append(self.shortcutsAct) 2512 self.actions.append(self.shortcutsAct)
2513 2513
2514 self.exportShortcutsAct = E5Action( 2514 self.exportShortcutsAct = E5Action(
2515 self.tr('Export Keyboard Shortcuts'), 2515 self.tr('Export Keyboard Shortcuts'),
2516 UI.PixmapCache.getIcon("exportShortcuts.png"), 2516 UI.PixmapCache.getIcon("exportShortcuts"),
2517 self.tr('&Export Keyboard Shortcuts...'), 2517 self.tr('&Export Keyboard Shortcuts...'),
2518 0, 0, self, 'export_keyboard_shortcuts') 2518 0, 0, self, 'export_keyboard_shortcuts')
2519 self.exportShortcutsAct.setStatusTip(self.tr( 2519 self.exportShortcutsAct.setStatusTip(self.tr(
2520 'Export the keyboard shortcuts')) 2520 'Export the keyboard shortcuts'))
2521 self.exportShortcutsAct.setWhatsThis(self.tr( 2521 self.exportShortcutsAct.setWhatsThis(self.tr(
2525 self.exportShortcutsAct.triggered.connect(self.__exportShortcuts) 2525 self.exportShortcutsAct.triggered.connect(self.__exportShortcuts)
2526 self.actions.append(self.exportShortcutsAct) 2526 self.actions.append(self.exportShortcutsAct)
2527 2527
2528 self.importShortcutsAct = E5Action( 2528 self.importShortcutsAct = E5Action(
2529 self.tr('Import Keyboard Shortcuts'), 2529 self.tr('Import Keyboard Shortcuts'),
2530 UI.PixmapCache.getIcon("importShortcuts.png"), 2530 UI.PixmapCache.getIcon("importShortcuts"),
2531 self.tr('&Import Keyboard Shortcuts...'), 2531 self.tr('&Import Keyboard Shortcuts...'),
2532 0, 0, self, 'import_keyboard_shortcuts') 2532 0, 0, self, 'import_keyboard_shortcuts')
2533 self.importShortcutsAct.setStatusTip(self.tr( 2533 self.importShortcutsAct.setStatusTip(self.tr(
2534 'Import the keyboard shortcuts')) 2534 'Import the keyboard shortcuts'))
2535 self.importShortcutsAct.setWhatsThis(self.tr( 2535 self.importShortcutsAct.setWhatsThis(self.tr(
2540 self.actions.append(self.importShortcutsAct) 2540 self.actions.append(self.importShortcutsAct)
2541 2541
2542 if SSL_AVAILABLE: 2542 if SSL_AVAILABLE:
2543 self.certificatesAct = E5Action( 2543 self.certificatesAct = E5Action(
2544 self.tr('Manage SSL Certificates'), 2544 self.tr('Manage SSL Certificates'),
2545 UI.PixmapCache.getIcon("certificates.png"), 2545 UI.PixmapCache.getIcon("certificates"),
2546 self.tr('Manage SSL Certificates...'), 2546 self.tr('Manage SSL Certificates...'),
2547 0, 0, self, 'manage_ssl_certificates') 2547 0, 0, self, 'manage_ssl_certificates')
2548 self.certificatesAct.setStatusTip(self.tr( 2548 self.certificatesAct.setStatusTip(self.tr(
2549 'Manage the saved SSL certificates')) 2549 'Manage the saved SSL certificates'))
2550 self.certificatesAct.setWhatsThis(self.tr( 2550 self.certificatesAct.setWhatsThis(self.tr(
2556 self.__showCertificatesDialog) 2556 self.__showCertificatesDialog)
2557 self.actions.append(self.certificatesAct) 2557 self.actions.append(self.certificatesAct)
2558 2558
2559 self.editMessageFilterAct = E5Action( 2559 self.editMessageFilterAct = E5Action(
2560 self.tr('Edit Message Filters'), 2560 self.tr('Edit Message Filters'),
2561 UI.PixmapCache.getIcon("warning.png"), 2561 UI.PixmapCache.getIcon("warning"),
2562 self.tr('Edit Message Filters...'), 2562 self.tr('Edit Message Filters...'),
2563 0, 0, self, 'manage_message_filters') 2563 0, 0, self, 'manage_message_filters')
2564 self.editMessageFilterAct.setStatusTip(self.tr( 2564 self.editMessageFilterAct.setStatusTip(self.tr(
2565 'Edit the message filters used to suppress unwanted messages')) 2565 'Edit the message filters used to suppress unwanted messages'))
2566 self.editMessageFilterAct.setWhatsThis(self.tr( 2566 self.editMessageFilterAct.setWhatsThis(self.tr(
2573 E5ErrorMessage.editMessageFilters) 2573 E5ErrorMessage.editMessageFilters)
2574 self.actions.append(self.editMessageFilterAct) 2574 self.actions.append(self.editMessageFilterAct)
2575 2575
2576 self.clearPrivateDataAct = E5Action( 2576 self.clearPrivateDataAct = E5Action(
2577 self.tr('Clear private data'), 2577 self.tr('Clear private data'),
2578 UI.PixmapCache.getIcon("clearPrivateData.png"), 2578 UI.PixmapCache.getIcon("clearPrivateData"),
2579 self.tr('Clear private data'), 2579 self.tr('Clear private data'),
2580 0, 0, 2580 0, 0,
2581 self, 'clear_private_data') 2581 self, 'clear_private_data')
2582 self.clearPrivateDataAct.setStatusTip(self.tr( 2582 self.clearPrivateDataAct.setStatusTip(self.tr(
2583 'Clear private data')) 2583 'Clear private data'))
2627 self.actions.append(self.switchTabAct) 2627 self.actions.append(self.switchTabAct)
2628 self.addAction(self.switchTabAct) 2628 self.addAction(self.switchTabAct)
2629 2629
2630 self.pluginInfoAct = E5Action( 2630 self.pluginInfoAct = E5Action(
2631 self.tr('Plugin Infos'), 2631 self.tr('Plugin Infos'),
2632 UI.PixmapCache.getIcon("plugin.png"), 2632 UI.PixmapCache.getIcon("plugin"),
2633 self.tr('&Plugin Infos...'), 0, 0, self, 'plugin_infos') 2633 self.tr('&Plugin Infos...'), 0, 0, self, 'plugin_infos')
2634 self.pluginInfoAct.setStatusTip(self.tr('Show Plugin Infos')) 2634 self.pluginInfoAct.setStatusTip(self.tr('Show Plugin Infos'))
2635 self.pluginInfoAct.setWhatsThis(self.tr( 2635 self.pluginInfoAct.setWhatsThis(self.tr(
2636 """<b>Plugin Infos...</b>""" 2636 """<b>Plugin Infos...</b>"""
2637 """<p>This opens a dialog, that show some information about""" 2637 """<p>This opens a dialog, that show some information about"""
2640 self.pluginInfoAct.triggered.connect(self.__showPluginInfo) 2640 self.pluginInfoAct.triggered.connect(self.__showPluginInfo)
2641 self.actions.append(self.pluginInfoAct) 2641 self.actions.append(self.pluginInfoAct)
2642 2642
2643 self.pluginInstallAct = E5Action( 2643 self.pluginInstallAct = E5Action(
2644 self.tr('Install Plugins'), 2644 self.tr('Install Plugins'),
2645 UI.PixmapCache.getIcon("pluginInstall.png"), 2645 UI.PixmapCache.getIcon("pluginInstall"),
2646 self.tr('&Install Plugins...'), 2646 self.tr('&Install Plugins...'),
2647 0, 0, self, 'plugin_install') 2647 0, 0, self, 'plugin_install')
2648 self.pluginInstallAct.setStatusTip(self.tr('Install Plugins')) 2648 self.pluginInstallAct.setStatusTip(self.tr('Install Plugins'))
2649 self.pluginInstallAct.setWhatsThis(self.tr( 2649 self.pluginInstallAct.setWhatsThis(self.tr(
2650 """<b>Install Plugins...</b>""" 2650 """<b>Install Plugins...</b>"""
2653 self.pluginInstallAct.triggered.connect(self.__installPlugins) 2653 self.pluginInstallAct.triggered.connect(self.__installPlugins)
2654 self.actions.append(self.pluginInstallAct) 2654 self.actions.append(self.pluginInstallAct)
2655 2655
2656 self.pluginDeinstallAct = E5Action( 2656 self.pluginDeinstallAct = E5Action(
2657 self.tr('Uninstall Plugin'), 2657 self.tr('Uninstall Plugin'),
2658 UI.PixmapCache.getIcon("pluginUninstall.png"), 2658 UI.PixmapCache.getIcon("pluginUninstall"),
2659 self.tr('&Uninstall Plugin...'), 2659 self.tr('&Uninstall Plugin...'),
2660 0, 0, self, 'plugin_deinstall') 2660 0, 0, self, 'plugin_deinstall')
2661 self.pluginDeinstallAct.setStatusTip(self.tr('Uninstall Plugin')) 2661 self.pluginDeinstallAct.setStatusTip(self.tr('Uninstall Plugin'))
2662 self.pluginDeinstallAct.setWhatsThis(self.tr( 2662 self.pluginDeinstallAct.setWhatsThis(self.tr(
2663 """<b>Uninstall Plugin...</b>""" 2663 """<b>Uninstall Plugin...</b>"""
2666 self.pluginDeinstallAct.triggered.connect(self.__deinstallPlugin) 2666 self.pluginDeinstallAct.triggered.connect(self.__deinstallPlugin)
2667 self.actions.append(self.pluginDeinstallAct) 2667 self.actions.append(self.pluginDeinstallAct)
2668 2668
2669 self.pluginRepoAct = E5Action( 2669 self.pluginRepoAct = E5Action(
2670 self.tr('Plugin Repository'), 2670 self.tr('Plugin Repository'),
2671 UI.PixmapCache.getIcon("pluginRepository.png"), 2671 UI.PixmapCache.getIcon("pluginRepository"),
2672 self.tr('Plugin &Repository...'), 2672 self.tr('Plugin &Repository...'),
2673 0, 0, self, 'plugin_repository') 2673 0, 0, self, 'plugin_repository')
2674 self.pluginRepoAct.setStatusTip(self.tr( 2674 self.pluginRepoAct.setStatusTip(self.tr(
2675 'Show Plugins available for download')) 2675 'Show Plugins available for download'))
2676 self.pluginRepoAct.setWhatsThis(self.tr( 2676 self.pluginRepoAct.setWhatsThis(self.tr(
2681 self.pluginRepoAct.triggered.connect(self.showPluginsAvailable) 2681 self.pluginRepoAct.triggered.connect(self.showPluginsAvailable)
2682 self.actions.append(self.pluginRepoAct) 2682 self.actions.append(self.pluginRepoAct)
2683 2683
2684 self.virtualenvManagerAct = E5Action( 2684 self.virtualenvManagerAct = E5Action(
2685 self.tr('Virtualenv Manager'), 2685 self.tr('Virtualenv Manager'),
2686 UI.PixmapCache.getIcon("virtualenv.png"), 2686 UI.PixmapCache.getIcon("virtualenv"),
2687 self.tr('&Virtualenv Manager...'), 2687 self.tr('&Virtualenv Manager...'),
2688 0, 0, self, 2688 0, 0, self,
2689 'virtualenv_manager') 2689 'virtualenv_manager')
2690 self.virtualenvManagerAct.setStatusTip(self.tr( 2690 self.virtualenvManagerAct.setStatusTip(self.tr(
2691 'Virtualenv Manager')) 2691 'Virtualenv Manager'))
2698 self.virtualenvManager.showVirtualenvManagerDialog) 2698 self.virtualenvManager.showVirtualenvManagerDialog)
2699 self.actions.append(self.virtualenvManagerAct) 2699 self.actions.append(self.virtualenvManagerAct)
2700 2700
2701 self.virtualenvConfigAct = E5Action( 2701 self.virtualenvConfigAct = E5Action(
2702 self.tr('Virtualenv Configurator'), 2702 self.tr('Virtualenv Configurator'),
2703 UI.PixmapCache.getIcon("virtualenvConfig.png"), 2703 UI.PixmapCache.getIcon("virtualenvConfig"),
2704 self.tr('Virtualenv &Configurator...'), 2704 self.tr('Virtualenv &Configurator...'),
2705 0, 0, self, 2705 0, 0, self,
2706 'virtualenv_configurator') 2706 'virtualenv_configurator')
2707 self.virtualenvConfigAct.setStatusTip(self.tr( 2707 self.virtualenvConfigAct.setStatusTip(self.tr(
2708 'Virtualenv Configurator')) 2708 'Virtualenv Configurator'))
3031 ############################################################## 3031 ##############################################################
3032 ## Extras/Plugins menu 3032 ## Extras/Plugins menu
3033 ############################################################## 3033 ##############################################################
3034 3034
3035 pluginsMenu = QMenu(self.tr('P&lugins'), self) 3035 pluginsMenu = QMenu(self.tr('P&lugins'), self)
3036 pluginsMenu.setIcon(UI.PixmapCache.getIcon("plugin.png")) 3036 pluginsMenu.setIcon(UI.PixmapCache.getIcon("plugin"))
3037 pluginsMenu.setTearOffEnabled(True) 3037 pluginsMenu.setTearOffEnabled(True)
3038 pluginsMenu.addAction(self.pluginInfoAct) 3038 pluginsMenu.addAction(self.pluginInfoAct)
3039 pluginsMenu.addAction(self.pluginInstallAct) 3039 pluginsMenu.addAction(self.pluginInstallAct)
3040 pluginsMenu.addAction(self.pluginDeinstallAct) 3040 pluginsMenu.addAction(self.pluginDeinstallAct)
3041 pluginsMenu.addSeparator() 3041 pluginsMenu.addSeparator()
3468 """<p>This part of the status bar displays the cursor position""" 3468 """<p>This part of the status bar displays the cursor position"""
3469 """ of the current editor.</p>""" 3469 """ of the current editor.</p>"""
3470 )) 3470 ))
3471 3471
3472 self.sbZoom = E5ZoomWidget( 3472 self.sbZoom = E5ZoomWidget(
3473 UI.PixmapCache.getPixmap("zoomOut.png"), 3473 UI.PixmapCache.getPixmap("zoomOut"),
3474 UI.PixmapCache.getPixmap("zoomIn.png"), 3474 UI.PixmapCache.getPixmap("zoomIn"),
3475 UI.PixmapCache.getPixmap("zoomReset.png"), 3475 UI.PixmapCache.getPixmap("zoomReset"),
3476 self.__statusBar) 3476 self.__statusBar)
3477 self.__statusBar.addPermanentWidget(self.sbZoom) 3477 self.__statusBar.addPermanentWidget(self.sbZoom)
3478 self.sbZoom.setWhatsThis(self.tr( 3478 self.sbZoom.setWhatsThis(self.tr(
3479 """<p>This part of the status bar allows zooming the current""" 3479 """<p>This part of the status bar allows zooming the current"""
3480 """ editor or shell.</p>""" 3480 """ editor or shell.</p>"""
7329 modal=False, 7329 modal=False,
7330 buttons=E5MessageBox.Ok, 7330 buttons=E5MessageBox.Ok,
7331 parent=self 7331 parent=self
7332 ) 7332 )
7333 self.__versionsDialog.setIconPixmap( 7333 self.__versionsDialog.setIconPixmap(
7334 UI.PixmapCache.getPixmap("eric.png").scaled(64, 64)) 7334 UI.PixmapCache.getPixmap("eric").scaled(64, 64))
7335 self.__versionsDialog.show() 7335 self.__versionsDialog.show()
7336 7336
7337 def __sslErrors(self, reply, errors): 7337 def __sslErrors(self, reply, errors):
7338 """ 7338 """
7339 Private slot to handle SSL errors. 7339 Private slot to handle SSL errors.

eric ide

mercurial