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

Fri, 04 Jun 2021 16:40:54 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 04 Jun 2021 16:40:54 +0200
branch
eric7
changeset 98
693e42176007
parent 95
7449695cf655
child 106
6deb942739dc
permissions
-rw-r--r--

Ported the plug-in to PyQt6 for eric7.

<!DOCTYPE html>
<html><head>
<title>Plugin_Time_Tracker.TimeTracker.TimeTrackerEntryDialog</title>
<meta charset="UTF-8">
<style>
body {
    background: #EDECE6;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #85774A; }
h2 { color: white; background: #85774A; }
h3 { color: white; background: #9D936E; }
h4 { color: white; background: #9D936E; }
    
a { color: #BA6D36; }

</style>
</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