eric6/UI/UserInterface.py

changeset 7533
88261c96484b
parent 7456
f8a68f7dac23
child 7560
343db73c4842
child 7564
787684e6f2f3
child 7586
9ca5907d5ed3
--- a/eric6/UI/UserInterface.py	Sun Apr 12 18:46:08 2020 +0200
+++ b/eric6/UI/UserInterface.py	Sun Apr 12 19:07:49 2020 +0200
@@ -225,8 +225,8 @@
         self.capEditor = ""
         self.captionShowsFilename = Preferences.getUI("CaptionShowsFilename")
         
-        QApplication.setWindowIcon(UI.PixmapCache.getIcon("eric.png"))
-        self.setWindowIcon(UI.PixmapCache.getIcon("eric.png"))
+        QApplication.setWindowIcon(UI.PixmapCache.getIcon("eric"))
+        self.setWindowIcon(UI.PixmapCache.getIcon("eric"))
         self.__setWindowCaption()
         
         # load the view profiles
@@ -834,7 +834,7 @@
         from Project.ProjectBrowser import ProjectBrowser
         self.projectBrowser = ProjectBrowser(self.project)
         self.lToolbox.addItem(self.projectBrowser,
-                              UI.PixmapCache.getIcon("projectViewer.png"),
+                              UI.PixmapCache.getIcon("projectViewer"),
                               self.tr("Project-Viewer"))
 
         # Create the multi project browser
@@ -843,7 +843,7 @@
         self.multiProjectBrowser = MultiProjectBrowser(self.multiProject,
                                                        self.project)
         self.lToolbox.addItem(self.multiProjectBrowser,
-                              UI.PixmapCache.getIcon("multiProjectViewer.png"),
+                              UI.PixmapCache.getIcon("multiProjectViewer"),
                               self.tr("Multiproject-Viewer"))
         
         if Preferences.getUI("ShowTemplateViewer"):
@@ -853,7 +853,7 @@
             self.templateViewer = TemplateViewer(None,
                                                  self.viewmanager)
             self.lToolbox.addItem(self.templateViewer,
-                                  UI.PixmapCache.getIcon("templateViewer.png"),
+                                  UI.PixmapCache.getIcon("templateViewer"),
                                   self.tr("Template-Viewer"))
         
         ####################################################
@@ -866,7 +866,7 @@
             from .CodeDocumentationViewer import CodeDocumentationViewer
             self.codeDocumentationViewer = CodeDocumentationViewer(self)
             self.rToolbox.addItem(self.codeDocumentationViewer,
-                                  UI.PixmapCache.getIcon("codeDocuViewer.png"),
+                                  UI.PixmapCache.getIcon("codeDocuViewer"),
                                   self.tr("Code Documentation Viewer"))
         
         # Create the debug viewer
@@ -874,7 +874,7 @@
         from Debugger.DebugViewer import DebugViewer
         self.debugViewer = DebugViewer(debugServer)
         self.rToolbox.addItem(self.debugViewer,
-                              UI.PixmapCache.getIcon("debugViewer.png"),
+                              UI.PixmapCache.getIcon("debugViewer"),
                               self.tr("Debug-Viewer"))
         
         if Preferences.getUI("ShowPyPIPackageManager"):
@@ -892,7 +892,7 @@
             from CondaInterface.CondaPackagesWidget import CondaPackagesWidget
             self.condaWidget = CondaPackagesWidget(self.condaInterface)
             self.rToolbox.addItem(self.condaWidget,
-                                  UI.PixmapCache.getIcon("miniconda.png"),
+                                  UI.PixmapCache.getIcon("miniconda"),
                                   self.tr("Conda"))
         
         if Preferences.getUI("ShowCooperation"):
@@ -901,7 +901,7 @@
             from Cooperation.ChatWidget import ChatWidget
             self.cooperation = ChatWidget(self)
             self.rToolbox.addItem(self.cooperation,
-                                  UI.PixmapCache.getIcon("cooperation.png"),
+                                  UI.PixmapCache.getIcon("cooperation"),
                                   self.tr("Cooperation"))
         
         if Preferences.getUI("ShowIrc"):
@@ -910,7 +910,7 @@
             from Network.IRC.IrcWidget import IrcWidget
             self.irc = IrcWidget(self)
             self.rToolbox.addItem(self.irc,
-                                  UI.PixmapCache.getIcon("irc.png"),
+                                  UI.PixmapCache.getIcon("irc"),
                                   self.tr("IRC"))
         
         if Preferences.getUI("ShowMicroPython"):
@@ -931,7 +931,7 @@
         from Tasks.TaskViewer import TaskViewer
         self.taskViewer = TaskViewer(None, self.project)
         self.hToolbox.addItem(self.taskViewer,
-                              UI.PixmapCache.getIcon("task.png"),
+                              UI.PixmapCache.getIcon("task"),
                               self.tr("Task-Viewer"))
 
         # Create the log viewer part of the user interface
@@ -939,7 +939,7 @@
         from .LogView import LogViewer
         self.logViewer = LogViewer(self)
         self.hToolbox.addItem(self.logViewer,
-                              UI.PixmapCache.getIcon("logViewer.png"),
+                              UI.PixmapCache.getIcon("logViewer"),
                               self.tr("Log-Viewer"))
 
         if Preferences.getUI("ShowFileBrowser"):
@@ -948,7 +948,7 @@
             from .Browser import Browser
             self.browser = Browser()
             self.lToolbox.addItem(self.browser,
-                                  UI.PixmapCache.getIcon("browser.png"),
+                                  UI.PixmapCache.getIcon("browser"),
                                   self.tr("File-Browser"))
         
         if Preferences.getUI("ShowSymbolsViewer"):
@@ -957,7 +957,7 @@
             from .SymbolsWidget import SymbolsWidget
             self.symbolsViewer = SymbolsWidget()
             self.lToolbox.addItem(self.symbolsViewer,
-                                  UI.PixmapCache.getIcon("symbols.png"),
+                                  UI.PixmapCache.getIcon("symbols"),
                                   self.tr("Symbols"))
         
         if Preferences.getUI("ShowNumbersViewer"):
@@ -966,7 +966,7 @@
             from .NumbersWidget import NumbersWidget
             self.numbersViewer = NumbersWidget()
             self.hToolbox.addItem(self.numbersViewer,
-                                  UI.PixmapCache.getIcon("numbers.png"),
+                                  UI.PixmapCache.getIcon("numbers"),
                                   self.tr("Numbers"))
         
         ####################################################
@@ -987,7 +987,7 @@
             debugServer, self.viewmanager, self.project, True)
         self.shell = self.shellAssembly.shell()
         self.__shellParent.widget().insertItem(
-            0, self.shellAssembly, UI.PixmapCache.getIcon("shell.png"),
+            0, self.shellAssembly, UI.PixmapCache.getIcon("shell"),
             self.tr("Shell"))
         
         ####################################################
@@ -1028,7 +1028,7 @@
         self.projectBrowser = ProjectBrowser(self.project)
         self.leftSidebar.addTab(
             self.projectBrowser,
-            UI.PixmapCache.getIcon("projectViewer.png"),
+            UI.PixmapCache.getIcon("projectViewer"),
             self.tr("Project-Viewer"))
 
         # Create the multi project browser
@@ -1038,7 +1038,7 @@
                                                        self.project)
         self.leftSidebar.addTab(
             self.multiProjectBrowser,
-            UI.PixmapCache.getIcon("multiProjectViewer.png"),
+            UI.PixmapCache.getIcon("multiProjectViewer"),
             self.tr("Multiproject-Viewer"))
 
         if Preferences.getUI("ShowTemplateViewer"):
@@ -1049,7 +1049,7 @@
                                                  self.viewmanager)
             self.leftSidebar.addTab(
                 self.templateViewer,
-                UI.PixmapCache.getIcon("templateViewer.png"),
+                UI.PixmapCache.getIcon("templateViewer"),
                 self.tr("Template-Viewer"))
 
         ####################################################
@@ -1063,7 +1063,7 @@
             self.codeDocumentationViewer = CodeDocumentationViewer(self)
             self.rightSidebar.addTab(
                 self.codeDocumentationViewer,
-                UI.PixmapCache.getIcon("codeDocuViewer.png"),
+                UI.PixmapCache.getIcon("codeDocuViewer"),
                 self.tr("Code Documentation Viewer"))
         
         # Create the debug viewer
@@ -1071,7 +1071,7 @@
         from Debugger.DebugViewer import DebugViewer
         self.debugViewer = DebugViewer(debugServer)
         self.rightSidebar.addTab(
-            self.debugViewer, UI.PixmapCache.getIcon("debugViewer.png"),
+            self.debugViewer, UI.PixmapCache.getIcon("debugViewer"),
             self.tr("Debug-Viewer"))
 
         if Preferences.getUI("ShowPyPIPackageManager"):
@@ -1089,7 +1089,7 @@
             from CondaInterface.CondaPackagesWidget import CondaPackagesWidget
             self.condaWidget = CondaPackagesWidget(self.condaInterface)
             self.rightSidebar.addTab(
-                self.condaWidget, UI.PixmapCache.getIcon("miniconda.png"),
+                self.condaWidget, UI.PixmapCache.getIcon("miniconda"),
                 self.tr("Conda"))
 
         if Preferences.getUI("ShowCooperation"):
@@ -1098,7 +1098,7 @@
             from Cooperation.ChatWidget import ChatWidget
             self.cooperation = ChatWidget(self)
             self.rightSidebar.addTab(
-                self.cooperation, UI.PixmapCache.getIcon("cooperation.png"),
+                self.cooperation, UI.PixmapCache.getIcon("cooperation"),
                 self.tr("Cooperation"))
         
         if Preferences.getUI("ShowIrc"):
@@ -1107,7 +1107,7 @@
             from Network.IRC.IrcWidget import IrcWidget
             self.irc = IrcWidget(self)
             self.rightSidebar.addTab(
-                self.irc, UI.PixmapCache.getIcon("irc.png"),
+                self.irc, UI.PixmapCache.getIcon("irc"),
                 self.tr("IRC"))
         
         if Preferences.getUI("ShowMicroPython"):
@@ -1128,7 +1128,7 @@
         from Tasks.TaskViewer import TaskViewer
         self.taskViewer = TaskViewer(None, self.project)
         self.bottomSidebar.addTab(self.taskViewer,
-                                  UI.PixmapCache.getIcon("task.png"),
+                                  UI.PixmapCache.getIcon("task"),
                                   self.tr("Task-Viewer"))
 
         # Create the log viewer part of the user interface
@@ -1136,7 +1136,7 @@
         from .LogView import LogViewer
         self.logViewer = LogViewer(self)
         self.bottomSidebar.addTab(self.logViewer,
-                                  UI.PixmapCache.getIcon("logViewer.png"),
+                                  UI.PixmapCache.getIcon("logViewer"),
                                   self.tr("Log-Viewer"))
 
         if Preferences.getUI("ShowFileBrowser"):
@@ -1145,7 +1145,7 @@
             from .Browser import Browser
             self.browser = Browser()
             self.leftSidebar.addTab(self.browser,
-                                    UI.PixmapCache.getIcon("browser.png"),
+                                    UI.PixmapCache.getIcon("browser"),
                                     self.tr("File-Browser"))
         
         if Preferences.getUI("ShowSymbolsViewer"):
@@ -1154,7 +1154,7 @@
             from .SymbolsWidget import SymbolsWidget
             self.symbolsViewer = SymbolsWidget()
             self.leftSidebar.addTab(self.symbolsViewer,
-                                    UI.PixmapCache.getIcon("symbols.png"),
+                                    UI.PixmapCache.getIcon("symbols"),
                                     self.tr("Symbols"))
         
         if Preferences.getUI("ShowNumbersViewer"):
@@ -1163,7 +1163,7 @@
             from .NumbersWidget import NumbersWidget
             self.numbersViewer = NumbersWidget()
             self.bottomSidebar.addTab(self.numbersViewer,
-                                      UI.PixmapCache.getIcon("numbers.png"),
+                                      UI.PixmapCache.getIcon("numbers"),
                                       self.tr("Numbers"))
         
         ####################################################
@@ -1184,7 +1184,7 @@
             debugServer, self.viewmanager, self.project, True)
         self.shell = self.shellAssembly.shell()
         self.__shellParent.insertTab(0, self.shellAssembly,
-                                     UI.PixmapCache.getIcon("shell.png"),
+                                     UI.PixmapCache.getIcon("shell"),
                                      self.tr("Shell"))
         
         ####################################################
@@ -1521,7 +1521,7 @@
         
         self.exitAct = E5Action(
             self.tr('Quit'),
-            UI.PixmapCache.getIcon("exit.png"),
+            UI.PixmapCache.getIcon("exit"),
             self.tr('&Quit'),
             QKeySequence(self.tr("Ctrl+Q", "File|Quit")),
             0, self, 'quit')
@@ -1538,7 +1538,7 @@
 
         self.restartAct = E5Action(
             self.tr('Restart'),
-            UI.PixmapCache.getIcon("restart.png"),
+            UI.PixmapCache.getIcon("restart"),
             self.tr('Restart'),
             QKeySequence(self.tr("Ctrl+Shift+Q", "File|Quit")),
             0, self, 'restart_eric')
@@ -1580,7 +1580,7 @@
 
         self.newWindowAct = E5Action(
             self.tr('New Window'),
-            UI.PixmapCache.getIcon("newWindow.png"),
+            UI.PixmapCache.getIcon("newWindow"),
             self.tr('New &Window'),
             QKeySequence(self.tr("Ctrl+Shift+N", "File|New Window")),
             0, self, 'new_window')
@@ -1599,7 +1599,7 @@
         
         self.setEditProfileAct = E5Action(
             self.tr('Edit Profile'),
-            UI.PixmapCache.getIcon("viewProfileEdit.png"),
+            UI.PixmapCache.getIcon("viewProfileEdit"),
             self.tr('Edit Profile'),
             0, 0,
             self.viewProfileActGrp, 'edit_profile', True)
@@ -1616,7 +1616,7 @@
         
         self.setDebugProfileAct = E5Action(
             self.tr('Debug Profile'),
-            UI.PixmapCache.getIcon("viewProfileDebug.png"),
+            UI.PixmapCache.getIcon("viewProfileDebug"),
             self.tr('Debug Profile'),
             0, 0,
             self.viewProfileActGrp, 'debug_profile', True)
@@ -2005,7 +2005,7 @@
         
         self.whatsThisAct = E5Action(
             self.tr('What\'s This?'),
-            UI.PixmapCache.getIcon("whatsThis.png"),
+            UI.PixmapCache.getIcon("whatsThis"),
             self.tr('&What\'s This?'),
             QKeySequence(self.tr("Shift+F1")),
             0, self, 'whatsThis')
@@ -2023,7 +2023,7 @@
 
         self.helpviewerAct = E5Action(
             self.tr('Helpviewer'),
-            UI.PixmapCache.getIcon("help.png"),
+            UI.PixmapCache.getIcon("help"),
             self.tr('&Helpviewer...'),
             QKeySequence(self.tr("F1")),
             0, self, 'helpviewer')
@@ -2127,7 +2127,7 @@
         
         self.utDialogAct = E5Action(
             self.tr('Unittest'),
-            UI.PixmapCache.getIcon("unittest.png"),
+            UI.PixmapCache.getIcon("unittest"),
             self.tr('&Unittest...'),
             0, 0, self.utActGrp, 'unittest')
         self.utDialogAct.setStatusTip(self.tr('Start unittest dialog'))
@@ -2141,7 +2141,7 @@
 
         self.utRestartAct = E5Action(
             self.tr('Unittest Restart'),
-            UI.PixmapCache.getIcon("unittestRestart.png"),
+            UI.PixmapCache.getIcon("unittestRestart"),
             self.tr('&Restart Unittest...'),
             0, 0, self.utActGrp, 'unittest_restart')
         self.utRestartAct.setStatusTip(self.tr('Restart last unittest'))
@@ -2155,7 +2155,7 @@
         
         self.utRerunFailedAct = E5Action(
             self.tr('Unittest Rerun Failed'),
-            UI.PixmapCache.getIcon("unittestRerunFailed.png"),
+            UI.PixmapCache.getIcon("unittestRerunFailed"),
             self.tr('Rerun Failed Tests...'),
             0, 0, self.utActGrp, 'unittest_rerun_failed')
         self.utRerunFailedAct.setStatusTip(self.tr(
@@ -2171,7 +2171,7 @@
         
         self.utScriptAct = E5Action(
             self.tr('Unittest Script'),
-            UI.PixmapCache.getIcon("unittestScript.png"),
+            UI.PixmapCache.getIcon("unittestScript"),
             self.tr('Unittest &Script...'),
             0, 0, self.utActGrp, 'unittest_script')
         self.utScriptAct.setStatusTip(self.tr(
@@ -2186,7 +2186,7 @@
         
         self.utProjectAct = E5Action(
             self.tr('Unittest Project'),
-            UI.PixmapCache.getIcon("unittestProject.png"),
+            UI.PixmapCache.getIcon("unittestProject"),
             self.tr('Unittest &Project...'),
             0, 0, self.utActGrp, 'unittest_project')
         self.utProjectAct.setStatusTip(self.tr(
@@ -2213,7 +2213,7 @@
         if os.path.exists(designerExe):
             self.designer4Act = E5Action(
                 self.tr('Qt-Designer'),
-                UI.PixmapCache.getIcon("designer4.png"),
+                UI.PixmapCache.getIcon("designer4"),
                 self.tr('Qt-&Designer...'),
                 0, 0, self, 'qt_designer4')
             self.designer4Act.setStatusTip(self.tr('Start Qt-Designer'))
@@ -2239,7 +2239,7 @@
         if os.path.exists(linguistExe):
             self.linguist4Act = E5Action(
                 self.tr('Qt-Linguist'),
-                UI.PixmapCache.getIcon("linguist4.png"),
+                UI.PixmapCache.getIcon("linguist4"),
                 self.tr('Qt-&Linguist...'),
                 0, 0, self, 'qt_linguist4')
             self.linguist4Act.setStatusTip(self.tr('Start Qt-Linguist'))
@@ -2254,7 +2254,7 @@
     
         self.uipreviewerAct = E5Action(
             self.tr('UI Previewer'),
-            UI.PixmapCache.getIcon("uiPreviewer.png"),
+            UI.PixmapCache.getIcon("uiPreviewer"),
             self.tr('&UI Previewer...'),
             0, 0, self, 'ui_previewer')
         self.uipreviewerAct.setStatusTip(self.tr('Start the UI Previewer'))
@@ -2267,7 +2267,7 @@
         
         self.trpreviewerAct = E5Action(
             self.tr('Translations Previewer'),
-            UI.PixmapCache.getIcon("trPreviewer.png"),
+            UI.PixmapCache.getIcon("trPreviewer"),
             self.tr('&Translations Previewer...'),
             0, 0, self, 'tr_previewer')
         self.trpreviewerAct.setStatusTip(self.tr(
@@ -2281,7 +2281,7 @@
         
         self.diffAct = E5Action(
             self.tr('Compare Files'),
-            UI.PixmapCache.getIcon("diffFiles.png"),
+            UI.PixmapCache.getIcon("diffFiles"),
             self.tr('&Compare Files...'),
             0, 0, self, 'diff_files')
         self.diffAct.setStatusTip(self.tr('Compare two files'))
@@ -2294,7 +2294,7 @@
 
         self.compareAct = E5Action(
             self.tr('Compare Files side by side'),
-            UI.PixmapCache.getIcon("compareFiles.png"),
+            UI.PixmapCache.getIcon("compareFiles"),
             self.tr('Compare &Files side by side...'),
             0, 0, self, 'compare_files')
         self.compareAct.setStatusTip(self.tr('Compare two files'))
@@ -2308,7 +2308,7 @@
 
         self.sqlBrowserAct = E5Action(
             self.tr('SQL Browser'),
-            UI.PixmapCache.getIcon("sqlBrowser.png"),
+            UI.PixmapCache.getIcon("sqlBrowser"),
             self.tr('SQL &Browser...'),
             0, 0, self, 'sql_browser')
         self.sqlBrowserAct.setStatusTip(self.tr('Browse a SQL database'))
@@ -2321,7 +2321,7 @@
 
         self.miniEditorAct = E5Action(
             self.tr('Mini Editor'),
-            UI.PixmapCache.getIcon("editor.png"),
+            UI.PixmapCache.getIcon("editor"),
             self.tr('Mini &Editor...'),
             0, 0, self, 'mini_editor')
         self.miniEditorAct.setStatusTip(self.tr('Mini Editor'))
@@ -2334,7 +2334,7 @@
 
         self.hexEditorAct = E5Action(
             self.tr('Hex Editor'),
-            UI.PixmapCache.getIcon("hexEditor.png"),
+            UI.PixmapCache.getIcon("hexEditor"),
             self.tr('&Hex Editor...'),
             0, 0, self, 'hex_editor')
         self.hexEditorAct.setStatusTip(self.tr(
@@ -2349,7 +2349,7 @@
 
         self.webBrowserAct = E5Action(
             self.tr('eric6 Web Browser'),
-            UI.PixmapCache.getIcon("ericWeb.png"),
+            UI.PixmapCache.getIcon("ericWeb"),
             self.tr('eric6 &Web Browser...'),
             0, 0, self, 'web_browser')
         self.webBrowserAct.setStatusTip(self.tr(
@@ -2365,7 +2365,7 @@
 
         self.iconEditorAct = E5Action(
             self.tr('Icon Editor'),
-            UI.PixmapCache.getIcon("iconEditor.png"),
+            UI.PixmapCache.getIcon("iconEditor"),
             self.tr('&Icon Editor...'),
             0, 0, self, 'icon_editor')
         self.iconEditorAct.setStatusTip(self.tr(
@@ -2379,7 +2379,7 @@
 
         self.snapshotAct = E5Action(
             self.tr('Snapshot'),
-            UI.PixmapCache.getIcon("ericSnap.png"),
+            UI.PixmapCache.getIcon("ericSnap"),
             self.tr('&Snapshot...'),
             0, 0, self, 'snapshot')
         self.snapshotAct.setStatusTip(self.tr(
@@ -2394,7 +2394,7 @@
 
         self.prefAct = E5Action(
             self.tr('Preferences'),
-            UI.PixmapCache.getIcon("configure.png"),
+            UI.PixmapCache.getIcon("configure"),
             self.tr('&Preferences...'),
             0, 0, self, 'preferences')
         self.prefAct.setStatusTip(self.tr(
@@ -2410,7 +2410,7 @@
 
         self.prefExportAct = E5Action(
             self.tr('Export Preferences'),
-            UI.PixmapCache.getIcon("configureExport.png"),
+            UI.PixmapCache.getIcon("configureExport"),
             self.tr('E&xport Preferences...'),
             0, 0, self, 'export_preferences')
         self.prefExportAct.setStatusTip(self.tr(
@@ -2424,7 +2424,7 @@
 
         self.prefImportAct = E5Action(
             self.tr('Import Preferences'),
-            UI.PixmapCache.getIcon("configureImport.png"),
+            UI.PixmapCache.getIcon("configureImport"),
             self.tr('I&mport Preferences...'),
             0, 0, self, 'import_preferences')
         self.prefImportAct.setStatusTip(self.tr(
@@ -2451,7 +2451,7 @@
 
         self.showExternalToolsAct = E5Action(
             self.tr('Show external tools'),
-            UI.PixmapCache.getIcon("showPrograms.png"),
+            UI.PixmapCache.getIcon("showPrograms"),
             self.tr('Show external &tools'),
             0, 0, self, 'show_external_tools')
         self.showExternalToolsAct.setStatusTip(self.tr(
@@ -2467,7 +2467,7 @@
 
         self.configViewProfilesAct = E5Action(
             self.tr('View Profiles'),
-            UI.PixmapCache.getIcon("configureViewProfiles.png"),
+            UI.PixmapCache.getIcon("configureViewProfiles"),
             self.tr('&View Profiles...'),
             0, 0, self, 'view_profiles')
         self.configViewProfilesAct.setStatusTip(self.tr(
@@ -2484,7 +2484,7 @@
 
         self.configToolBarsAct = E5Action(
             self.tr('Toolbars'),
-            UI.PixmapCache.getIcon("toolbarsConfigure.png"),
+            UI.PixmapCache.getIcon("toolbarsConfigure"),
             self.tr('Tool&bars...'),
             0, 0, self, 'configure_toolbars')
         self.configToolBarsAct.setStatusTip(self.tr('Configure toolbars'))
@@ -2499,7 +2499,7 @@
 
         self.shortcutsAct = E5Action(
             self.tr('Keyboard Shortcuts'),
-            UI.PixmapCache.getIcon("configureShortcuts.png"),
+            UI.PixmapCache.getIcon("configureShortcuts"),
             self.tr('Keyboard &Shortcuts...'),
             0, 0, self, 'keyboard_shortcuts')
         self.shortcutsAct.setStatusTip(self.tr(
@@ -2514,7 +2514,7 @@
 
         self.exportShortcutsAct = E5Action(
             self.tr('Export Keyboard Shortcuts'),
-            UI.PixmapCache.getIcon("exportShortcuts.png"),
+            UI.PixmapCache.getIcon("exportShortcuts"),
             self.tr('&Export Keyboard Shortcuts...'),
             0, 0, self, 'export_keyboard_shortcuts')
         self.exportShortcutsAct.setStatusTip(self.tr(
@@ -2528,7 +2528,7 @@
 
         self.importShortcutsAct = E5Action(
             self.tr('Import Keyboard Shortcuts'),
-            UI.PixmapCache.getIcon("importShortcuts.png"),
+            UI.PixmapCache.getIcon("importShortcuts"),
             self.tr('&Import Keyboard Shortcuts...'),
             0, 0, self, 'import_keyboard_shortcuts')
         self.importShortcutsAct.setStatusTip(self.tr(
@@ -2543,7 +2543,7 @@
         if SSL_AVAILABLE:
             self.certificatesAct = E5Action(
                 self.tr('Manage SSL Certificates'),
-                UI.PixmapCache.getIcon("certificates.png"),
+                UI.PixmapCache.getIcon("certificates"),
                 self.tr('Manage SSL Certificates...'),
                 0, 0, self, 'manage_ssl_certificates')
             self.certificatesAct.setStatusTip(self.tr(
@@ -2559,7 +2559,7 @@
         
         self.editMessageFilterAct = E5Action(
             self.tr('Edit Message Filters'),
-            UI.PixmapCache.getIcon("warning.png"),
+            UI.PixmapCache.getIcon("warning"),
             self.tr('Edit Message Filters...'),
             0, 0, self, 'manage_message_filters')
         self.editMessageFilterAct.setStatusTip(self.tr(
@@ -2576,7 +2576,7 @@
 
         self.clearPrivateDataAct = E5Action(
             self.tr('Clear private data'),
-            UI.PixmapCache.getIcon("clearPrivateData.png"),
+            UI.PixmapCache.getIcon("clearPrivateData"),
             self.tr('Clear private data'),
             0, 0,
             self, 'clear_private_data')
@@ -2630,7 +2630,7 @@
         
         self.pluginInfoAct = E5Action(
             self.tr('Plugin Infos'),
-            UI.PixmapCache.getIcon("plugin.png"),
+            UI.PixmapCache.getIcon("plugin"),
             self.tr('&Plugin Infos...'), 0, 0, self, 'plugin_infos')
         self.pluginInfoAct.setStatusTip(self.tr('Show Plugin Infos'))
         self.pluginInfoAct.setWhatsThis(self.tr(
@@ -2643,7 +2643,7 @@
         
         self.pluginInstallAct = E5Action(
             self.tr('Install Plugins'),
-            UI.PixmapCache.getIcon("pluginInstall.png"),
+            UI.PixmapCache.getIcon("pluginInstall"),
             self.tr('&Install Plugins...'),
             0, 0, self, 'plugin_install')
         self.pluginInstallAct.setStatusTip(self.tr('Install Plugins'))
@@ -2656,7 +2656,7 @@
         
         self.pluginDeinstallAct = E5Action(
             self.tr('Uninstall Plugin'),
-            UI.PixmapCache.getIcon("pluginUninstall.png"),
+            UI.PixmapCache.getIcon("pluginUninstall"),
             self.tr('&Uninstall Plugin...'),
             0, 0, self, 'plugin_deinstall')
         self.pluginDeinstallAct.setStatusTip(self.tr('Uninstall Plugin'))
@@ -2669,7 +2669,7 @@
 
         self.pluginRepoAct = E5Action(
             self.tr('Plugin Repository'),
-            UI.PixmapCache.getIcon("pluginRepository.png"),
+            UI.PixmapCache.getIcon("pluginRepository"),
             self.tr('Plugin &Repository...'),
             0, 0, self, 'plugin_repository')
         self.pluginRepoAct.setStatusTip(self.tr(
@@ -2684,7 +2684,7 @@
         
         self.virtualenvManagerAct = E5Action(
             self.tr('Virtualenv Manager'),
-            UI.PixmapCache.getIcon("virtualenv.png"),
+            UI.PixmapCache.getIcon("virtualenv"),
             self.tr('&Virtualenv Manager...'),
             0, 0, self,
             'virtualenv_manager')
@@ -2701,7 +2701,7 @@
         
         self.virtualenvConfigAct = E5Action(
             self.tr('Virtualenv Configurator'),
-            UI.PixmapCache.getIcon("virtualenvConfig.png"),
+            UI.PixmapCache.getIcon("virtualenvConfig"),
             self.tr('Virtualenv &Configurator...'),
             0, 0, self,
             'virtualenv_configurator')
@@ -3034,7 +3034,7 @@
         ##############################################################
         
         pluginsMenu = QMenu(self.tr('P&lugins'), self)
-        pluginsMenu.setIcon(UI.PixmapCache.getIcon("plugin.png"))
+        pluginsMenu.setIcon(UI.PixmapCache.getIcon("plugin"))
         pluginsMenu.setTearOffEnabled(True)
         pluginsMenu.addAction(self.pluginInfoAct)
         pluginsMenu.addAction(self.pluginInstallAct)
@@ -3471,9 +3471,9 @@
         ))
         
         self.sbZoom = E5ZoomWidget(
-            UI.PixmapCache.getPixmap("zoomOut.png"),
-            UI.PixmapCache.getPixmap("zoomIn.png"),
-            UI.PixmapCache.getPixmap("zoomReset.png"),
+            UI.PixmapCache.getPixmap("zoomOut"),
+            UI.PixmapCache.getPixmap("zoomIn"),
+            UI.PixmapCache.getPixmap("zoomReset"),
             self.__statusBar)
         self.__statusBar.addPermanentWidget(self.sbZoom)
         self.sbZoom.setWhatsThis(self.tr(
@@ -7332,7 +7332,7 @@
             parent=self
         )
         self.__versionsDialog.setIconPixmap(
-            UI.PixmapCache.getPixmap("eric.png").scaled(64, 64))
+            UI.PixmapCache.getPixmap("eric").scaled(64, 64))
         self.__versionsDialog.show()
         
     def __sslErrors(self, reply, errors):

eric ide

mercurial