PluginTimeTracker.py

changeset 87
4ac2329b36da
parent 85
246e51cc11ae
child 89
e38b60832145
equal deleted inserted replaced
86:94ee489db94c 87:4ac2329b36da
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the Time Tracker plugin. 7 Module implementing the Time Tracker plugin.
8 """ 8 """
9
10 from __future__ import unicode_literals
11 9
12 import os 10 import os
13 11
14 from PyQt5.QtCore import QObject, QTranslator, QCoreApplication 12 from PyQt5.QtCore import QObject, QTranslator, QCoreApplication
15 13
22 # Start-Of-Header 20 # Start-Of-Header
23 name = "Time Tracker Plugin" 21 name = "Time Tracker Plugin"
24 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 22 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
25 autoactivate = True 23 autoactivate = True
26 deactivateable = True 24 deactivateable = True
27 version = "2.1.0" 25 version = "3.0.0"
28 className = "TimeTrackerPlugin" 26 className = "TimeTrackerPlugin"
29 packageName = "TimeTracker" 27 packageName = "TimeTracker"
30 shortDescription = "Time Tracker to keep track of the project time." 28 shortDescription = "Time Tracker to keep track of the project time."
31 longDescription = \ 29 longDescription = (
32 """This plug-in implements a time tracker to keep track""" \ 30 """This plug-in implements a time tracker to keep track"""
33 """ of the time used for a project. The time can be subdivided""" \ 31 """ of the time used for a project. The time can be subdivided"""
34 """ into tasks.""" 32 """ into tasks."""
33 )
35 needsRestart = False 34 needsRestart = False
36 pyqtApi = 2 35 pyqtApi = 2
37 python2Compatible = True
38 # End-Of-Header 36 # End-Of-Header
39 37
40 error = "" 38 error = ""
41 39
42 timeTrackerPluginObject = None 40 timeTrackerPluginObject = None
49 @param configDlg reference to the configuration dialog 47 @param configDlg reference to the configuration dialog
50 @return reference to the configuration page 48 @return reference to the configuration page
51 """ 49 """
52 global timeTrackerPluginObject 50 global timeTrackerPluginObject
53 from TimeTracker.ConfigurationPage.TimeTrackerPage import TimeTrackerPage 51 from TimeTracker.ConfigurationPage.TimeTrackerPage import TimeTrackerPage
54 page = TimeTrackerPage(timeTrackerPluginObject) 52 return TimeTrackerPage(timeTrackerPluginObject)
55 return page 53
56
57 54
58 def getConfigData(): 55 def getConfigData():
59 """ 56 """
60 Module function returning data as required by the configuration dialog. 57 Module function returning data as required by the configuration dialog.
61 58

eric ide

mercurial