Added a few TODO markers. eric7

Sun, 11 Dec 2022 15:49:39 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 11 Dec 2022 15:49:39 +0100
branch
eric7
changeset 9609
c2f9c10c47cc
parent 9608
8dcfd48355df
child 9610
b45bccbdf331

Added a few TODO markers.

src/eric7/QScintilla/Lexers/__init__.py file | annotate | diff | comparison | revisions
src/eric7/UI/Browser.py file | annotate | diff | comparison | revisions
src/eric7/UI/BrowserModel.py file | annotate | diff | comparison | revisions
src/eric7/Utilities/ClassBrowsers/__init__.py file | annotate | diff | comparison | revisions
diff -r 8dcfd48355df -r c2f9c10c47cc src/eric7/QScintilla/Lexers/__init__.py
--- a/src/eric7/QScintilla/Lexers/__init__.py	Sun Dec 11 15:49:23 2022 +0100
+++ b/src/eric7/QScintilla/Lexers/__init__.py	Sun Dec 11 15:49:39 2022 +0100
@@ -7,6 +7,8 @@
 Package implementing lexers for the various supported programming languages.
 """
 
+# TODO: move IDL and Protobuf stuff to the plugins
+
 import contextlib
 import importlib
 
diff -r 8dcfd48355df -r c2f9c10c47cc src/eric7/UI/Browser.py
--- a/src/eric7/UI/Browser.py	Sun Dec 11 15:49:23 2022 +0100
+++ b/src/eric7/UI/Browser.py	Sun Dec 11 15:49:39 2022 +0100
@@ -519,9 +519,11 @@
                 if isinstance(itm, BrowserFileItem):
                     if (
                         itm.isPython3File()
+                        or itm.isResourcesFile()
+                        # TODO: delegate to the plugin
                         or itm.isIdlFile()
+                        # TODO: delegate to the plugin
                         or itm.isProtobufFile()
-                        or itm.isResourcesFile()
                     ):
                         self.sourceFile[str].emit(itm.fileName())
                     elif itm.isRubyFile():
diff -r 8dcfd48355df -r c2f9c10c47cc src/eric7/UI/BrowserModel.py
--- a/src/eric7/UI/BrowserModel.py	Sun Dec 11 15:49:23 2022 +0100
+++ b/src/eric7/UI/BrowserModel.py	Sun Dec 11 15:49:39 2022 +0100
@@ -1195,11 +1195,13 @@
             pixName = "fileProject"
         elif self.isMultiProjectFile():
             pixName = "fileMultiProject"
+        # TODO: delegate to the plugin
         elif self.isIdlFile():
             pixName = "fileIDL"
             self._populated = False
             self._lazyPopulation = True
             self._moduleName = os.path.basename(finfo)
+        # TODO: delegate to the plugin
         elif self.isProtobufFile():
             pixName = "protobuf"
             self._populated = False
@@ -1239,7 +1241,9 @@
         if (
             self.isPython3File()
             or self.isRubyFile()
+            # TODO: delegate to the plugin
             or self.isIdlFile()
+            # TODO: delegate to the plugin
             or self.isProtobufFile()
         ):
             self._dirName = os.path.dirname(finfo)
@@ -1368,6 +1372,7 @@
         """
         return self.fileext in (".emj", ".e4m", ".e5m")
 
+    # TODO: delegate to the plugin
     def isIdlFile(self):
         """
         Public method to check, if this file is a CORBA IDL file.
@@ -1377,6 +1382,7 @@
         """
         return self.fileext == ".idl"
 
+    # TODO: delegate to the plugin
     def isProtobufFile(self):
         """
         Public method to check, if this file is a Google Protocol Buffer file.
diff -r 8dcfd48355df -r c2f9c10c47cc src/eric7/Utilities/ClassBrowsers/__init__.py
--- a/src/eric7/Utilities/ClassBrowsers/__init__.py	Sun Dec 11 15:49:23 2022 +0100
+++ b/src/eric7/Utilities/ClassBrowsers/__init__.py	Sun Dec 11 15:49:39 2022 +0100
@@ -18,6 +18,8 @@
 </ul>
 """
 
+# TODO: move the IDL and Protobuf class browsers to the plugins.
+
 import importlib
 import os
 

eric ide

mercurial