Ported to PyQt5 and eric6.

Sat, 12 Jul 2014 14:15:47 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 12 Jul 2014 14:15:47 +0200
changeset 28
46e76a5913cf
parent 26
67ad2354234f
child 29
7c3be8fbe24b

Ported to PyQt5 and eric6.

.hgignore file | annotate | diff | comparison | revisions
ChangeLog file | annotate | diff | comparison | revisions
PluginPrintRemover.py file | annotate | diff | comparison | revisions
PluginPrintRemover.zip file | annotate | diff | comparison | revisions
PrintRemover.e4p file | annotate | diff | comparison | revisions
PrintRemover/ConfigurationPage/PrintRemoverPage.py file | annotate | diff | comparison | revisions
PrintRemover/i18n/printremover_de.ts file | annotate | diff | comparison | revisions
PrintRemover/i18n/printremover_en.ts file | annotate | diff | comparison | revisions
--- a/.hgignore	Sat Apr 26 15:50:02 2014 +0200
+++ b/.hgignore	Sat Jul 12 14:15:47 2014 +0200
@@ -1,3 +1,5 @@
+glob:.eric6project
+glob:_eric6project
 glob:.eric5project
 glob:_eric5project
 glob:.eric4project
--- a/ChangeLog	Sat Apr 26 15:50:02 2014 +0200
+++ b/ChangeLog	Sat Jul 12 14:15:47 2014 +0200
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 2.0.0:
+- ported for eric6 using PyQt5
+
 Version 1.0.0:
 - first stable release
 
--- a/PluginPrintRemover.py	Sat Apr 26 15:50:02 2014 +0200
+++ b/PluginPrintRemover.py	Sat Jul 12 14:15:47 2014 +0200
@@ -11,8 +11,8 @@
 
 import os
 
-from PyQt4.QtCore import QObject, QTranslator, QCoreApplication
-from PyQt4.QtGui import QAction, QMenu
+from PyQt5.QtCore import QObject, QTranslator, QCoreApplication
+from PyQt5.QtWidgets import QAction, QMenu
 
 from E5Gui.E5Application import e5App
 
@@ -23,7 +23,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "1.0.0"
+version = "2.0.0"
 className = "PrintRemoverPlugin"
 packageName = "PrintRemover"
 shortDescription = "Remove print() like debug statements."
Binary file PluginPrintRemover.zip has changed
--- a/PrintRemover.e4p	Sat Apr 26 15:50:02 2014 +0200
+++ b/PrintRemover.e4p	Sat Jul 12 14:15:47 2014 +0200
@@ -1,14 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE Project SYSTEM "Project-5.1.dtd">
-<!-- eric5 project file for project PrintRemover -->
+<!-- eric6 project file for project PrintRemover -->
 <!-- Copyright (C) 2014 Detlev Offenbach, detlev@die-offenbachs.de -->
 <Project version="5.1">
   <Language>en_US</Language>
   <Hash>d994091d1e81ad5afcdcbc00ecea86f23163c696</Hash>
   <ProgLanguage mixed="0">Python3</ProgLanguage>
-  <ProjectType>E4Plugin</ProjectType>
+  <ProjectType>E6Plugin</ProjectType>
   <Description>Plug-in to remove lines starting with a configurable string. Usually this is used to remove print() kind debug statements.</Description>
-  <Version>0.x</Version>
+  <Version>2.x</Version>
   <Author>Detlev Offenbach</Author>
   <Email>detlev@die-offenbachs.de</Email>
   <TranslationPattern>PrintRemover/i18n/printremover_%language%.ts</TranslationPattern>
@@ -177,7 +177,7 @@
               <string>cssFile</string>
             </key>
             <value>
-              <string>%PYTHON%/eric5/CSSs/default.css</string>
+              <string>%PYTHON%/eric6/CSSs/default.css</string>
             </value>
             <key>
               <string>ignoreDirectories</string>
@@ -189,6 +189,8 @@
                 <string>.hg</string>
                 <string>_ropeproject</string>
                 <string>_eric5project</string>
+                <string>.eric6project</string>
+                <string>_eric6project</string>
               </list>
             </value>
             <key>
--- a/PrintRemover/ConfigurationPage/PrintRemoverPage.py	Sat Apr 26 15:50:02 2014 +0200
+++ b/PrintRemover/ConfigurationPage/PrintRemoverPage.py	Sat Jul 12 14:15:47 2014 +0200
@@ -11,8 +11,8 @@
 
 import os
 
-from PyQt4.QtCore import pyqtSlot
-from PyQt4.QtGui import QListWidgetItem, QInputDialog, QLineEdit
+from PyQt5.QtCore import pyqtSlot
+from PyQt5.QtWidgets import QListWidgetItem, QInputDialog, QLineEdit
 
 from Preferences.ConfigurationPages.ConfigurationPageBase import \
     ConfigurationPageBase
--- a/PrintRemover/i18n/printremover_de.ts	Sat Apr 26 15:50:02 2014 +0200
+++ b/PrintRemover/i18n/printremover_de.ts	Sat Jul 12 14:15:47 2014 +0200
@@ -13,7 +13,7 @@
         <translation>Zeilenanfangsmuster:</translation>
     </message>
     <message>
-        <location filename="../../PrintRemover/ConfigurationPage/PrintRemoverPage.py" line="112"/>
+        <location filename="../../PrintRemover/ConfigurationPage/PrintRemoverPage.py" line="111"/>
         <source>Line Start Pattern</source>
         <translation>Zeilenanfangsmuster</translation>
     </message>
@@ -48,12 +48,12 @@
         <translation>Drücken, um den ausgewählten Eintrag nach unten zu verschieben</translation>
     </message>
     <message>
-        <location filename="../../PrintRemover/ConfigurationPage/PrintRemoverPage.py" line="135"/>
+        <location filename="../../PrintRemover/ConfigurationPage/PrintRemoverPage.py" line="133"/>
         <source>--Separator--</source>
         <translation>--Trennlinie--</translation>
     </message>
     <message>
-        <location filename="../../PrintRemover/ConfigurationPage/PrintRemoverPage.py" line="112"/>
+        <location filename="../../PrintRemover/ConfigurationPage/PrintRemoverPage.py" line="111"/>
         <source>Enter a line start pattern:</source>
         <translation>Gib ein Zeilenanfangsmuster ein:</translation>
     </message>
--- a/PrintRemover/i18n/printremover_en.ts	Sat Apr 26 15:50:02 2014 +0200
+++ b/PrintRemover/i18n/printremover_en.ts	Sat Jul 12 14:15:47 2014 +0200
@@ -43,17 +43,17 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../../PrintRemover/ConfigurationPage/PrintRemoverPage.py" line="135"/>
+        <location filename="../../PrintRemover/ConfigurationPage/PrintRemoverPage.py" line="133"/>
         <source>--Separator--</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../../PrintRemover/ConfigurationPage/PrintRemoverPage.py" line="112"/>
+        <location filename="../../PrintRemover/ConfigurationPage/PrintRemoverPage.py" line="111"/>
         <source>Line Start Pattern</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../../PrintRemover/ConfigurationPage/PrintRemoverPage.py" line="112"/>
+        <location filename="../../PrintRemover/ConfigurationPage/PrintRemoverPage.py" line="111"/>
         <source>Enter a line start pattern:</source>
         <translation type="unfinished"></translation>
     </message>

eric ide

mercurial