PixmapCache: added a method to remove a path from the pixmap search path.

Tue, 31 Mar 2020 19:15:51 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 31 Mar 2020 19:15:51 +0200
changeset 7488
36ec7469f492
parent 7487
1696bc52c683
child 7489
6543bcd150fd

PixmapCache: added a method to remove a path from the pixmap search path.

eric6/APIs/Python3/eric6.api file | annotate | diff | comparison | revisions
eric6/UI/PixmapCache.py file | annotate | diff | comparison | revisions
--- a/eric6/APIs/Python3/eric6.api	Tue Mar 31 19:07:11 2020 +0200
+++ b/eric6/APIs/Python3/eric6.api	Tue Mar 31 19:15:51 2020 +0200
@@ -4096,6 +4096,7 @@
 eric6.Plugins.VcsPlugins.vcsGit.GitLogBrowserDialog.GitLogBrowserDialog.show?4()
 eric6.Plugins.VcsPlugins.vcsGit.GitLogBrowserDialog.GitLogBrowserDialog.start?4(fn, isFile=False, noEntries=0)
 eric6.Plugins.VcsPlugins.vcsGit.GitLogBrowserDialog.GitLogBrowserDialog?1(vcs, parent=None)
+eric6.Plugins.VcsPlugins.vcsGit.GitLogBrowserDialog.LIGHTCOLORS?7
 eric6.Plugins.VcsPlugins.vcsGit.GitMergeDialog.GitMergeDialog.getParameters?4()
 eric6.Plugins.VcsPlugins.vcsGit.GitMergeDialog.GitMergeDialog.on_branchButton_toggled?4(checked)
 eric6.Plugins.VcsPlugins.vcsGit.GitMergeDialog.GitMergeDialog.on_branchCombo_editTextChanged?4(txt)
@@ -4678,6 +4679,7 @@
 eric6.Plugins.VcsPlugins.vcsMercurial.HgLogBrowserDialog.HgLogBrowserDialog.show?4()
 eric6.Plugins.VcsPlugins.vcsMercurial.HgLogBrowserDialog.HgLogBrowserDialog.start?4(fn, bundle=None, isFile=False, noEntries=0)
 eric6.Plugins.VcsPlugins.vcsMercurial.HgLogBrowserDialog.HgLogBrowserDialog?1(vcs, mode="", parent=None)
+eric6.Plugins.VcsPlugins.vcsMercurial.HgLogBrowserDialog.LIGHTCOLORS?7
 eric6.Plugins.VcsPlugins.vcsMercurial.HgMergeDialog.HgMergeDialog.getParameters?4()
 eric6.Plugins.VcsPlugins.vcsMercurial.HgMergeDialog.HgMergeDialog.on_bookmarkButton_toggled?4(checked)
 eric6.Plugins.VcsPlugins.vcsMercurial.HgMergeDialog.HgMergeDialog.on_bookmarkCombo_editTextChanged?4(txt)
@@ -8428,7 +8430,7 @@
 eric6.Toolbox.SingleApplication.SingleApplicationServer?1(name)
 eric6.Toolbox.Startup.application?7
 eric6.Toolbox.Startup.handleArgs?4(argv, appinfo)
-eric6.Toolbox.Startup.initializeResourceSearchPath?4()
+eric6.Toolbox.Startup.initializeResourceSearchPath?4(application)
 eric6.Toolbox.Startup.loadTranslatorForLocale?4(dirs, tn)
 eric6.Toolbox.Startup.loadTranslators?4(qtTransDir, app, translationFiles=())
 eric6.Toolbox.Startup.loaded_translators?7
@@ -8809,6 +8811,7 @@
 eric6.UI.PixmapCache.PixmapCache.SupportedExtensions?7
 eric6.UI.PixmapCache.PixmapCache.addSearchPath?4(path)
 eric6.UI.PixmapCache.PixmapCache.getPixmap?4(key, size=None)
+eric6.UI.PixmapCache.PixmapCache.removeSearchPath?4(path)
 eric6.UI.PixmapCache.PixmapCache?1()
 eric6.UI.PixmapCache.addSearchPath?4(path, cache=pixCache)
 eric6.UI.PixmapCache.getCombinedIcon?4(keys, size=None, cache=pixCache)
@@ -8816,6 +8819,7 @@
 eric6.UI.PixmapCache.getPixmap?4(key, size=None, cache=pixCache)
 eric6.UI.PixmapCache.getSymlinkIcon?4(key, size=None, cache=pixCache)
 eric6.UI.PixmapCache.pixCache?7
+eric6.UI.PixmapCache.removeSearchPath?4(path, cache=pixCache)
 eric6.UI.Previewer.Previewer.hide?4()
 eric6.UI.Previewer.Previewer.preferencesChanged?4()
 eric6.UI.Previewer.Previewer.show?4()
@@ -11728,6 +11732,7 @@
 install.initGlobals?4()
 install.installApis?7
 install.installEric?4()
+install.isPipOutdated?4()
 install.macAppBundleName?7
 install.macAppBundlePath?7
 install.macPythonExe?7
--- a/eric6/UI/PixmapCache.py	Tue Mar 31 19:07:11 2020 +0200
+++ b/eric6/UI/PixmapCache.py	Tue Mar 31 19:15:51 2020 +0200
@@ -74,11 +74,22 @@
     def addSearchPath(self, path):
         """
         Public method to add a path to the search path.
-
-        @param path path to add (string)
+        
+        @param path path to add
+        @type str
         """
         if path not in self.searchPath:
             self.searchPath.append(path)
+    
+    def removeSearchPath(self, path):
+        """
+        Public method to remove a path from the search path.
+        
+        @param path path to remove
+        @type str
+        """
+        if path in self.searchPath:
+            self.searchPath.remove(path)
 
 pixCache = PixmapCache()
 
@@ -176,7 +187,21 @@
     """
     Module function to add a path to the search path.
 
-    @param path path to add (string)
-    @param cache reference to the pixmap cache object (PixmapCache)
+    @param path path to add
+    @type str
+    @param cache reference to the pixmap cache object
+    @type PixmapCache
     """
     cache.addSearchPath(path)
+
+
+def removeSearchPath(path, cache=pixCache):
+    """
+    Public method to remove a path from the search path.
+    
+    @param path path to remove
+    @type str
+    @param cache reference to the pixmap cache object
+    @type PixmapCache
+    """
+    cache.removeSearchPath(path)

eric ide

mercurial