Plugins/PluginEricdoc.py

changeset 438
f62a3f9d2e28
parent 416
9ca4a5979826
child 453
a81097a85889
diff -r 6a62ad60fa99 -r f62a3f9d2e28 Plugins/PluginEricdoc.py
--- a/Plugins/PluginEricdoc.py	Sat Jul 31 12:17:49 2010 +0200
+++ b/Plugins/PluginEricdoc.py	Sat Jul 31 12:20:32 2010 +0200
@@ -40,18 +40,20 @@
 
 error = ""
 
-def exeDisplayData():
+def exeDisplayDataList():
     """
     Public method to support the display of some executable info.
     
     @return dictionary containing the data to query the presence of
         the executable
     """
+    dataList = []
+    
+    # 1. eric5-doc
     exe = 'eric5-doc'
     if Utilities.isWindowsPlatform():
         exe = os.path.join(getConfig("bindir"), exe +'.bat')
-    
-    data = {
+    dataList.append({
         "programEntry"      : True, 
         "header"            : QApplication.translate("EricdocPlugin",
                                 "Eric5 Documentation Generator"), 
@@ -61,9 +63,41 @@
         "versionPosition"   : -3, 
         "version"           : "", 
         "versionCleanup"    : None, 
-    }
+    })
+    
+    # 2. Qt Help Generator
+    exe = 'qhelpgenerator'
+    if Utilities.isWindowsPlatform():
+        exe += '.exe'
+    dataList.append({
+        "programEntry"      : True, 
+        "header"            : QApplication.translate("EricdocPlugin",
+                                "Qt4 Help Tools"), 
+        "exe"               : exe, 
+        "versionCommand"    : '-v', 
+        "versionStartsWith" : 'Qt', 
+        "versionPosition"   : -1, 
+        "version"           : "", 
+        "versionCleanup"    : (0, -1), 
+    })
     
-    return data
+    # 3. Qt Collection Generator
+    exe = 'qcollectiongenerator'
+    if Utilities.isWindowsPlatform():
+        exe += '.exe'
+    dataList.append({
+        "programEntry"      : True, 
+        "header"            : QApplication.translate("EricdocPlugin",
+                                "Qt4 Help Tools"), 
+        "exe"               : exe, 
+        "versionCommand"    : '-v', 
+        "versionStartsWith" : 'Qt', 
+        "versionPosition"   : -1, 
+        "version"           : "", 
+        "versionCleanup"    : (0, -1), 
+    })
+    
+    return dataList
 
 class EricdocPlugin(QObject):
     """

eric ide

mercurial