eric6/UI/UserInterface.py

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

eric ide

mercurial