Shortcut to variables type filter dialog added to context menu. Variables Viewer

Wed, 15 May 2019 22:26:22 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Wed, 15 May 2019 22:26:22 +0200
branch
Variables Viewer
changeset 7013
a3904952065b
parent 7012
cc3f83d1a605
child 7014
61172a5bc172
child 7018
6512c2183bf7

Shortcut to variables type filter dialog added to context menu.

eric6/Debugger/VariablesViewer.py file | annotate | diff | comparison | revisions
--- a/eric6/Debugger/VariablesViewer.py	Mon May 13 22:29:15 2019 +0200
+++ b/eric6/Debugger/VariablesViewer.py	Wed May 15 22:26:22 2019 +0200
@@ -1080,11 +1080,17 @@
         self.menu.addAction(self.tr("Refresh"), self.__refreshView)
         self.menu.addSeparator()
         self.menu.addAction(self.tr("Configure..."), self.__configure)
+        self.menu.addAction(
+            QCoreApplication.translate('DebugUI', 'Varia&bles Type Filter...'),
+            self.__configureFilter)
         
         self.backMenu = QMenu()
         self.backMenu.addAction(self.tr("Refresh"), self.__refreshView)
         self.backMenu.addSeparator()
         self.backMenu.addAction(self.tr("Configure..."), self.__configure)
+        self.backMenu.addAction(
+            QCoreApplication.translate('DebugUI', 'Varia&bles Type Filter...'),
+            self.__configureFilter)
     
     def __showContextMenu(self, coord):
         """
@@ -1192,7 +1198,12 @@
         """
         e5App().getObject("UserInterface")\
             .showPreferences("debuggerGeneralPage")
-
+    
+    def __configureFilter(self):
+        """
+        Private method to open the variables filter dialog.
+        """
+        e5App().getObject("DebugUI").dbgFilterAct.triggered.emit()
 
 #
 # eflag: noqa = M822

eric ide

mercurial