TimeTracker/Documentation/source/Plugin_Time_Tracker.TimeTracker.TimeTrackerEntryDialog.html

Sat, 06 Jan 2024 13:06:58 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 06 Jan 2024 13:06:58 +0100
branch
eric7
changeset 116
e8b0641eba15
parent 106
6deb942739dc
permissions
-rw-r--r--

Adapted code to eric 24.2 and newer.

<!DOCTYPE html>
<html><head>
<title>Plugin_Time_Tracker.TimeTracker.TimeTrackerEntryDialog</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>Plugin_Time_Tracker.TimeTracker.TimeTrackerEntryDialog</h1>
<p>
Module implementing the time tracker edit dialog.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#TimeTrackerEntryDialog">TimeTrackerEntryDialog</a></td>
<td>Class implementing the time tracker edit dialog.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>

<hr />
<hr />
<a NAME="TimeTrackerEntryDialog" ID="TimeTrackerEntryDialog"></a>
<h2>TimeTrackerEntryDialog</h2>
<p>
    Class implementing the time tracker edit dialog.
</p>

<h3>Derived from</h3>
QDialog, Ui_TimeTrackerEntryDialog
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Methods</h3>
<table>
<tr>
<td><a href="#TimeTrackerEntryDialog.__init__">TimeTrackerEntryDialog</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#TimeTrackerEntryDialog.__checkOk">__checkOk</a></td>
<td>Private slot to set the enabled state of the OK button.</td>
</tr>
<tr>
<td><a href="#TimeTrackerEntryDialog.getData">getData</a></td>
<td>Public method to get the data.</td>
</tr>
<tr>
<td><a href="#TimeTrackerEntryDialog.on_durationSpinBox_valueChanged">on_durationSpinBox_valueChanged</a></td>
<td>Private slot handling a change of the duration.</td>
</tr>
<tr>
<td><a href="#TimeTrackerEntryDialog.on_startDateTimeEdit_dateTimeChanged">on_startDateTimeEdit_dateTimeChanged</a></td>
<td>Private slot handling a change of the start date and time.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="TimeTrackerEntryDialog.__init__" ID="TimeTrackerEntryDialog.__init__"></a>
<h4>TimeTrackerEntryDialog (Constructor)</h4>
<b>TimeTrackerEntryDialog</b>(<i>tracker, entry, taskItems, commentItems, parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>tracker</i> (TimeTracker)</dt>
<dd>
reference to the time tracker
</dd>
<dt><i>entry</i> (TimeTrackEntry)</dt>
<dd>
reference to the time tracker entry
</dd>
<dt><i>taskItems</i> (list of str)</dt>
<dd>
list of task item entries for the
            task combo box
</dd>
<dt><i>commentItems</i> (list of str)</dt>
<dd>
list of comment item entries for the
            comment combo box
</dd>
<dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent widget
</dd>
</dl>
<a NAME="TimeTrackerEntryDialog.__checkOk" ID="TimeTrackerEntryDialog.__checkOk"></a>
<h4>TimeTrackerEntryDialog.__checkOk</h4>
<b>__checkOk</b>(<i></i>)
<p>
        Private slot to set the enabled state of the OK button.
</p>

<a NAME="TimeTrackerEntryDialog.getData" ID="TimeTrackerEntryDialog.getData"></a>
<h4>TimeTrackerEntryDialog.getData</h4>
<b>getData</b>(<i></i>)
<p>
        Public method to get the data.
</p>

<dl>
<dt>Return:</dt>
<dd>
tuple with start date and time, duration, task description
            and comment
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
tuple of (QDateTime, int, str, str)
</dd>
</dl>
<a NAME="TimeTrackerEntryDialog.on_durationSpinBox_valueChanged" ID="TimeTrackerEntryDialog.on_durationSpinBox_valueChanged"></a>
<h4>TimeTrackerEntryDialog.on_durationSpinBox_valueChanged</h4>
<b>on_durationSpinBox_valueChanged</b>(<i>value</i>)
<p>
        Private slot handling a change of the duration.
</p>

<dl>

<dt><i>value</i> (int)</dt>
<dd>
value of the duration spin box
</dd>
</dl>
<a NAME="TimeTrackerEntryDialog.on_startDateTimeEdit_dateTimeChanged" ID="TimeTrackerEntryDialog.on_startDateTimeEdit_dateTimeChanged"></a>
<h4>TimeTrackerEntryDialog.on_startDateTimeEdit_dateTimeChanged</h4>
<b>on_startDateTimeEdit_dateTimeChanged</b>(<i>date</i>)
<p>
        Private slot handling a change of the start date and time.
</p>

<dl>

<dt><i>date</i> (QDateTime)</dt>
<dd>
start date and time
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial