820 # Create the project browser |
820 # Create the project browser |
821 logging.debug("Creating Project Browser...") |
821 logging.debug("Creating Project Browser...") |
822 from Project.ProjectBrowser import ProjectBrowser |
822 from Project.ProjectBrowser import ProjectBrowser |
823 self.projectBrowser = ProjectBrowser(self.project) |
823 self.projectBrowser = ProjectBrowser(self.project) |
824 self.lToolbox.addItem(self.projectBrowser, |
824 self.lToolbox.addItem(self.projectBrowser, |
825 UI.PixmapCache.getIcon("projectViewer.png"), |
825 UI.PixmapCache.getIcon("projectViewer"), |
826 self.tr("Project-Viewer")) |
826 self.tr("Project-Viewer")) |
827 |
827 |
828 # Create the multi project browser |
828 # Create the multi project browser |
829 logging.debug("Creating Multiproject Browser...") |
829 logging.debug("Creating Multiproject Browser...") |
830 from MultiProject.MultiProjectBrowser import MultiProjectBrowser |
830 from MultiProject.MultiProjectBrowser import MultiProjectBrowser |
831 self.multiProjectBrowser = MultiProjectBrowser(self.multiProject, |
831 self.multiProjectBrowser = MultiProjectBrowser(self.multiProject, |
832 self.project) |
832 self.project) |
833 self.lToolbox.addItem(self.multiProjectBrowser, |
833 self.lToolbox.addItem(self.multiProjectBrowser, |
834 UI.PixmapCache.getIcon("multiProjectViewer.png"), |
834 UI.PixmapCache.getIcon("multiProjectViewer"), |
835 self.tr("Multiproject-Viewer")) |
835 self.tr("Multiproject-Viewer")) |
836 |
836 |
837 if Preferences.getUI("ShowTemplateViewer"): |
837 if Preferences.getUI("ShowTemplateViewer"): |
838 # Create the template viewer part of the user interface |
838 # Create the template viewer part of the user interface |
839 logging.debug("Creating Template Viewer...") |
839 logging.debug("Creating Template Viewer...") |
840 from Templates.TemplateViewer import TemplateViewer |
840 from Templates.TemplateViewer import TemplateViewer |
841 self.templateViewer = TemplateViewer(None, |
841 self.templateViewer = TemplateViewer(None, |
842 self.viewmanager) |
842 self.viewmanager) |
843 self.lToolbox.addItem(self.templateViewer, |
843 self.lToolbox.addItem(self.templateViewer, |
844 UI.PixmapCache.getIcon("templateViewer.png"), |
844 UI.PixmapCache.getIcon("templateViewer"), |
845 self.tr("Template-Viewer")) |
845 self.tr("Template-Viewer")) |
846 |
846 |
847 #################################################### |
847 #################################################### |
848 ## Populate the right toolbox |
848 ## Populate the right toolbox |
849 #################################################### |
849 #################################################### |
852 # Create the code documentation viewer |
852 # Create the code documentation viewer |
853 logging.debug("Creating Code Documentation Viewer...") |
853 logging.debug("Creating Code Documentation Viewer...") |
854 from .CodeDocumentationViewer import CodeDocumentationViewer |
854 from .CodeDocumentationViewer import CodeDocumentationViewer |
855 self.codeDocumentationViewer = CodeDocumentationViewer(self) |
855 self.codeDocumentationViewer = CodeDocumentationViewer(self) |
856 self.rToolbox.addItem(self.codeDocumentationViewer, |
856 self.rToolbox.addItem(self.codeDocumentationViewer, |
857 UI.PixmapCache.getIcon("codeDocuViewer.png"), |
857 UI.PixmapCache.getIcon("codeDocuViewer"), |
858 self.tr("Code Documentation Viewer")) |
858 self.tr("Code Documentation Viewer")) |
859 |
859 |
860 # Create the debug viewer |
860 # Create the debug viewer |
861 logging.debug("Creating Debug Viewer...") |
861 logging.debug("Creating Debug Viewer...") |
862 from Debugger.DebugViewer import DebugViewer |
862 from Debugger.DebugViewer import DebugViewer |
863 self.debugViewer = DebugViewer(debugServer) |
863 self.debugViewer = DebugViewer(debugServer) |
864 self.rToolbox.addItem(self.debugViewer, |
864 self.rToolbox.addItem(self.debugViewer, |
865 UI.PixmapCache.getIcon("debugViewer.png"), |
865 UI.PixmapCache.getIcon("debugViewer"), |
866 self.tr("Debug-Viewer")) |
866 self.tr("Debug-Viewer")) |
867 |
867 |
868 if Preferences.getUI("ShowPyPIPackageManager"): |
868 if Preferences.getUI("ShowPyPIPackageManager"): |
869 # Create the PyPI package manager |
869 # Create the PyPI package manager |
870 logging.debug("Creating PyPI Package Manager...") |
870 logging.debug("Creating PyPI Package Manager...") |
878 # Create the conda package manager |
878 # Create the conda package manager |
879 logging.debug("Creating Conda Package Manager...") |
879 logging.debug("Creating Conda Package Manager...") |
880 from CondaInterface.CondaPackagesWidget import CondaPackagesWidget |
880 from CondaInterface.CondaPackagesWidget import CondaPackagesWidget |
881 self.condaWidget = CondaPackagesWidget(self.condaInterface) |
881 self.condaWidget = CondaPackagesWidget(self.condaInterface) |
882 self.rToolbox.addItem(self.condaWidget, |
882 self.rToolbox.addItem(self.condaWidget, |
883 UI.PixmapCache.getIcon("miniconda.png"), |
883 UI.PixmapCache.getIcon("miniconda"), |
884 self.tr("Conda")) |
884 self.tr("Conda")) |
885 |
885 |
886 if Preferences.getUI("ShowCooperation"): |
886 if Preferences.getUI("ShowCooperation"): |
887 # Create the chat part of the user interface |
887 # Create the chat part of the user interface |
888 logging.debug("Creating Chat Widget...") |
888 logging.debug("Creating Chat Widget...") |
889 from Cooperation.ChatWidget import ChatWidget |
889 from Cooperation.ChatWidget import ChatWidget |
890 self.cooperation = ChatWidget(self) |
890 self.cooperation = ChatWidget(self) |
891 self.rToolbox.addItem(self.cooperation, |
891 self.rToolbox.addItem(self.cooperation, |
892 UI.PixmapCache.getIcon("cooperation.png"), |
892 UI.PixmapCache.getIcon("cooperation"), |
893 self.tr("Cooperation")) |
893 self.tr("Cooperation")) |
894 |
894 |
895 if Preferences.getUI("ShowIrc"): |
895 if Preferences.getUI("ShowIrc"): |
896 # Create the IRC part of the user interface |
896 # Create the IRC part of the user interface |
897 logging.debug("Creating IRC Widget...") |
897 logging.debug("Creating IRC Widget...") |
898 from Network.IRC.IrcWidget import IrcWidget |
898 from Network.IRC.IrcWidget import IrcWidget |
899 self.irc = IrcWidget(self) |
899 self.irc = IrcWidget(self) |
900 self.rToolbox.addItem(self.irc, |
900 self.rToolbox.addItem(self.irc, |
901 UI.PixmapCache.getIcon("irc.png"), |
901 UI.PixmapCache.getIcon("irc"), |
902 self.tr("IRC")) |
902 self.tr("IRC")) |
903 |
903 |
904 if Preferences.getUI("ShowMicroPython"): |
904 if Preferences.getUI("ShowMicroPython"): |
905 # Create the MicroPython part of the user interface |
905 # Create the MicroPython part of the user interface |
906 logging.debug("Creating MicroPython Widget...") |
906 logging.debug("Creating MicroPython Widget...") |
917 # Create the task viewer part of the user interface |
917 # Create the task viewer part of the user interface |
918 logging.debug("Creating Task Viewer...") |
918 logging.debug("Creating Task Viewer...") |
919 from Tasks.TaskViewer import TaskViewer |
919 from Tasks.TaskViewer import TaskViewer |
920 self.taskViewer = TaskViewer(None, self.project) |
920 self.taskViewer = TaskViewer(None, self.project) |
921 self.hToolbox.addItem(self.taskViewer, |
921 self.hToolbox.addItem(self.taskViewer, |
922 UI.PixmapCache.getIcon("task.png"), |
922 UI.PixmapCache.getIcon("task"), |
923 self.tr("Task-Viewer")) |
923 self.tr("Task-Viewer")) |
924 |
924 |
925 # Create the log viewer part of the user interface |
925 # Create the log viewer part of the user interface |
926 logging.debug("Creating Log Viewer...") |
926 logging.debug("Creating Log Viewer...") |
927 from .LogView import LogViewer |
927 from .LogView import LogViewer |
928 self.logViewer = LogViewer(self) |
928 self.logViewer = LogViewer(self) |
929 self.hToolbox.addItem(self.logViewer, |
929 self.hToolbox.addItem(self.logViewer, |
930 UI.PixmapCache.getIcon("logViewer.png"), |
930 UI.PixmapCache.getIcon("logViewer"), |
931 self.tr("Log-Viewer")) |
931 self.tr("Log-Viewer")) |
932 |
932 |
933 if Preferences.getUI("ShowFileBrowser"): |
933 if Preferences.getUI("ShowFileBrowser"): |
934 # Create the file browser |
934 # Create the file browser |
935 logging.debug("Creating File Browser...") |
935 logging.debug("Creating File Browser...") |
936 from .Browser import Browser |
936 from .Browser import Browser |
937 self.browser = Browser() |
937 self.browser = Browser() |
938 self.lToolbox.addItem(self.browser, |
938 self.lToolbox.addItem(self.browser, |
939 UI.PixmapCache.getIcon("browser.png"), |
939 UI.PixmapCache.getIcon("browser"), |
940 self.tr("File-Browser")) |
940 self.tr("File-Browser")) |
941 |
941 |
942 if Preferences.getUI("ShowSymbolsViewer"): |
942 if Preferences.getUI("ShowSymbolsViewer"): |
943 # Create the symbols viewer |
943 # Create the symbols viewer |
944 logging.debug("Creating Symbols Viewer...") |
944 logging.debug("Creating Symbols Viewer...") |
945 from .SymbolsWidget import SymbolsWidget |
945 from .SymbolsWidget import SymbolsWidget |
946 self.symbolsViewer = SymbolsWidget() |
946 self.symbolsViewer = SymbolsWidget() |
947 self.lToolbox.addItem(self.symbolsViewer, |
947 self.lToolbox.addItem(self.symbolsViewer, |
948 UI.PixmapCache.getIcon("symbols.png"), |
948 UI.PixmapCache.getIcon("symbols"), |
949 self.tr("Symbols")) |
949 self.tr("Symbols")) |
950 |
950 |
951 if Preferences.getUI("ShowNumbersViewer"): |
951 if Preferences.getUI("ShowNumbersViewer"): |
952 # Create the numbers viewer |
952 # Create the numbers viewer |
953 logging.debug("Creating Numbers Viewer...") |
953 logging.debug("Creating Numbers Viewer...") |
954 from .NumbersWidget import NumbersWidget |
954 from .NumbersWidget import NumbersWidget |
955 self.numbersViewer = NumbersWidget() |
955 self.numbersViewer = NumbersWidget() |
956 self.hToolbox.addItem(self.numbersViewer, |
956 self.hToolbox.addItem(self.numbersViewer, |
957 UI.PixmapCache.getIcon("numbers.png"), |
957 UI.PixmapCache.getIcon("numbers"), |
958 self.tr("Numbers")) |
958 self.tr("Numbers")) |
959 |
959 |
960 #################################################### |
960 #################################################### |
961 ## Populate the configurable widgets |
961 ## Populate the configurable widgets |
962 #################################################### |
962 #################################################### |
973 from QScintilla.Shell import ShellAssembly |
973 from QScintilla.Shell import ShellAssembly |
974 self.shellAssembly = ShellAssembly( |
974 self.shellAssembly = ShellAssembly( |
975 debugServer, self.viewmanager, self.project, True) |
975 debugServer, self.viewmanager, self.project, True) |
976 self.shell = self.shellAssembly.shell() |
976 self.shell = self.shellAssembly.shell() |
977 self.__shellParent.widget().insertItem( |
977 self.__shellParent.widget().insertItem( |
978 0, self.shellAssembly, UI.PixmapCache.getIcon("shell.png"), |
978 0, self.shellAssembly, UI.PixmapCache.getIcon("shell"), |
979 self.tr("Shell")) |
979 self.tr("Shell")) |
980 |
980 |
981 #################################################### |
981 #################################################### |
982 ## Set the start index of each toolbox |
982 ## Set the start index of each toolbox |
983 #################################################### |
983 #################################################### |
1014 logging.debug("Creating Project Browser...") |
1014 logging.debug("Creating Project Browser...") |
1015 from Project.ProjectBrowser import ProjectBrowser |
1015 from Project.ProjectBrowser import ProjectBrowser |
1016 self.projectBrowser = ProjectBrowser(self.project) |
1016 self.projectBrowser = ProjectBrowser(self.project) |
1017 self.leftSidebar.addTab( |
1017 self.leftSidebar.addTab( |
1018 self.projectBrowser, |
1018 self.projectBrowser, |
1019 UI.PixmapCache.getIcon("projectViewer.png"), |
1019 UI.PixmapCache.getIcon("projectViewer"), |
1020 self.tr("Project-Viewer")) |
1020 self.tr("Project-Viewer")) |
1021 |
1021 |
1022 # Create the multi project browser |
1022 # Create the multi project browser |
1023 logging.debug("Creating Multiproject Browser...") |
1023 logging.debug("Creating Multiproject Browser...") |
1024 from MultiProject.MultiProjectBrowser import MultiProjectBrowser |
1024 from MultiProject.MultiProjectBrowser import MultiProjectBrowser |
1025 self.multiProjectBrowser = MultiProjectBrowser(self.multiProject, |
1025 self.multiProjectBrowser = MultiProjectBrowser(self.multiProject, |
1026 self.project) |
1026 self.project) |
1027 self.leftSidebar.addTab( |
1027 self.leftSidebar.addTab( |
1028 self.multiProjectBrowser, |
1028 self.multiProjectBrowser, |
1029 UI.PixmapCache.getIcon("multiProjectViewer.png"), |
1029 UI.PixmapCache.getIcon("multiProjectViewer"), |
1030 self.tr("Multiproject-Viewer")) |
1030 self.tr("Multiproject-Viewer")) |
1031 |
1031 |
1032 if Preferences.getUI("ShowTemplateViewer"): |
1032 if Preferences.getUI("ShowTemplateViewer"): |
1033 # Create the template viewer part of the user interface |
1033 # Create the template viewer part of the user interface |
1034 logging.debug("Creating Template Viewer...") |
1034 logging.debug("Creating Template Viewer...") |
1035 from Templates.TemplateViewer import TemplateViewer |
1035 from Templates.TemplateViewer import TemplateViewer |
1036 self.templateViewer = TemplateViewer(None, |
1036 self.templateViewer = TemplateViewer(None, |
1037 self.viewmanager) |
1037 self.viewmanager) |
1038 self.leftSidebar.addTab( |
1038 self.leftSidebar.addTab( |
1039 self.templateViewer, |
1039 self.templateViewer, |
1040 UI.PixmapCache.getIcon("templateViewer.png"), |
1040 UI.PixmapCache.getIcon("templateViewer"), |
1041 self.tr("Template-Viewer")) |
1041 self.tr("Template-Viewer")) |
1042 |
1042 |
1043 #################################################### |
1043 #################################################### |
1044 ## Populate the right side bar |
1044 ## Populate the right side bar |
1045 #################################################### |
1045 #################################################### |
1049 logging.debug("Creating Code Documentation Viewer...") |
1049 logging.debug("Creating Code Documentation Viewer...") |
1050 from .CodeDocumentationViewer import CodeDocumentationViewer |
1050 from .CodeDocumentationViewer import CodeDocumentationViewer |
1051 self.codeDocumentationViewer = CodeDocumentationViewer(self) |
1051 self.codeDocumentationViewer = CodeDocumentationViewer(self) |
1052 self.rightSidebar.addTab( |
1052 self.rightSidebar.addTab( |
1053 self.codeDocumentationViewer, |
1053 self.codeDocumentationViewer, |
1054 UI.PixmapCache.getIcon("codeDocuViewer.png"), |
1054 UI.PixmapCache.getIcon("codeDocuViewer"), |
1055 self.tr("Code Documentation Viewer")) |
1055 self.tr("Code Documentation Viewer")) |
1056 |
1056 |
1057 # Create the debug viewer |
1057 # Create the debug viewer |
1058 logging.debug("Creating Debug Viewer...") |
1058 logging.debug("Creating Debug Viewer...") |
1059 from Debugger.DebugViewer import DebugViewer |
1059 from Debugger.DebugViewer import DebugViewer |
1060 self.debugViewer = DebugViewer(debugServer) |
1060 self.debugViewer = DebugViewer(debugServer) |
1061 self.rightSidebar.addTab( |
1061 self.rightSidebar.addTab( |
1062 self.debugViewer, UI.PixmapCache.getIcon("debugViewer.png"), |
1062 self.debugViewer, UI.PixmapCache.getIcon("debugViewer"), |
1063 self.tr("Debug-Viewer")) |
1063 self.tr("Debug-Viewer")) |
1064 |
1064 |
1065 if Preferences.getUI("ShowPyPIPackageManager"): |
1065 if Preferences.getUI("ShowPyPIPackageManager"): |
1066 # Create the PyPI package manager |
1066 # Create the PyPI package manager |
1067 logging.debug("Creating PyPI Package Manager...") |
1067 logging.debug("Creating PyPI Package Manager...") |
1075 # Create the conda package manager |
1075 # Create the conda package manager |
1076 logging.debug("Creating Conda Package Manager...") |
1076 logging.debug("Creating Conda Package Manager...") |
1077 from CondaInterface.CondaPackagesWidget import CondaPackagesWidget |
1077 from CondaInterface.CondaPackagesWidget import CondaPackagesWidget |
1078 self.condaWidget = CondaPackagesWidget(self.condaInterface) |
1078 self.condaWidget = CondaPackagesWidget(self.condaInterface) |
1079 self.rightSidebar.addTab( |
1079 self.rightSidebar.addTab( |
1080 self.condaWidget, UI.PixmapCache.getIcon("miniconda.png"), |
1080 self.condaWidget, UI.PixmapCache.getIcon("miniconda"), |
1081 self.tr("Conda")) |
1081 self.tr("Conda")) |
1082 |
1082 |
1083 if Preferences.getUI("ShowCooperation"): |
1083 if Preferences.getUI("ShowCooperation"): |
1084 # Create the chat part of the user interface |
1084 # Create the chat part of the user interface |
1085 logging.debug("Creating Chat Widget...") |
1085 logging.debug("Creating Chat Widget...") |
1086 from Cooperation.ChatWidget import ChatWidget |
1086 from Cooperation.ChatWidget import ChatWidget |
1087 self.cooperation = ChatWidget(self) |
1087 self.cooperation = ChatWidget(self) |
1088 self.rightSidebar.addTab( |
1088 self.rightSidebar.addTab( |
1089 self.cooperation, UI.PixmapCache.getIcon("cooperation.png"), |
1089 self.cooperation, UI.PixmapCache.getIcon("cooperation"), |
1090 self.tr("Cooperation")) |
1090 self.tr("Cooperation")) |
1091 |
1091 |
1092 if Preferences.getUI("ShowIrc"): |
1092 if Preferences.getUI("ShowIrc"): |
1093 # Create the IRC part of the user interface |
1093 # Create the IRC part of the user interface |
1094 logging.debug("Creating IRC Widget...") |
1094 logging.debug("Creating IRC Widget...") |
1095 from Network.IRC.IrcWidget import IrcWidget |
1095 from Network.IRC.IrcWidget import IrcWidget |
1096 self.irc = IrcWidget(self) |
1096 self.irc = IrcWidget(self) |
1097 self.rightSidebar.addTab( |
1097 self.rightSidebar.addTab( |
1098 self.irc, UI.PixmapCache.getIcon("irc.png"), |
1098 self.irc, UI.PixmapCache.getIcon("irc"), |
1099 self.tr("IRC")) |
1099 self.tr("IRC")) |
1100 |
1100 |
1101 if Preferences.getUI("ShowMicroPython"): |
1101 if Preferences.getUI("ShowMicroPython"): |
1102 # Create the MicroPython part of the user interface |
1102 # Create the MicroPython part of the user interface |
1103 logging.debug("Creating MicroPython Widget...") |
1103 logging.debug("Creating MicroPython Widget...") |
1114 # Create the task viewer part of the user interface |
1114 # Create the task viewer part of the user interface |
1115 logging.debug("Creating Task Viewer...") |
1115 logging.debug("Creating Task Viewer...") |
1116 from Tasks.TaskViewer import TaskViewer |
1116 from Tasks.TaskViewer import TaskViewer |
1117 self.taskViewer = TaskViewer(None, self.project) |
1117 self.taskViewer = TaskViewer(None, self.project) |
1118 self.bottomSidebar.addTab(self.taskViewer, |
1118 self.bottomSidebar.addTab(self.taskViewer, |
1119 UI.PixmapCache.getIcon("task.png"), |
1119 UI.PixmapCache.getIcon("task"), |
1120 self.tr("Task-Viewer")) |
1120 self.tr("Task-Viewer")) |
1121 |
1121 |
1122 # Create the log viewer part of the user interface |
1122 # Create the log viewer part of the user interface |
1123 logging.debug("Creating Log Viewer...") |
1123 logging.debug("Creating Log Viewer...") |
1124 from .LogView import LogViewer |
1124 from .LogView import LogViewer |
1125 self.logViewer = LogViewer(self) |
1125 self.logViewer = LogViewer(self) |
1126 self.bottomSidebar.addTab(self.logViewer, |
1126 self.bottomSidebar.addTab(self.logViewer, |
1127 UI.PixmapCache.getIcon("logViewer.png"), |
1127 UI.PixmapCache.getIcon("logViewer"), |
1128 self.tr("Log-Viewer")) |
1128 self.tr("Log-Viewer")) |
1129 |
1129 |
1130 if Preferences.getUI("ShowFileBrowser"): |
1130 if Preferences.getUI("ShowFileBrowser"): |
1131 # Create the file browser |
1131 # Create the file browser |
1132 logging.debug("Creating File Browser...") |
1132 logging.debug("Creating File Browser...") |
1133 from .Browser import Browser |
1133 from .Browser import Browser |
1134 self.browser = Browser() |
1134 self.browser = Browser() |
1135 self.leftSidebar.addTab(self.browser, |
1135 self.leftSidebar.addTab(self.browser, |
1136 UI.PixmapCache.getIcon("browser.png"), |
1136 UI.PixmapCache.getIcon("browser"), |
1137 self.tr("File-Browser")) |
1137 self.tr("File-Browser")) |
1138 |
1138 |
1139 if Preferences.getUI("ShowSymbolsViewer"): |
1139 if Preferences.getUI("ShowSymbolsViewer"): |
1140 # Create the symbols viewer |
1140 # Create the symbols viewer |
1141 logging.debug("Creating Symbols Viewer...") |
1141 logging.debug("Creating Symbols Viewer...") |
1142 from .SymbolsWidget import SymbolsWidget |
1142 from .SymbolsWidget import SymbolsWidget |
1143 self.symbolsViewer = SymbolsWidget() |
1143 self.symbolsViewer = SymbolsWidget() |
1144 self.leftSidebar.addTab(self.symbolsViewer, |
1144 self.leftSidebar.addTab(self.symbolsViewer, |
1145 UI.PixmapCache.getIcon("symbols.png"), |
1145 UI.PixmapCache.getIcon("symbols"), |
1146 self.tr("Symbols")) |
1146 self.tr("Symbols")) |
1147 |
1147 |
1148 if Preferences.getUI("ShowNumbersViewer"): |
1148 if Preferences.getUI("ShowNumbersViewer"): |
1149 # Create the numbers viewer |
1149 # Create the numbers viewer |
1150 logging.debug("Creating Numbers Viewer...") |
1150 logging.debug("Creating Numbers Viewer...") |
1151 from .NumbersWidget import NumbersWidget |
1151 from .NumbersWidget import NumbersWidget |
1152 self.numbersViewer = NumbersWidget() |
1152 self.numbersViewer = NumbersWidget() |
1153 self.bottomSidebar.addTab(self.numbersViewer, |
1153 self.bottomSidebar.addTab(self.numbersViewer, |
1154 UI.PixmapCache.getIcon("numbers.png"), |
1154 UI.PixmapCache.getIcon("numbers"), |
1155 self.tr("Numbers")) |
1155 self.tr("Numbers")) |
1156 |
1156 |
1157 #################################################### |
1157 #################################################### |
1158 ## Populate the configurable widgets |
1158 ## Populate the configurable widgets |
1159 #################################################### |
1159 #################################################### |
1170 from QScintilla.Shell import ShellAssembly |
1170 from QScintilla.Shell import ShellAssembly |
1171 self.shellAssembly = ShellAssembly( |
1171 self.shellAssembly = ShellAssembly( |
1172 debugServer, self.viewmanager, self.project, True) |
1172 debugServer, self.viewmanager, self.project, True) |
1173 self.shell = self.shellAssembly.shell() |
1173 self.shell = self.shellAssembly.shell() |
1174 self.__shellParent.insertTab(0, self.shellAssembly, |
1174 self.__shellParent.insertTab(0, self.shellAssembly, |
1175 UI.PixmapCache.getIcon("shell.png"), |
1175 UI.PixmapCache.getIcon("shell"), |
1176 self.tr("Shell")) |
1176 self.tr("Shell")) |
1177 |
1177 |
1178 #################################################### |
1178 #################################################### |
1179 ## Set the start index of each side bar |
1179 ## Set the start index of each side bar |
1180 #################################################### |
1180 #################################################### |
1524 self.exitAct.setMenuRole(QAction.QuitRole) |
1524 self.exitAct.setMenuRole(QAction.QuitRole) |
1525 self.actions.append(self.exitAct) |
1525 self.actions.append(self.exitAct) |
1526 |
1526 |
1527 self.restartAct = E5Action( |
1527 self.restartAct = E5Action( |
1528 self.tr('Restart'), |
1528 self.tr('Restart'), |
1529 UI.PixmapCache.getIcon("restart.png"), |
1529 UI.PixmapCache.getIcon("restart"), |
1530 self.tr('Restart'), |
1530 self.tr('Restart'), |
1531 QKeySequence(self.tr("Ctrl+Shift+Q", "File|Quit")), |
1531 QKeySequence(self.tr("Ctrl+Shift+Q", "File|Quit")), |
1532 0, self, 'restart_eric') |
1532 0, self, 'restart_eric') |
1533 self.restartAct.setStatusTip(self.tr('Restart the IDE')) |
1533 self.restartAct.setStatusTip(self.tr('Restart the IDE')) |
1534 self.restartAct.setWhatsThis(self.tr( |
1534 self.restartAct.setWhatsThis(self.tr( |
1566 self.loadSessionAct.triggered.connect(self.__loadSessionFromFile) |
1566 self.loadSessionAct.triggered.connect(self.__loadSessionFromFile) |
1567 self.actions.append(self.loadSessionAct) |
1567 self.actions.append(self.loadSessionAct) |
1568 |
1568 |
1569 self.newWindowAct = E5Action( |
1569 self.newWindowAct = E5Action( |
1570 self.tr('New Window'), |
1570 self.tr('New Window'), |
1571 UI.PixmapCache.getIcon("newWindow.png"), |
1571 UI.PixmapCache.getIcon("newWindow"), |
1572 self.tr('New &Window'), |
1572 self.tr('New &Window'), |
1573 QKeySequence(self.tr("Ctrl+Shift+N", "File|New Window")), |
1573 QKeySequence(self.tr("Ctrl+Shift+N", "File|New Window")), |
1574 0, self, 'new_window') |
1574 0, self, 'new_window') |
1575 self.newWindowAct.setStatusTip(self.tr( |
1575 self.newWindowAct.setStatusTip(self.tr( |
1576 'Open a new eric6 instance')) |
1576 'Open a new eric6 instance')) |
1585 |
1585 |
1586 self.viewProfileActGrp = createActionGroup(self, "viewprofiles", True) |
1586 self.viewProfileActGrp = createActionGroup(self, "viewprofiles", True) |
1587 |
1587 |
1588 self.setEditProfileAct = E5Action( |
1588 self.setEditProfileAct = E5Action( |
1589 self.tr('Edit Profile'), |
1589 self.tr('Edit Profile'), |
1590 UI.PixmapCache.getIcon("viewProfileEdit.png"), |
1590 UI.PixmapCache.getIcon("viewProfileEdit"), |
1591 self.tr('Edit Profile'), |
1591 self.tr('Edit Profile'), |
1592 0, 0, |
1592 0, 0, |
1593 self.viewProfileActGrp, 'edit_profile', True) |
1593 self.viewProfileActGrp, 'edit_profile', True) |
1594 self.setEditProfileAct.setStatusTip(self.tr( |
1594 self.setEditProfileAct.setStatusTip(self.tr( |
1595 'Activate the edit view profile')) |
1595 'Activate the edit view profile')) |
1602 self.setEditProfileAct.triggered.connect(self.__setEditProfile) |
1602 self.setEditProfileAct.triggered.connect(self.__setEditProfile) |
1603 self.actions.append(self.setEditProfileAct) |
1603 self.actions.append(self.setEditProfileAct) |
1604 |
1604 |
1605 self.setDebugProfileAct = E5Action( |
1605 self.setDebugProfileAct = E5Action( |
1606 self.tr('Debug Profile'), |
1606 self.tr('Debug Profile'), |
1607 UI.PixmapCache.getIcon("viewProfileDebug.png"), |
1607 UI.PixmapCache.getIcon("viewProfileDebug"), |
1608 self.tr('Debug Profile'), |
1608 self.tr('Debug Profile'), |
1609 0, 0, |
1609 0, 0, |
1610 self.viewProfileActGrp, 'debug_profile', True) |
1610 self.viewProfileActGrp, 'debug_profile', True) |
1611 self.setDebugProfileAct.setStatusTip( |
1611 self.setDebugProfileAct.setStatusTip( |
1612 self.tr('Activate the debug view profile')) |
1612 self.tr('Activate the debug view profile')) |
1991 self.actions.append(self.microPythonWidgetActivateAct) |
1991 self.actions.append(self.microPythonWidgetActivateAct) |
1992 self.addAction(self.microPythonWidgetActivateAct) |
1992 self.addAction(self.microPythonWidgetActivateAct) |
1993 |
1993 |
1994 self.whatsThisAct = E5Action( |
1994 self.whatsThisAct = E5Action( |
1995 self.tr('What\'s This?'), |
1995 self.tr('What\'s This?'), |
1996 UI.PixmapCache.getIcon("whatsThis.png"), |
1996 UI.PixmapCache.getIcon("whatsThis"), |
1997 self.tr('&What\'s This?'), |
1997 self.tr('&What\'s This?'), |
1998 QKeySequence(self.tr("Shift+F1")), |
1998 QKeySequence(self.tr("Shift+F1")), |
1999 0, self, 'whatsThis') |
1999 0, self, 'whatsThis') |
2000 self.whatsThisAct.setStatusTip(self.tr('Context sensitive help')) |
2000 self.whatsThisAct.setStatusTip(self.tr('Context sensitive help')) |
2001 self.whatsThisAct.setWhatsThis(self.tr( |
2001 self.whatsThisAct.setWhatsThis(self.tr( |
2009 self.whatsThisAct.triggered.connect(self.__whatsThis) |
2009 self.whatsThisAct.triggered.connect(self.__whatsThis) |
2010 self.actions.append(self.whatsThisAct) |
2010 self.actions.append(self.whatsThisAct) |
2011 |
2011 |
2012 self.helpviewerAct = E5Action( |
2012 self.helpviewerAct = E5Action( |
2013 self.tr('Helpviewer'), |
2013 self.tr('Helpviewer'), |
2014 UI.PixmapCache.getIcon("help.png"), |
2014 UI.PixmapCache.getIcon("help"), |
2015 self.tr('&Helpviewer...'), |
2015 self.tr('&Helpviewer...'), |
2016 QKeySequence(self.tr("F1")), |
2016 QKeySequence(self.tr("F1")), |
2017 0, self, 'helpviewer') |
2017 0, self, 'helpviewer') |
2018 self.helpviewerAct.setStatusTip(self.tr( |
2018 self.helpviewerAct.setStatusTip(self.tr( |
2019 'Open the helpviewer window')) |
2019 'Open the helpviewer window')) |
2113 |
2113 |
2114 self.utActGrp = createActionGroup(self) |
2114 self.utActGrp = createActionGroup(self) |
2115 |
2115 |
2116 self.utDialogAct = E5Action( |
2116 self.utDialogAct = E5Action( |
2117 self.tr('Unittest'), |
2117 self.tr('Unittest'), |
2118 UI.PixmapCache.getIcon("unittest.png"), |
2118 UI.PixmapCache.getIcon("unittest"), |
2119 self.tr('&Unittest...'), |
2119 self.tr('&Unittest...'), |
2120 0, 0, self.utActGrp, 'unittest') |
2120 0, 0, self.utActGrp, 'unittest') |
2121 self.utDialogAct.setStatusTip(self.tr('Start unittest dialog')) |
2121 self.utDialogAct.setStatusTip(self.tr('Start unittest dialog')) |
2122 self.utDialogAct.setWhatsThis(self.tr( |
2122 self.utDialogAct.setWhatsThis(self.tr( |
2123 """<b>Unittest</b>""" |
2123 """<b>Unittest</b>""" |
2127 self.utDialogAct.triggered.connect(self.__unittest) |
2127 self.utDialogAct.triggered.connect(self.__unittest) |
2128 self.actions.append(self.utDialogAct) |
2128 self.actions.append(self.utDialogAct) |
2129 |
2129 |
2130 self.utRestartAct = E5Action( |
2130 self.utRestartAct = E5Action( |
2131 self.tr('Unittest Restart'), |
2131 self.tr('Unittest Restart'), |
2132 UI.PixmapCache.getIcon("unittestRestart.png"), |
2132 UI.PixmapCache.getIcon("unittestRestart"), |
2133 self.tr('&Restart Unittest...'), |
2133 self.tr('&Restart Unittest...'), |
2134 0, 0, self.utActGrp, 'unittest_restart') |
2134 0, 0, self.utActGrp, 'unittest_restart') |
2135 self.utRestartAct.setStatusTip(self.tr('Restart last unittest')) |
2135 self.utRestartAct.setStatusTip(self.tr('Restart last unittest')) |
2136 self.utRestartAct.setWhatsThis(self.tr( |
2136 self.utRestartAct.setWhatsThis(self.tr( |
2137 """<b>Restart Unittest</b>""" |
2137 """<b>Restart Unittest</b>""" |
2141 self.utRestartAct.setEnabled(False) |
2141 self.utRestartAct.setEnabled(False) |
2142 self.actions.append(self.utRestartAct) |
2142 self.actions.append(self.utRestartAct) |
2143 |
2143 |
2144 self.utRerunFailedAct = E5Action( |
2144 self.utRerunFailedAct = E5Action( |
2145 self.tr('Unittest Rerun Failed'), |
2145 self.tr('Unittest Rerun Failed'), |
2146 UI.PixmapCache.getIcon("unittestRerunFailed.png"), |
2146 UI.PixmapCache.getIcon("unittestRerunFailed"), |
2147 self.tr('Rerun Failed Tests...'), |
2147 self.tr('Rerun Failed Tests...'), |
2148 0, 0, self.utActGrp, 'unittest_rerun_failed') |
2148 0, 0, self.utActGrp, 'unittest_rerun_failed') |
2149 self.utRerunFailedAct.setStatusTip(self.tr( |
2149 self.utRerunFailedAct.setStatusTip(self.tr( |
2150 'Rerun failed tests of the last run')) |
2150 'Rerun failed tests of the last run')) |
2151 self.utRerunFailedAct.setWhatsThis(self.tr( |
2151 self.utRerunFailedAct.setWhatsThis(self.tr( |
2157 self.utRerunFailedAct.setEnabled(False) |
2157 self.utRerunFailedAct.setEnabled(False) |
2158 self.actions.append(self.utRerunFailedAct) |
2158 self.actions.append(self.utRerunFailedAct) |
2159 |
2159 |
2160 self.utScriptAct = E5Action( |
2160 self.utScriptAct = E5Action( |
2161 self.tr('Unittest Script'), |
2161 self.tr('Unittest Script'), |
2162 UI.PixmapCache.getIcon("unittestScript.png"), |
2162 UI.PixmapCache.getIcon("unittestScript"), |
2163 self.tr('Unittest &Script...'), |
2163 self.tr('Unittest &Script...'), |
2164 0, 0, self.utActGrp, 'unittest_script') |
2164 0, 0, self.utActGrp, 'unittest_script') |
2165 self.utScriptAct.setStatusTip(self.tr( |
2165 self.utScriptAct.setStatusTip(self.tr( |
2166 'Run unittest with current script')) |
2166 'Run unittest with current script')) |
2167 self.utScriptAct.setWhatsThis(self.tr( |
2167 self.utScriptAct.setWhatsThis(self.tr( |
2172 self.utScriptAct.setEnabled(False) |
2172 self.utScriptAct.setEnabled(False) |
2173 self.actions.append(self.utScriptAct) |
2173 self.actions.append(self.utScriptAct) |
2174 |
2174 |
2175 self.utProjectAct = E5Action( |
2175 self.utProjectAct = E5Action( |
2176 self.tr('Unittest Project'), |
2176 self.tr('Unittest Project'), |
2177 UI.PixmapCache.getIcon("unittestProject.png"), |
2177 UI.PixmapCache.getIcon("unittestProject"), |
2178 self.tr('Unittest &Project...'), |
2178 self.tr('Unittest &Project...'), |
2179 0, 0, self.utActGrp, 'unittest_project') |
2179 0, 0, self.utActGrp, 'unittest_project') |
2180 self.utProjectAct.setStatusTip(self.tr( |
2180 self.utProjectAct.setStatusTip(self.tr( |
2181 'Run unittest with current project')) |
2181 'Run unittest with current project')) |
2182 self.utProjectAct.setWhatsThis(self.tr( |
2182 self.utProjectAct.setWhatsThis(self.tr( |
2199 Utilities.getQtBinariesPath(), |
2199 Utilities.getQtBinariesPath(), |
2200 Utilities.generateQtToolName("designer")) |
2200 Utilities.generateQtToolName("designer")) |
2201 if os.path.exists(designerExe): |
2201 if os.path.exists(designerExe): |
2202 self.designer4Act = E5Action( |
2202 self.designer4Act = E5Action( |
2203 self.tr('Qt-Designer'), |
2203 self.tr('Qt-Designer'), |
2204 UI.PixmapCache.getIcon("designer4.png"), |
2204 UI.PixmapCache.getIcon("designer4"), |
2205 self.tr('Qt-&Designer...'), |
2205 self.tr('Qt-&Designer...'), |
2206 0, 0, self, 'qt_designer4') |
2206 0, 0, self, 'qt_designer4') |
2207 self.designer4Act.setStatusTip(self.tr('Start Qt-Designer')) |
2207 self.designer4Act.setStatusTip(self.tr('Start Qt-Designer')) |
2208 self.designer4Act.setWhatsThis(self.tr( |
2208 self.designer4Act.setWhatsThis(self.tr( |
2209 """<b>Qt-Designer</b>""" |
2209 """<b>Qt-Designer</b>""" |
2225 Utilities.getQtBinariesPath(), |
2225 Utilities.getQtBinariesPath(), |
2226 Utilities.generateQtToolName("linguist")) |
2226 Utilities.generateQtToolName("linguist")) |
2227 if os.path.exists(linguistExe): |
2227 if os.path.exists(linguistExe): |
2228 self.linguist4Act = E5Action( |
2228 self.linguist4Act = E5Action( |
2229 self.tr('Qt-Linguist'), |
2229 self.tr('Qt-Linguist'), |
2230 UI.PixmapCache.getIcon("linguist4.png"), |
2230 UI.PixmapCache.getIcon("linguist4"), |
2231 self.tr('Qt-&Linguist...'), |
2231 self.tr('Qt-&Linguist...'), |
2232 0, 0, self, 'qt_linguist4') |
2232 0, 0, self, 'qt_linguist4') |
2233 self.linguist4Act.setStatusTip(self.tr('Start Qt-Linguist')) |
2233 self.linguist4Act.setStatusTip(self.tr('Start Qt-Linguist')) |
2234 self.linguist4Act.setWhatsThis(self.tr( |
2234 self.linguist4Act.setWhatsThis(self.tr( |
2235 """<b>Qt-Linguist</b>""" |
2235 """<b>Qt-Linguist</b>""" |
2240 else: |
2240 else: |
2241 self.linguist4Act = None |
2241 self.linguist4Act = None |
2242 |
2242 |
2243 self.uipreviewerAct = E5Action( |
2243 self.uipreviewerAct = E5Action( |
2244 self.tr('UI Previewer'), |
2244 self.tr('UI Previewer'), |
2245 UI.PixmapCache.getIcon("uiPreviewer.png"), |
2245 UI.PixmapCache.getIcon("uiPreviewer"), |
2246 self.tr('&UI Previewer...'), |
2246 self.tr('&UI Previewer...'), |
2247 0, 0, self, 'ui_previewer') |
2247 0, 0, self, 'ui_previewer') |
2248 self.uipreviewerAct.setStatusTip(self.tr('Start the UI Previewer')) |
2248 self.uipreviewerAct.setStatusTip(self.tr('Start the UI Previewer')) |
2249 self.uipreviewerAct.setWhatsThis(self.tr( |
2249 self.uipreviewerAct.setWhatsThis(self.tr( |
2250 """<b>UI Previewer</b>""" |
2250 """<b>UI Previewer</b>""" |
2253 self.uipreviewerAct.triggered.connect(self.__UIPreviewer) |
2253 self.uipreviewerAct.triggered.connect(self.__UIPreviewer) |
2254 self.actions.append(self.uipreviewerAct) |
2254 self.actions.append(self.uipreviewerAct) |
2255 |
2255 |
2256 self.trpreviewerAct = E5Action( |
2256 self.trpreviewerAct = E5Action( |
2257 self.tr('Translations Previewer'), |
2257 self.tr('Translations Previewer'), |
2258 UI.PixmapCache.getIcon("trPreviewer.png"), |
2258 UI.PixmapCache.getIcon("trPreviewer"), |
2259 self.tr('&Translations Previewer...'), |
2259 self.tr('&Translations Previewer...'), |
2260 0, 0, self, 'tr_previewer') |
2260 0, 0, self, 'tr_previewer') |
2261 self.trpreviewerAct.setStatusTip(self.tr( |
2261 self.trpreviewerAct.setStatusTip(self.tr( |
2262 'Start the Translations Previewer')) |
2262 'Start the Translations Previewer')) |
2263 self.trpreviewerAct.setWhatsThis(self.tr( |
2263 self.trpreviewerAct.setWhatsThis(self.tr( |
2267 self.trpreviewerAct.triggered.connect(self.__TRPreviewer) |
2267 self.trpreviewerAct.triggered.connect(self.__TRPreviewer) |
2268 self.actions.append(self.trpreviewerAct) |
2268 self.actions.append(self.trpreviewerAct) |
2269 |
2269 |
2270 self.diffAct = E5Action( |
2270 self.diffAct = E5Action( |
2271 self.tr('Compare Files'), |
2271 self.tr('Compare Files'), |
2272 UI.PixmapCache.getIcon("diffFiles.png"), |
2272 UI.PixmapCache.getIcon("diffFiles"), |
2273 self.tr('&Compare Files...'), |
2273 self.tr('&Compare Files...'), |
2274 0, 0, self, 'diff_files') |
2274 0, 0, self, 'diff_files') |
2275 self.diffAct.setStatusTip(self.tr('Compare two files')) |
2275 self.diffAct.setStatusTip(self.tr('Compare two files')) |
2276 self.diffAct.setWhatsThis(self.tr( |
2276 self.diffAct.setWhatsThis(self.tr( |
2277 """<b>Compare Files</b>""" |
2277 """<b>Compare Files</b>""" |
2280 self.diffAct.triggered.connect(self.__compareFiles) |
2280 self.diffAct.triggered.connect(self.__compareFiles) |
2281 self.actions.append(self.diffAct) |
2281 self.actions.append(self.diffAct) |
2282 |
2282 |
2283 self.compareAct = E5Action( |
2283 self.compareAct = E5Action( |
2284 self.tr('Compare Files side by side'), |
2284 self.tr('Compare Files side by side'), |
2285 UI.PixmapCache.getIcon("compareFiles.png"), |
2285 UI.PixmapCache.getIcon("compareFiles"), |
2286 self.tr('Compare &Files side by side...'), |
2286 self.tr('Compare &Files side by side...'), |
2287 0, 0, self, 'compare_files') |
2287 0, 0, self, 'compare_files') |
2288 self.compareAct.setStatusTip(self.tr('Compare two files')) |
2288 self.compareAct.setStatusTip(self.tr('Compare two files')) |
2289 self.compareAct.setWhatsThis(self.tr( |
2289 self.compareAct.setWhatsThis(self.tr( |
2290 """<b>Compare Files side by side</b>""" |
2290 """<b>Compare Files side by side</b>""" |
2294 self.compareAct.triggered.connect(self.__compareFilesSbs) |
2294 self.compareAct.triggered.connect(self.__compareFilesSbs) |
2295 self.actions.append(self.compareAct) |
2295 self.actions.append(self.compareAct) |
2296 |
2296 |
2297 self.sqlBrowserAct = E5Action( |
2297 self.sqlBrowserAct = E5Action( |
2298 self.tr('SQL Browser'), |
2298 self.tr('SQL Browser'), |
2299 UI.PixmapCache.getIcon("sqlBrowser.png"), |
2299 UI.PixmapCache.getIcon("sqlBrowser"), |
2300 self.tr('SQL &Browser...'), |
2300 self.tr('SQL &Browser...'), |
2301 0, 0, self, 'sql_browser') |
2301 0, 0, self, 'sql_browser') |
2302 self.sqlBrowserAct.setStatusTip(self.tr('Browse a SQL database')) |
2302 self.sqlBrowserAct.setStatusTip(self.tr('Browse a SQL database')) |
2303 self.sqlBrowserAct.setWhatsThis(self.tr( |
2303 self.sqlBrowserAct.setWhatsThis(self.tr( |
2304 """<b>SQL Browser</b>""" |
2304 """<b>SQL Browser</b>""" |
2307 self.sqlBrowserAct.triggered.connect(self.__sqlBrowser) |
2307 self.sqlBrowserAct.triggered.connect(self.__sqlBrowser) |
2308 self.actions.append(self.sqlBrowserAct) |
2308 self.actions.append(self.sqlBrowserAct) |
2309 |
2309 |
2310 self.miniEditorAct = E5Action( |
2310 self.miniEditorAct = E5Action( |
2311 self.tr('Mini Editor'), |
2311 self.tr('Mini Editor'), |
2312 UI.PixmapCache.getIcon("editor.png"), |
2312 UI.PixmapCache.getIcon("editor"), |
2313 self.tr('Mini &Editor...'), |
2313 self.tr('Mini &Editor...'), |
2314 0, 0, self, 'mini_editor') |
2314 0, 0, self, 'mini_editor') |
2315 self.miniEditorAct.setStatusTip(self.tr('Mini Editor')) |
2315 self.miniEditorAct.setStatusTip(self.tr('Mini Editor')) |
2316 self.miniEditorAct.setWhatsThis(self.tr( |
2316 self.miniEditorAct.setWhatsThis(self.tr( |
2317 """<b>Mini Editor</b>""" |
2317 """<b>Mini Editor</b>""" |
2320 self.miniEditorAct.triggered.connect(self.__openMiniEditor) |
2320 self.miniEditorAct.triggered.connect(self.__openMiniEditor) |
2321 self.actions.append(self.miniEditorAct) |
2321 self.actions.append(self.miniEditorAct) |
2322 |
2322 |
2323 self.hexEditorAct = E5Action( |
2323 self.hexEditorAct = E5Action( |
2324 self.tr('Hex Editor'), |
2324 self.tr('Hex Editor'), |
2325 UI.PixmapCache.getIcon("hexEditor.png"), |
2325 UI.PixmapCache.getIcon("hexEditor"), |
2326 self.tr('&Hex Editor...'), |
2326 self.tr('&Hex Editor...'), |
2327 0, 0, self, 'hex_editor') |
2327 0, 0, self, 'hex_editor') |
2328 self.hexEditorAct.setStatusTip(self.tr( |
2328 self.hexEditorAct.setStatusTip(self.tr( |
2329 'Start the eric6 Hex Editor')) |
2329 'Start the eric6 Hex Editor')) |
2330 self.hexEditorAct.setWhatsThis(self.tr( |
2330 self.hexEditorAct.setWhatsThis(self.tr( |
2335 self.hexEditorAct.triggered.connect(self.__openHexEditor) |
2335 self.hexEditorAct.triggered.connect(self.__openHexEditor) |
2336 self.actions.append(self.hexEditorAct) |
2336 self.actions.append(self.hexEditorAct) |
2337 |
2337 |
2338 self.webBrowserAct = E5Action( |
2338 self.webBrowserAct = E5Action( |
2339 self.tr('eric6 Web Browser'), |
2339 self.tr('eric6 Web Browser'), |
2340 UI.PixmapCache.getIcon("ericWeb.png"), |
2340 UI.PixmapCache.getIcon("ericWeb"), |
2341 self.tr('eric6 &Web Browser...'), |
2341 self.tr('eric6 &Web Browser...'), |
2342 0, 0, self, 'web_browser') |
2342 0, 0, self, 'web_browser') |
2343 self.webBrowserAct.setStatusTip(self.tr( |
2343 self.webBrowserAct.setStatusTip(self.tr( |
2344 'Start the eric6 Web Browser')) |
2344 'Start the eric6 Web Browser')) |
2345 self.webBrowserAct.setWhatsThis(self.tr( |
2345 self.webBrowserAct.setWhatsThis(self.tr( |
2351 ## else: |
2351 ## else: |
2352 ## self.webBrowserAct = None |
2352 ## self.webBrowserAct = None |
2353 |
2353 |
2354 self.iconEditorAct = E5Action( |
2354 self.iconEditorAct = E5Action( |
2355 self.tr('Icon Editor'), |
2355 self.tr('Icon Editor'), |
2356 UI.PixmapCache.getIcon("iconEditor.png"), |
2356 UI.PixmapCache.getIcon("iconEditor"), |
2357 self.tr('&Icon Editor...'), |
2357 self.tr('&Icon Editor...'), |
2358 0, 0, self, 'icon_editor') |
2358 0, 0, self, 'icon_editor') |
2359 self.iconEditorAct.setStatusTip(self.tr( |
2359 self.iconEditorAct.setStatusTip(self.tr( |
2360 'Start the eric6 Icon Editor')) |
2360 'Start the eric6 Icon Editor')) |
2361 self.iconEditorAct.setWhatsThis(self.tr( |
2361 self.iconEditorAct.setWhatsThis(self.tr( |
2365 self.iconEditorAct.triggered.connect(self.__editPixmap) |
2365 self.iconEditorAct.triggered.connect(self.__editPixmap) |
2366 self.actions.append(self.iconEditorAct) |
2366 self.actions.append(self.iconEditorAct) |
2367 |
2367 |
2368 self.snapshotAct = E5Action( |
2368 self.snapshotAct = E5Action( |
2369 self.tr('Snapshot'), |
2369 self.tr('Snapshot'), |
2370 UI.PixmapCache.getIcon("ericSnap.png"), |
2370 UI.PixmapCache.getIcon("ericSnap"), |
2371 self.tr('&Snapshot...'), |
2371 self.tr('&Snapshot...'), |
2372 0, 0, self, 'snapshot') |
2372 0, 0, self, 'snapshot') |
2373 self.snapshotAct.setStatusTip(self.tr( |
2373 self.snapshotAct.setStatusTip(self.tr( |
2374 'Take snapshots of a screen region')) |
2374 'Take snapshots of a screen region')) |
2375 self.snapshotAct.setWhatsThis(self.tr( |
2375 self.snapshotAct.setWhatsThis(self.tr( |
2380 self.snapshotAct.triggered.connect(self.__snapshot) |
2380 self.snapshotAct.triggered.connect(self.__snapshot) |
2381 self.actions.append(self.snapshotAct) |
2381 self.actions.append(self.snapshotAct) |
2382 |
2382 |
2383 self.prefAct = E5Action( |
2383 self.prefAct = E5Action( |
2384 self.tr('Preferences'), |
2384 self.tr('Preferences'), |
2385 UI.PixmapCache.getIcon("configure.png"), |
2385 UI.PixmapCache.getIcon("configure"), |
2386 self.tr('&Preferences...'), |
2386 self.tr('&Preferences...'), |
2387 0, 0, self, 'preferences') |
2387 0, 0, self, 'preferences') |
2388 self.prefAct.setStatusTip(self.tr( |
2388 self.prefAct.setStatusTip(self.tr( |
2389 'Set the prefered configuration')) |
2389 'Set the prefered configuration')) |
2390 self.prefAct.setWhatsThis(self.tr( |
2390 self.prefAct.setWhatsThis(self.tr( |
2396 self.prefAct.setMenuRole(QAction.PreferencesRole) |
2396 self.prefAct.setMenuRole(QAction.PreferencesRole) |
2397 self.actions.append(self.prefAct) |
2397 self.actions.append(self.prefAct) |
2398 |
2398 |
2399 self.prefExportAct = E5Action( |
2399 self.prefExportAct = E5Action( |
2400 self.tr('Export Preferences'), |
2400 self.tr('Export Preferences'), |
2401 UI.PixmapCache.getIcon("configureExport.png"), |
2401 UI.PixmapCache.getIcon("configureExport"), |
2402 self.tr('E&xport Preferences...'), |
2402 self.tr('E&xport Preferences...'), |
2403 0, 0, self, 'export_preferences') |
2403 0, 0, self, 'export_preferences') |
2404 self.prefExportAct.setStatusTip(self.tr( |
2404 self.prefExportAct.setStatusTip(self.tr( |
2405 'Export the current configuration')) |
2405 'Export the current configuration')) |
2406 self.prefExportAct.setWhatsThis(self.tr( |
2406 self.prefExportAct.setWhatsThis(self.tr( |
2410 self.prefExportAct.triggered.connect(self.__exportPreferences) |
2410 self.prefExportAct.triggered.connect(self.__exportPreferences) |
2411 self.actions.append(self.prefExportAct) |
2411 self.actions.append(self.prefExportAct) |
2412 |
2412 |
2413 self.prefImportAct = E5Action( |
2413 self.prefImportAct = E5Action( |
2414 self.tr('Import Preferences'), |
2414 self.tr('Import Preferences'), |
2415 UI.PixmapCache.getIcon("configureImport.png"), |
2415 UI.PixmapCache.getIcon("configureImport"), |
2416 self.tr('I&mport Preferences...'), |
2416 self.tr('I&mport Preferences...'), |
2417 0, 0, self, 'import_preferences') |
2417 0, 0, self, 'import_preferences') |
2418 self.prefImportAct.setStatusTip(self.tr( |
2418 self.prefImportAct.setStatusTip(self.tr( |
2419 'Import a previously exported configuration')) |
2419 'Import a previously exported configuration')) |
2420 self.prefImportAct.setWhatsThis(self.tr( |
2420 self.prefImportAct.setWhatsThis(self.tr( |
2437 self.reloadAPIsAct.triggered.connect(self.__reloadAPIs) |
2437 self.reloadAPIsAct.triggered.connect(self.__reloadAPIs) |
2438 self.actions.append(self.reloadAPIsAct) |
2438 self.actions.append(self.reloadAPIsAct) |
2439 |
2439 |
2440 self.showExternalToolsAct = E5Action( |
2440 self.showExternalToolsAct = E5Action( |
2441 self.tr('Show external tools'), |
2441 self.tr('Show external tools'), |
2442 UI.PixmapCache.getIcon("showPrograms.png"), |
2442 UI.PixmapCache.getIcon("showPrograms"), |
2443 self.tr('Show external &tools'), |
2443 self.tr('Show external &tools'), |
2444 0, 0, self, 'show_external_tools') |
2444 0, 0, self, 'show_external_tools') |
2445 self.showExternalToolsAct.setStatusTip(self.tr( |
2445 self.showExternalToolsAct.setStatusTip(self.tr( |
2446 'Show external tools')) |
2446 'Show external tools')) |
2447 self.showExternalToolsAct.setWhatsThis(self.tr( |
2447 self.showExternalToolsAct.setWhatsThis(self.tr( |
2453 self.__showExternalTools) |
2453 self.__showExternalTools) |
2454 self.actions.append(self.showExternalToolsAct) |
2454 self.actions.append(self.showExternalToolsAct) |
2455 |
2455 |
2456 self.configViewProfilesAct = E5Action( |
2456 self.configViewProfilesAct = E5Action( |
2457 self.tr('View Profiles'), |
2457 self.tr('View Profiles'), |
2458 UI.PixmapCache.getIcon("configureViewProfiles.png"), |
2458 UI.PixmapCache.getIcon("configureViewProfiles"), |
2459 self.tr('&View Profiles...'), |
2459 self.tr('&View Profiles...'), |
2460 0, 0, self, 'view_profiles') |
2460 0, 0, self, 'view_profiles') |
2461 self.configViewProfilesAct.setStatusTip(self.tr( |
2461 self.configViewProfilesAct.setStatusTip(self.tr( |
2462 'Configure view profiles')) |
2462 'Configure view profiles')) |
2463 self.configViewProfilesAct.setWhatsThis(self.tr( |
2463 self.configViewProfilesAct.setWhatsThis(self.tr( |
2470 self.__configViewProfiles) |
2470 self.__configViewProfiles) |
2471 self.actions.append(self.configViewProfilesAct) |
2471 self.actions.append(self.configViewProfilesAct) |
2472 |
2472 |
2473 self.configToolBarsAct = E5Action( |
2473 self.configToolBarsAct = E5Action( |
2474 self.tr('Toolbars'), |
2474 self.tr('Toolbars'), |
2475 UI.PixmapCache.getIcon("toolbarsConfigure.png"), |
2475 UI.PixmapCache.getIcon("toolbarsConfigure"), |
2476 self.tr('Tool&bars...'), |
2476 self.tr('Tool&bars...'), |
2477 0, 0, self, 'configure_toolbars') |
2477 0, 0, self, 'configure_toolbars') |
2478 self.configToolBarsAct.setStatusTip(self.tr('Configure toolbars')) |
2478 self.configToolBarsAct.setStatusTip(self.tr('Configure toolbars')) |
2479 self.configToolBarsAct.setWhatsThis(self.tr( |
2479 self.configToolBarsAct.setWhatsThis(self.tr( |
2480 """<b>Toolbars</b>""" |
2480 """<b>Toolbars</b>""" |
2485 self.configToolBarsAct.triggered.connect(self.__configToolBars) |
2485 self.configToolBarsAct.triggered.connect(self.__configToolBars) |
2486 self.actions.append(self.configToolBarsAct) |
2486 self.actions.append(self.configToolBarsAct) |
2487 |
2487 |
2488 self.shortcutsAct = E5Action( |
2488 self.shortcutsAct = E5Action( |
2489 self.tr('Keyboard Shortcuts'), |
2489 self.tr('Keyboard Shortcuts'), |
2490 UI.PixmapCache.getIcon("configureShortcuts.png"), |
2490 UI.PixmapCache.getIcon("configureShortcuts"), |
2491 self.tr('Keyboard &Shortcuts...'), |
2491 self.tr('Keyboard &Shortcuts...'), |
2492 0, 0, self, 'keyboard_shortcuts') |
2492 0, 0, self, 'keyboard_shortcuts') |
2493 self.shortcutsAct.setStatusTip(self.tr( |
2493 self.shortcutsAct.setStatusTip(self.tr( |
2494 'Set the keyboard shortcuts')) |
2494 'Set the keyboard shortcuts')) |
2495 self.shortcutsAct.setWhatsThis(self.tr( |
2495 self.shortcutsAct.setWhatsThis(self.tr( |
2500 self.shortcutsAct.triggered.connect(self.__configShortcuts) |
2500 self.shortcutsAct.triggered.connect(self.__configShortcuts) |
2501 self.actions.append(self.shortcutsAct) |
2501 self.actions.append(self.shortcutsAct) |
2502 |
2502 |
2503 self.exportShortcutsAct = E5Action( |
2503 self.exportShortcutsAct = E5Action( |
2504 self.tr('Export Keyboard Shortcuts'), |
2504 self.tr('Export Keyboard Shortcuts'), |
2505 UI.PixmapCache.getIcon("exportShortcuts.png"), |
2505 UI.PixmapCache.getIcon("exportShortcuts"), |
2506 self.tr('&Export Keyboard Shortcuts...'), |
2506 self.tr('&Export Keyboard Shortcuts...'), |
2507 0, 0, self, 'export_keyboard_shortcuts') |
2507 0, 0, self, 'export_keyboard_shortcuts') |
2508 self.exportShortcutsAct.setStatusTip(self.tr( |
2508 self.exportShortcutsAct.setStatusTip(self.tr( |
2509 'Export the keyboard shortcuts')) |
2509 'Export the keyboard shortcuts')) |
2510 self.exportShortcutsAct.setWhatsThis(self.tr( |
2510 self.exportShortcutsAct.setWhatsThis(self.tr( |
2514 self.exportShortcutsAct.triggered.connect(self.__exportShortcuts) |
2514 self.exportShortcutsAct.triggered.connect(self.__exportShortcuts) |
2515 self.actions.append(self.exportShortcutsAct) |
2515 self.actions.append(self.exportShortcutsAct) |
2516 |
2516 |
2517 self.importShortcutsAct = E5Action( |
2517 self.importShortcutsAct = E5Action( |
2518 self.tr('Import Keyboard Shortcuts'), |
2518 self.tr('Import Keyboard Shortcuts'), |
2519 UI.PixmapCache.getIcon("importShortcuts.png"), |
2519 UI.PixmapCache.getIcon("importShortcuts"), |
2520 self.tr('&Import Keyboard Shortcuts...'), |
2520 self.tr('&Import Keyboard Shortcuts...'), |
2521 0, 0, self, 'import_keyboard_shortcuts') |
2521 0, 0, self, 'import_keyboard_shortcuts') |
2522 self.importShortcutsAct.setStatusTip(self.tr( |
2522 self.importShortcutsAct.setStatusTip(self.tr( |
2523 'Import the keyboard shortcuts')) |
2523 'Import the keyboard shortcuts')) |
2524 self.importShortcutsAct.setWhatsThis(self.tr( |
2524 self.importShortcutsAct.setWhatsThis(self.tr( |
2529 self.actions.append(self.importShortcutsAct) |
2529 self.actions.append(self.importShortcutsAct) |
2530 |
2530 |
2531 if SSL_AVAILABLE: |
2531 if SSL_AVAILABLE: |
2532 self.certificatesAct = E5Action( |
2532 self.certificatesAct = E5Action( |
2533 self.tr('Manage SSL Certificates'), |
2533 self.tr('Manage SSL Certificates'), |
2534 UI.PixmapCache.getIcon("certificates.png"), |
2534 UI.PixmapCache.getIcon("certificates"), |
2535 self.tr('Manage SSL Certificates...'), |
2535 self.tr('Manage SSL Certificates...'), |
2536 0, 0, self, 'manage_ssl_certificates') |
2536 0, 0, self, 'manage_ssl_certificates') |
2537 self.certificatesAct.setStatusTip(self.tr( |
2537 self.certificatesAct.setStatusTip(self.tr( |
2538 'Manage the saved SSL certificates')) |
2538 'Manage the saved SSL certificates')) |
2539 self.certificatesAct.setWhatsThis(self.tr( |
2539 self.certificatesAct.setWhatsThis(self.tr( |
2545 self.__showCertificatesDialog) |
2545 self.__showCertificatesDialog) |
2546 self.actions.append(self.certificatesAct) |
2546 self.actions.append(self.certificatesAct) |
2547 |
2547 |
2548 self.editMessageFilterAct = E5Action( |
2548 self.editMessageFilterAct = E5Action( |
2549 self.tr('Edit Message Filters'), |
2549 self.tr('Edit Message Filters'), |
2550 UI.PixmapCache.getIcon("warning.png"), |
2550 UI.PixmapCache.getIcon("warning"), |
2551 self.tr('Edit Message Filters...'), |
2551 self.tr('Edit Message Filters...'), |
2552 0, 0, self, 'manage_message_filters') |
2552 0, 0, self, 'manage_message_filters') |
2553 self.editMessageFilterAct.setStatusTip(self.tr( |
2553 self.editMessageFilterAct.setStatusTip(self.tr( |
2554 'Edit the message filters used to suppress unwanted messages')) |
2554 'Edit the message filters used to suppress unwanted messages')) |
2555 self.editMessageFilterAct.setWhatsThis(self.tr( |
2555 self.editMessageFilterAct.setWhatsThis(self.tr( |
2562 E5ErrorMessage.editMessageFilters) |
2562 E5ErrorMessage.editMessageFilters) |
2563 self.actions.append(self.editMessageFilterAct) |
2563 self.actions.append(self.editMessageFilterAct) |
2564 |
2564 |
2565 self.clearPrivateDataAct = E5Action( |
2565 self.clearPrivateDataAct = E5Action( |
2566 self.tr('Clear private data'), |
2566 self.tr('Clear private data'), |
2567 UI.PixmapCache.getIcon("clearPrivateData.png"), |
2567 UI.PixmapCache.getIcon("clearPrivateData"), |
2568 self.tr('Clear private data'), |
2568 self.tr('Clear private data'), |
2569 0, 0, |
2569 0, 0, |
2570 self, 'clear_private_data') |
2570 self, 'clear_private_data') |
2571 self.clearPrivateDataAct.setStatusTip(self.tr( |
2571 self.clearPrivateDataAct.setStatusTip(self.tr( |
2572 'Clear private data')) |
2572 'Clear private data')) |
2616 self.actions.append(self.switchTabAct) |
2616 self.actions.append(self.switchTabAct) |
2617 self.addAction(self.switchTabAct) |
2617 self.addAction(self.switchTabAct) |
2618 |
2618 |
2619 self.pluginInfoAct = E5Action( |
2619 self.pluginInfoAct = E5Action( |
2620 self.tr('Plugin Infos'), |
2620 self.tr('Plugin Infos'), |
2621 UI.PixmapCache.getIcon("plugin.png"), |
2621 UI.PixmapCache.getIcon("plugin"), |
2622 self.tr('&Plugin Infos...'), 0, 0, self, 'plugin_infos') |
2622 self.tr('&Plugin Infos...'), 0, 0, self, 'plugin_infos') |
2623 self.pluginInfoAct.setStatusTip(self.tr('Show Plugin Infos')) |
2623 self.pluginInfoAct.setStatusTip(self.tr('Show Plugin Infos')) |
2624 self.pluginInfoAct.setWhatsThis(self.tr( |
2624 self.pluginInfoAct.setWhatsThis(self.tr( |
2625 """<b>Plugin Infos...</b>""" |
2625 """<b>Plugin Infos...</b>""" |
2626 """<p>This opens a dialog, that show some information about""" |
2626 """<p>This opens a dialog, that show some information about""" |
2629 self.pluginInfoAct.triggered.connect(self.__showPluginInfo) |
2629 self.pluginInfoAct.triggered.connect(self.__showPluginInfo) |
2630 self.actions.append(self.pluginInfoAct) |
2630 self.actions.append(self.pluginInfoAct) |
2631 |
2631 |
2632 self.pluginInstallAct = E5Action( |
2632 self.pluginInstallAct = E5Action( |
2633 self.tr('Install Plugins'), |
2633 self.tr('Install Plugins'), |
2634 UI.PixmapCache.getIcon("pluginInstall.png"), |
2634 UI.PixmapCache.getIcon("pluginInstall"), |
2635 self.tr('&Install Plugins...'), |
2635 self.tr('&Install Plugins...'), |
2636 0, 0, self, 'plugin_install') |
2636 0, 0, self, 'plugin_install') |
2637 self.pluginInstallAct.setStatusTip(self.tr('Install Plugins')) |
2637 self.pluginInstallAct.setStatusTip(self.tr('Install Plugins')) |
2638 self.pluginInstallAct.setWhatsThis(self.tr( |
2638 self.pluginInstallAct.setWhatsThis(self.tr( |
2639 """<b>Install Plugins...</b>""" |
2639 """<b>Install Plugins...</b>""" |
2642 self.pluginInstallAct.triggered.connect(self.__installPlugins) |
2642 self.pluginInstallAct.triggered.connect(self.__installPlugins) |
2643 self.actions.append(self.pluginInstallAct) |
2643 self.actions.append(self.pluginInstallAct) |
2644 |
2644 |
2645 self.pluginDeinstallAct = E5Action( |
2645 self.pluginDeinstallAct = E5Action( |
2646 self.tr('Uninstall Plugin'), |
2646 self.tr('Uninstall Plugin'), |
2647 UI.PixmapCache.getIcon("pluginUninstall.png"), |
2647 UI.PixmapCache.getIcon("pluginUninstall"), |
2648 self.tr('&Uninstall Plugin...'), |
2648 self.tr('&Uninstall Plugin...'), |
2649 0, 0, self, 'plugin_deinstall') |
2649 0, 0, self, 'plugin_deinstall') |
2650 self.pluginDeinstallAct.setStatusTip(self.tr('Uninstall Plugin')) |
2650 self.pluginDeinstallAct.setStatusTip(self.tr('Uninstall Plugin')) |
2651 self.pluginDeinstallAct.setWhatsThis(self.tr( |
2651 self.pluginDeinstallAct.setWhatsThis(self.tr( |
2652 """<b>Uninstall Plugin...</b>""" |
2652 """<b>Uninstall Plugin...</b>""" |
2655 self.pluginDeinstallAct.triggered.connect(self.__deinstallPlugin) |
2655 self.pluginDeinstallAct.triggered.connect(self.__deinstallPlugin) |
2656 self.actions.append(self.pluginDeinstallAct) |
2656 self.actions.append(self.pluginDeinstallAct) |
2657 |
2657 |
2658 self.pluginRepoAct = E5Action( |
2658 self.pluginRepoAct = E5Action( |
2659 self.tr('Plugin Repository'), |
2659 self.tr('Plugin Repository'), |
2660 UI.PixmapCache.getIcon("pluginRepository.png"), |
2660 UI.PixmapCache.getIcon("pluginRepository"), |
2661 self.tr('Plugin &Repository...'), |
2661 self.tr('Plugin &Repository...'), |
2662 0, 0, self, 'plugin_repository') |
2662 0, 0, self, 'plugin_repository') |
2663 self.pluginRepoAct.setStatusTip(self.tr( |
2663 self.pluginRepoAct.setStatusTip(self.tr( |
2664 'Show Plugins available for download')) |
2664 'Show Plugins available for download')) |
2665 self.pluginRepoAct.setWhatsThis(self.tr( |
2665 self.pluginRepoAct.setWhatsThis(self.tr( |
2670 self.pluginRepoAct.triggered.connect(self.showPluginsAvailable) |
2670 self.pluginRepoAct.triggered.connect(self.showPluginsAvailable) |
2671 self.actions.append(self.pluginRepoAct) |
2671 self.actions.append(self.pluginRepoAct) |
2672 |
2672 |
2673 self.virtualenvManagerAct = E5Action( |
2673 self.virtualenvManagerAct = E5Action( |
2674 self.tr('Virtualenv Manager'), |
2674 self.tr('Virtualenv Manager'), |
2675 UI.PixmapCache.getIcon("virtualenv.png"), |
2675 UI.PixmapCache.getIcon("virtualenv"), |
2676 self.tr('&Virtualenv Manager...'), |
2676 self.tr('&Virtualenv Manager...'), |
2677 0, 0, self, |
2677 0, 0, self, |
2678 'virtualenv_manager') |
2678 'virtualenv_manager') |
2679 self.virtualenvManagerAct.setStatusTip(self.tr( |
2679 self.virtualenvManagerAct.setStatusTip(self.tr( |
2680 'Virtualenv Manager')) |
2680 'Virtualenv Manager')) |
2687 self.virtualenvManager.showVirtualenvManagerDialog) |
2687 self.virtualenvManager.showVirtualenvManagerDialog) |
2688 self.actions.append(self.virtualenvManagerAct) |
2688 self.actions.append(self.virtualenvManagerAct) |
2689 |
2689 |
2690 self.virtualenvConfigAct = E5Action( |
2690 self.virtualenvConfigAct = E5Action( |
2691 self.tr('Virtualenv Configurator'), |
2691 self.tr('Virtualenv Configurator'), |
2692 UI.PixmapCache.getIcon("virtualenvConfig.png"), |
2692 UI.PixmapCache.getIcon("virtualenvConfig"), |
2693 self.tr('Virtualenv &Configurator...'), |
2693 self.tr('Virtualenv &Configurator...'), |
2694 0, 0, self, |
2694 0, 0, self, |
2695 'virtualenv_configurator') |
2695 'virtualenv_configurator') |
2696 self.virtualenvConfigAct.setStatusTip(self.tr( |
2696 self.virtualenvConfigAct.setStatusTip(self.tr( |
2697 'Virtualenv Configurator')) |
2697 'Virtualenv Configurator')) |
3020 ############################################################## |
3020 ############################################################## |
3021 ## Extras/Plugins menu |
3021 ## Extras/Plugins menu |
3022 ############################################################## |
3022 ############################################################## |
3023 |
3023 |
3024 pluginsMenu = QMenu(self.tr('P&lugins'), self) |
3024 pluginsMenu = QMenu(self.tr('P&lugins'), self) |
3025 pluginsMenu.setIcon(UI.PixmapCache.getIcon("plugin.png")) |
3025 pluginsMenu.setIcon(UI.PixmapCache.getIcon("plugin")) |
3026 pluginsMenu.setTearOffEnabled(True) |
3026 pluginsMenu.setTearOffEnabled(True) |
3027 pluginsMenu.addAction(self.pluginInfoAct) |
3027 pluginsMenu.addAction(self.pluginInfoAct) |
3028 pluginsMenu.addAction(self.pluginInstallAct) |
3028 pluginsMenu.addAction(self.pluginInstallAct) |
3029 pluginsMenu.addAction(self.pluginDeinstallAct) |
3029 pluginsMenu.addAction(self.pluginDeinstallAct) |
3030 pluginsMenu.addSeparator() |
3030 pluginsMenu.addSeparator() |
3457 """<p>This part of the status bar displays the cursor position""" |
3457 """<p>This part of the status bar displays the cursor position""" |
3458 """ of the current editor.</p>""" |
3458 """ of the current editor.</p>""" |
3459 )) |
3459 )) |
3460 |
3460 |
3461 self.sbZoom = E5ZoomWidget( |
3461 self.sbZoom = E5ZoomWidget( |
3462 UI.PixmapCache.getPixmap("zoomOut.png"), |
3462 UI.PixmapCache.getPixmap("zoomOut"), |
3463 UI.PixmapCache.getPixmap("zoomIn.png"), |
3463 UI.PixmapCache.getPixmap("zoomIn"), |
3464 UI.PixmapCache.getPixmap("zoomReset.png"), |
3464 UI.PixmapCache.getPixmap("zoomReset"), |
3465 self.__statusBar) |
3465 self.__statusBar) |
3466 self.__statusBar.addPermanentWidget(self.sbZoom) |
3466 self.__statusBar.addPermanentWidget(self.sbZoom) |
3467 self.sbZoom.setWhatsThis(self.tr( |
3467 self.sbZoom.setWhatsThis(self.tr( |
3468 """<p>This part of the status bar allows zooming the current""" |
3468 """<p>This part of the status bar allows zooming the current""" |
3469 """ editor or shell.</p>""" |
3469 """ editor or shell.</p>""" |