|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>Plugin_Time_Tracker.TimeTracker.TimeTrackerEntryDialog</title> |
|
6 <style> |
|
7 body { |
|
8 background: #EDECE6; |
|
9 margin: 0em 1em 10em 1em; |
|
10 color: black; |
|
11 } |
|
12 |
|
13 h1 { color: white; background: #85774A; } |
|
14 h2 { color: white; background: #85774A; } |
|
15 h3 { color: white; background: #9D936E; } |
|
16 h4 { color: white; background: #9D936E; } |
|
17 |
|
18 a { color: #BA6D36; } |
|
19 |
|
20 </style> |
|
21 </head> |
|
22 <body><a NAME="top" ID="top"></a> |
|
23 <h1>Plugin_Time_Tracker.TimeTracker.TimeTrackerEntryDialog</h1> |
|
24 <p> |
|
25 Module implementing the time tracker edit dialog. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#TimeTrackerEntryDialog">TimeTrackerEntryDialog</a></td> |
|
35 <td>Class implementing the time tracker edit dialog.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <hr /><hr /> |
|
43 <a NAME="TimeTrackerEntryDialog" ID="TimeTrackerEntryDialog"></a> |
|
44 <h2>TimeTrackerEntryDialog</h2> |
|
45 <p> |
|
46 Class implementing the time tracker edit dialog. |
|
47 </p> |
|
48 <h3>Derived from</h3> |
|
49 QDialog, Ui_TimeTrackerEntryDialog |
|
50 <h3>Class Attributes</h3> |
|
51 <table> |
|
52 <tr><td>None</td></tr> |
|
53 </table> |
|
54 <h3>Class Methods</h3> |
|
55 <table> |
|
56 <tr><td>None</td></tr> |
|
57 </table> |
|
58 <h3>Methods</h3> |
|
59 <table> |
|
60 <tr> |
|
61 <td><a href="#TimeTrackerEntryDialog.__init__">TimeTrackerEntryDialog</a></td> |
|
62 <td>Constructor</td> |
|
63 </tr><tr> |
|
64 <td><a href="#TimeTrackerEntryDialog.__checkOk">__checkOk</a></td> |
|
65 <td>Private slot to set the enabled state of the OK button.</td> |
|
66 </tr><tr> |
|
67 <td><a href="#TimeTrackerEntryDialog.getData">getData</a></td> |
|
68 <td>Public method to get the data.</td> |
|
69 </tr><tr> |
|
70 <td><a href="#TimeTrackerEntryDialog.on_durationSpinBox_valueChanged">on_durationSpinBox_valueChanged</a></td> |
|
71 <td>Private slot handling a change of the duration.</td> |
|
72 </tr><tr> |
|
73 <td><a href="#TimeTrackerEntryDialog.on_startDateTimeEdit_dateTimeChanged">on_startDateTimeEdit_dateTimeChanged</a></td> |
|
74 <td>Private slot handling a change of the start date and time.</td> |
|
75 </tr> |
|
76 </table> |
|
77 <h3>Static Methods</h3> |
|
78 <table> |
|
79 <tr><td>None</td></tr> |
|
80 </table> |
|
81 <a NAME="TimeTrackerEntryDialog.__init__" ID="TimeTrackerEntryDialog.__init__"></a> |
|
82 <h4>TimeTrackerEntryDialog (Constructor)</h4> |
|
83 <b>TimeTrackerEntryDialog</b>(<i>tracker, entry, taskItems, commentItems, parent=None</i>) |
|
84 <p> |
|
85 Constructor |
|
86 </p><dl> |
|
87 <dt><i>tracker</i></dt> |
|
88 <dd> |
|
89 reference to the time tracker (TimeTracker) |
|
90 </dd><dt><i>entry</i></dt> |
|
91 <dd> |
|
92 reference to the time tracker entry (TimeTrackEntry) |
|
93 </dd><dt><i>taskItems</i></dt> |
|
94 <dd> |
|
95 list of task item entries for the |
|
96 task combo box (list of strings) |
|
97 </dd><dt><i>commentItems</i></dt> |
|
98 <dd> |
|
99 list of comment item entries for the |
|
100 comment combo box (list of strings) |
|
101 </dd><dt><i>parent</i></dt> |
|
102 <dd> |
|
103 reference to the parent widget (QWidget) |
|
104 </dd> |
|
105 </dl><a NAME="TimeTrackerEntryDialog.__checkOk" ID="TimeTrackerEntryDialog.__checkOk"></a> |
|
106 <h4>TimeTrackerEntryDialog.__checkOk</h4> |
|
107 <b>__checkOk</b>(<i></i>) |
|
108 <p> |
|
109 Private slot to set the enabled state of the OK button. |
|
110 </p><a NAME="TimeTrackerEntryDialog.getData" ID="TimeTrackerEntryDialog.getData"></a> |
|
111 <h4>TimeTrackerEntryDialog.getData</h4> |
|
112 <b>getData</b>(<i></i>) |
|
113 <p> |
|
114 Public method to get the data. |
|
115 </p><dl> |
|
116 <dt>Returns:</dt> |
|
117 <dd> |
|
118 tuple with start date and time, duration, task description |
|
119 and comment (QDateTime, integer, string, string) |
|
120 </dd> |
|
121 </dl><a NAME="TimeTrackerEntryDialog.on_durationSpinBox_valueChanged" ID="TimeTrackerEntryDialog.on_durationSpinBox_valueChanged"></a> |
|
122 <h4>TimeTrackerEntryDialog.on_durationSpinBox_valueChanged</h4> |
|
123 <b>on_durationSpinBox_valueChanged</b>(<i>p0</i>) |
|
124 <p> |
|
125 Private slot handling a change of the duration. |
|
126 </p><a NAME="TimeTrackerEntryDialog.on_startDateTimeEdit_dateTimeChanged" ID="TimeTrackerEntryDialog.on_startDateTimeEdit_dateTimeChanged"></a> |
|
127 <h4>TimeTrackerEntryDialog.on_startDateTimeEdit_dateTimeChanged</h4> |
|
128 <b>on_startDateTimeEdit_dateTimeChanged</b>(<i>date</i>) |
|
129 <p> |
|
130 Private slot handling a change of the start date and time. |
|
131 </p> |
|
132 <div align="right"><a href="#top">Up</a></div> |
|
133 <hr /> |
|
134 </body></html> |