Sat, 06 Jan 2024 13:06:58 +0100
Adapted code to eric 24.2 and newer.
--- a/ChangeLog Sat Dec 23 19:35:14 2023 +0100 +++ b/ChangeLog Sat Jan 06 13:06:58 2024 +0100 @@ -1,5 +1,8 @@ ChangeLog --------- +Version 10.3.0 +- adapted code to eric 24.2 and newer + Version 10.2.0 - adapted some import statements to eric 23.1 and newer
--- a/PluginTimeTracker.py Sat Dec 23 19:35:14 2023 +0100 +++ b/PluginTimeTracker.py Sat Jan 06 13:06:58 2024 +0100 @@ -20,7 +20,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "10.2.0" +version = "10.3.0" className = "TimeTrackerPlugin" packageName = "TimeTracker" shortDescription = "Time Tracker to keep track of the project time."
--- a/TimeTracker/Documentation/source/Plugin_Time_Tracker.PluginTimeTracker.html Sat Dec 23 19:35:14 2023 +0100 +++ b/TimeTracker/Documentation/source/Plugin_Time_Tracker.PluginTimeTracker.html Sat Jan 06 13:06:58 2024 +0100 @@ -7,28 +7,37 @@ <body> <a NAME="top" ID="top"></a> <h1>Plugin_Time_Tracker.PluginTimeTracker</h1> - <p> Module implementing the Time Tracker plugin. </p> + <h3>Global Attributes</h3> - <table> -<tr><td>author</td></tr><tr><td>autoactivate</td></tr><tr><td>className</td></tr><tr><td>deactivateable</td></tr><tr><td>error</td></tr><tr><td>longDescription</td></tr><tr><td>name</td></tr><tr><td>needsRestart</td></tr><tr><td>packageName</td></tr><tr><td>pyqtApi</td></tr><tr><td>shortDescription</td></tr><tr><td>timeTrackerPluginObject</td></tr><tr><td>version</td></tr> +<tr><td>author</td></tr> +<tr><td>autoactivate</td></tr> +<tr><td>className</td></tr> +<tr><td>deactivateable</td></tr> +<tr><td>error</td></tr> +<tr><td>longDescription</td></tr> +<tr><td>name</td></tr> +<tr><td>needsRestart</td></tr> +<tr><td>packageName</td></tr> +<tr><td>pyqtApi</td></tr> +<tr><td>shortDescription</td></tr> +<tr><td>timeTrackerPluginObject</td></tr> +<tr><td>version</td></tr> </table> + <h3>Classes</h3> - <table> - <tr> <td><a href="#TimeTrackerPlugin">TimeTrackerPlugin</a></td> <td>Class implementing the Eric assistant plugin.</td> </tr> </table> + <h3>Functions</h3> - <table> - <tr> <td><a href="#createTimeTrackerPage">createTimeTrackerPage</a></td> <td>Module function to create the Time Tracker configuration page.</td> @@ -42,30 +51,29 @@ <td>Module function to prepare for an uninstallation.</td> </tr> </table> + <hr /> <hr /> <a NAME="TimeTrackerPlugin" ID="TimeTrackerPlugin"></a> <h2>TimeTrackerPlugin</h2> - <p> Class implementing the Eric assistant plugin. </p> + <h3>Derived from</h3> QObject <h3>Class Attributes</h3> - <table> <tr><td>PreferencesKey</td></tr> </table> + <h3>Class Methods</h3> - <table> <tr><td>None</td></tr> </table> + <h3>Methods</h3> - <table> - <tr> <td><a href="#TimeTrackerPlugin.__init__">TimeTrackerPlugin</a></td> <td>Constructor</td> @@ -95,19 +103,20 @@ <td>Public method to store the various settings.</td> </tr> </table> + <h3>Static Methods</h3> - <table> <tr><td>None</td></tr> </table> + <a NAME="TimeTrackerPlugin.__init__" ID="TimeTrackerPlugin.__init__"></a> <h4>TimeTrackerPlugin (Constructor)</h4> <b>TimeTrackerPlugin</b>(<i>ui</i>) - <p> Constructor </p> + <dl> <dt><i>ui</i> (UserInterface)</dt> @@ -118,24 +127,24 @@ <a NAME="TimeTrackerPlugin.__initialize" ID="TimeTrackerPlugin.__initialize"></a> <h4>TimeTrackerPlugin.__initialize</h4> <b>__initialize</b>(<i></i>) - <p> Private slot to (re)initialize the plugin. </p> + <a NAME="TimeTrackerPlugin.__loadTranslator" ID="TimeTrackerPlugin.__loadTranslator"></a> <h4>TimeTrackerPlugin.__loadTranslator</h4> <b>__loadTranslator</b>(<i></i>) - <p> Private method to load the translation file. </p> + <a NAME="TimeTrackerPlugin.activate" ID="TimeTrackerPlugin.activate"></a> <h4>TimeTrackerPlugin.activate</h4> <b>activate</b>(<i></i>) - <p> Public method to activate this plugin. </p> + <dl> <dt>Return:</dt> <dd> @@ -151,17 +160,17 @@ <a NAME="TimeTrackerPlugin.deactivate" ID="TimeTrackerPlugin.deactivate"></a> <h4>TimeTrackerPlugin.deactivate</h4> <b>deactivate</b>(<i></i>) - <p> Public method to deactivate this plugin. </p> + <a NAME="TimeTrackerPlugin.getPreferences" ID="TimeTrackerPlugin.getPreferences"></a> <h4>TimeTrackerPlugin.getPreferences</h4> <b>getPreferences</b>(<i>key</i>) - <p> Public method to retrieve the various settings. </p> + <dl> <dt><i>key</i> (str)</dt> @@ -184,10 +193,10 @@ <a NAME="TimeTrackerPlugin.setPreferences" ID="TimeTrackerPlugin.setPreferences"></a> <h4>TimeTrackerPlugin.setPreferences</h4> <b>setPreferences</b>(<i>key, value</i>) - <p> Public method to store the various settings. </p> + <dl> <dt><i>key</i> (str)</dt> @@ -205,10 +214,10 @@ <a NAME="createTimeTrackerPage" ID="createTimeTrackerPage"></a> <h2>createTimeTrackerPage</h2> <b>createTimeTrackerPage</b>(<i>configDlg</i>) - <p> Module function to create the Time Tracker configuration page. </p> + <dl> <dt><i>configDlg</i> (ConfigurationWidget)</dt> @@ -234,10 +243,10 @@ <a NAME="getConfigData" ID="getConfigData"></a> <h2>getConfigData</h2> <b>getConfigData</b>(<i></i>) - <p> Module function returning data as required by the configuration dialog. </p> + <dl> <dt>Return:</dt> <dd> @@ -256,10 +265,10 @@ <a NAME="prepareUninstall" ID="prepareUninstall"></a> <h2>prepareUninstall</h2> <b>prepareUninstall</b>(<i></i>) - <p> Module function to prepare for an uninstallation. </p> + <div align="right"><a href="#top">Up</a></div> <hr /> -</body></html> \ No newline at end of file +</body></html>
--- a/TimeTracker/Documentation/source/Plugin_Time_Tracker.TimeTracker.ConfigurationPage.TimeTrackerPage.html Sat Dec 23 19:35:14 2023 +0100 +++ b/TimeTracker/Documentation/source/Plugin_Time_Tracker.TimeTracker.ConfigurationPage.TimeTrackerPage.html Sat Jan 06 13:06:58 2024 +0100 @@ -7,53 +7,50 @@ <body> <a NAME="top" ID="top"></a> <h1>Plugin_Time_Tracker.TimeTracker.ConfigurationPage.TimeTrackerPage</h1> - <p> Module implementing the Time Tracker configuration page. </p> + <h3>Global Attributes</h3> - <table> <tr><td>None</td></tr> </table> + <h3>Classes</h3> - <table> - <tr> <td><a href="#TimeTrackerPage">TimeTrackerPage</a></td> <td>Class implementing the Time Tracker configuration page.</td> </tr> </table> + <h3>Functions</h3> - <table> <tr><td>None</td></tr> </table> + <hr /> <hr /> <a NAME="TimeTrackerPage" ID="TimeTrackerPage"></a> <h2>TimeTrackerPage</h2> - <p> Class implementing the Time Tracker configuration page. </p> + <h3>Derived from</h3> ConfigurationPageBase, Ui_TimeTrackerPage <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="#TimeTrackerPage.__init__">TimeTrackerPage</a></td> <td>Constructor</td> @@ -63,19 +60,20 @@ <td>Public slot to save the Time Tracker configuration.</td> </tr> </table> + <h3>Static Methods</h3> - <table> <tr><td>None</td></tr> </table> + <a NAME="TimeTrackerPage.__init__" ID="TimeTrackerPage.__init__"></a> <h4>TimeTrackerPage (Constructor)</h4> <b>TimeTrackerPage</b>(<i>plugin</i>) - <p> Constructor </p> + <dl> <dt><i>plugin</i> (TimeTrackerPlugin)</dt> @@ -86,10 +84,10 @@ <a NAME="TimeTrackerPage.save" ID="TimeTrackerPage.save"></a> <h4>TimeTrackerPage.save</h4> <b>save</b>(<i></i>) - <p> Public slot to save the Time Tracker configuration. </p> + <div align="right"><a href="#top">Up</a></div> <hr /> -</body></html> \ No newline at end of file +</body></html>
--- a/TimeTracker/Documentation/source/Plugin_Time_Tracker.TimeTracker.TimeTrackEntry.html Sat Dec 23 19:35:14 2023 +0100 +++ b/TimeTracker/Documentation/source/Plugin_Time_Tracker.TimeTracker.TimeTrackEntry.html Sat Jan 06 13:06:58 2024 +0100 @@ -7,53 +7,51 @@ <body> <a NAME="top" ID="top"></a> <h1>Plugin_Time_Tracker.TimeTracker.TimeTrackEntry</h1> - <p> Module implementing the time track entry class. </p> + <h3>Global Attributes</h3> - <table> <tr><td>None</td></tr> </table> + <h3>Classes</h3> - <table> - <tr> <td><a href="#TimeTrackEntry">TimeTrackEntry</a></td> <td>Class implementing the time track entry.</td> </tr> </table> + <h3>Functions</h3> - <table> <tr><td>None</td></tr> </table> + <hr /> <hr /> <a NAME="TimeTrackEntry" ID="TimeTrackEntry"></a> <h2>TimeTrackEntry</h2> - <p> Class implementing the time track entry. </p> + <h3>Derived from</h3> None <h3>Class Attributes</h3> +<table> +<tr><td>LineMarker</td></tr> +<tr><td>Separator</td></tr> +</table> -<table> -<tr><td>LineMarker</td></tr><tr><td>Separator</td></tr> -</table> <h3>Class Methods</h3> - <table> <tr><td>None</td></tr> </table> + <h3>Methods</h3> - <table> - <tr> <td><a href="#TimeTrackEntry.__init__">TimeTrackEntry</a></td> <td>Constructor</td> @@ -151,19 +149,20 @@ <td>Public method to convert the time track entry into a dictionary.</td> </tr> </table> + <h3>Static Methods</h3> - <table> <tr><td>None</td></tr> </table> + <a NAME="TimeTrackEntry.__init__" ID="TimeTrackEntry.__init__"></a> <h4>TimeTrackEntry (Constructor)</h4> <b>TimeTrackEntry</b>(<i>plugin</i>) - <p> Constructor </p> + <dl> <dt><i>plugin</i> (TimeTrackerPlugin)</dt> @@ -174,10 +173,10 @@ <a NAME="TimeTrackEntry.__calculateDuration" ID="TimeTrackEntry.__calculateDuration"></a> <h4>TimeTrackEntry.__calculateDuration</h4> <b>__calculateDuration</b>(<i>start, stop</i>) - <p> Private method to calculate the duration in minutes. </p> + <dl> <dt><i>start</i> (QDateTime)</dt> @@ -204,10 +203,10 @@ <a NAME="TimeTrackEntry.__currentDateTime" ID="TimeTrackEntry.__currentDateTime"></a> <h4>TimeTrackEntry.__currentDateTime</h4> <b>__currentDateTime</b>(<i></i>) - <p> Private method to get the current date and time without milliseconds. </p> + <dl> <dt>Return:</dt> <dd> @@ -223,10 +222,10 @@ <a NAME="TimeTrackEntry.__lt__" ID="TimeTrackEntry.__lt__"></a> <h4>TimeTrackEntry.__lt__</h4> <b>__lt__</b>(<i>other</i>) - <p> Special method implementing the less than function. </p> + <dl> <dt><i>other</i> (TimeTrackEntry)</dt> @@ -249,10 +248,10 @@ <a NAME="TimeTrackEntry.addDuration" ID="TimeTrackEntry.addDuration"></a> <h4>TimeTrackEntry.addDuration</h4> <b>addDuration</b>(<i>duration</i>) - <p> Public method to add a duration. </p> + <dl> <dt><i>duration</i> (int)</dt> @@ -264,17 +263,17 @@ <a NAME="TimeTrackEntry.continue_" ID="TimeTrackEntry.continue_"></a> <h4>TimeTrackEntry.continue_</h4> <b>continue_</b>(<i></i>) - <p> Public method to continue the entry. </p> + <a NAME="TimeTrackEntry.fromDict" ID="TimeTrackEntry.fromDict"></a> <h4>TimeTrackEntry.fromDict</h4> <b>fromDict</b>(<i>data</i>) - <p> Public method to populate the time track entry from a dictionary. </p> + <dl> <dt><i>data</i> (dict)</dt> @@ -297,10 +296,10 @@ <a NAME="TimeTrackEntry.getComment" ID="TimeTrackEntry.getComment"></a> <h4>TimeTrackEntry.getComment</h4> <b>getComment</b>(<i></i>) - <p> Public method to get the comment. </p> + <dl> <dt>Return:</dt> <dd> @@ -316,10 +315,10 @@ <a NAME="TimeTrackEntry.getDuration" ID="TimeTrackEntry.getDuration"></a> <h4>TimeTrackEntry.getDuration</h4> <b>getDuration</b>(<i></i>) - <p> Public slot to get the duration. </p> + <dl> <dt>Return:</dt> <dd> @@ -335,10 +334,10 @@ <a NAME="TimeTrackEntry.getEntryData" ID="TimeTrackEntry.getEntryData"></a> <h4>TimeTrackEntry.getEntryData</h4> <b>getEntryData</b>(<i></i>) - <p> Public method to get the entry data. </p> + <dl> <dt>Return:</dt> <dd> @@ -358,10 +357,10 @@ <a NAME="TimeTrackEntry.getID" ID="TimeTrackEntry.getID"></a> <h4>TimeTrackEntry.getID</h4> <b>getID</b>(<i></i>) - <p> Public method to get the ID of the entry. </p> + <dl> <dt>Return:</dt> <dd> @@ -377,10 +376,10 @@ <a NAME="TimeTrackEntry.getStartDateTime" ID="TimeTrackEntry.getStartDateTime"></a> <h4>TimeTrackEntry.getStartDateTime</h4> <b>getStartDateTime</b>(<i></i>) - <p> Public method to get the start date and time. </p> + <dl> <dt>Return:</dt> <dd> @@ -396,10 +395,10 @@ <a NAME="TimeTrackEntry.getTask" ID="TimeTrackEntry.getTask"></a> <h4>TimeTrackEntry.getTask</h4> <b>getTask</b>(<i></i>) - <p> Public method to get the task description. </p> + <dl> <dt>Return:</dt> <dd> @@ -415,10 +414,10 @@ <a NAME="TimeTrackEntry.isPaused" ID="TimeTrackEntry.isPaused"></a> <h4>TimeTrackEntry.isPaused</h4> <b>isPaused</b>(<i></i>) - <p> Public method to check for a paused state. </p> + <dl> <dt>Return:</dt> <dd> @@ -434,10 +433,10 @@ <a NAME="TimeTrackEntry.isValid" ID="TimeTrackEntry.isValid"></a> <h4>TimeTrackEntry.isValid</h4> <b>isValid</b>(<i></i>) - <p> Public method to check the validity of the entry. </p> + <dl> <dt>Return:</dt> <dd> @@ -453,17 +452,17 @@ <a NAME="TimeTrackEntry.pause" ID="TimeTrackEntry.pause"></a> <h4>TimeTrackEntry.pause</h4> <b>pause</b>(<i></i>) - <p> Public method to pause the entry. </p> + <a NAME="TimeTrackEntry.setComment" ID="TimeTrackEntry.setComment"></a> <h4>TimeTrackEntry.setComment</h4> <b>setComment</b>(<i>comment</i>) - <p> Public method to set a comment. </p> + <dl> <dt><i>comment</i> (str)</dt> @@ -474,10 +473,10 @@ <a NAME="TimeTrackEntry.setDuration" ID="TimeTrackEntry.setDuration"></a> <h4>TimeTrackEntry.setDuration</h4> <b>setDuration</b>(<i>duration</i>) - <p> Public method to set the duration. </p> + <dl> <dt><i>duration</i> (int)</dt> @@ -488,10 +487,10 @@ <a NAME="TimeTrackEntry.setID" ID="TimeTrackEntry.setID"></a> <h4>TimeTrackEntry.setID</h4> <b>setID</b>(<i>eid</i>) - <p> Public method to assign an ID to the entry. </p> + <dl> <dt><i>eid</i> (int)</dt> @@ -502,10 +501,10 @@ <a NAME="TimeTrackEntry.setStartDateTime" ID="TimeTrackEntry.setStartDateTime"></a> <h4>TimeTrackEntry.setStartDateTime</h4> <b>setStartDateTime</b>(<i>startDateTime</i>) - <p> Public method to set the start date and time. </p> + <dl> <dt><i>startDateTime</i> (QDateTime)</dt> @@ -516,10 +515,10 @@ <a NAME="TimeTrackEntry.setTask" ID="TimeTrackEntry.setTask"></a> <h4>TimeTrackEntry.setTask</h4> <b>setTask</b>(<i>description</i>) - <p> Public method to set the task description. </p> + <dl> <dt><i>description</i> (str)</dt> @@ -530,24 +529,24 @@ <a NAME="TimeTrackEntry.start" ID="TimeTrackEntry.start"></a> <h4>TimeTrackEntry.start</h4> <b>start</b>(<i></i>) - <p> Public method to set the start time of this entry. </p> + <a NAME="TimeTrackEntry.stop" ID="TimeTrackEntry.stop"></a> <h4>TimeTrackEntry.stop</h4> <b>stop</b>(<i></i>) - <p> Public method to stop this entry. </p> + <a NAME="TimeTrackEntry.toDict" ID="TimeTrackEntry.toDict"></a> <h4>TimeTrackEntry.toDict</h4> <b>toDict</b>(<i></i>) - <p> Public method to convert the time track entry into a dictionary. </p> + <dl> <dt>Return:</dt> <dd> @@ -562,4 +561,4 @@ </dl> <div align="right"><a href="#top">Up</a></div> <hr /> -</body></html> \ No newline at end of file +</body></html>
--- a/TimeTracker/Documentation/source/Plugin_Time_Tracker.TimeTracker.TimeTracker.html Sat Dec 23 19:35:14 2023 +0100 +++ b/TimeTracker/Documentation/source/Plugin_Time_Tracker.TimeTracker.TimeTracker.html Sat Jan 06 13:06:58 2024 +0100 @@ -7,53 +7,50 @@ <body> <a NAME="top" ID="top"></a> <h1>Plugin_Time_Tracker.TimeTracker.TimeTracker</h1> - <p> Module implementing the time tracker object. </p> + <h3>Global Attributes</h3> - <table> -<tr><td>None</td></tr> +<tr><td>_Side</td></tr> </table> + <h3>Classes</h3> - <table> - <tr> <td><a href="#TimeTracker">TimeTracker</a></td> <td>Class implementing the time tracker object.</td> </tr> </table> + <h3>Functions</h3> - <table> <tr><td>None</td></tr> </table> + <hr /> <hr /> <a NAME="TimeTracker" ID="TimeTracker"></a> <h2>TimeTracker</h2> - <p> Class implementing the time tracker object. </p> + <h3>Derived from</h3> QObject <h3>Class Attributes</h3> - <table> <tr><td>FileName</td></tr> </table> + <h3>Class Methods</h3> - <table> <tr><td>None</td></tr> </table> + <h3>Methods</h3> - <table> - <tr> <td><a href="#TimeTracker.__init__">TimeTracker</a></td> <td>Constructor</td> @@ -143,19 +140,20 @@ <td>Public method to stop the current tracker entry.</td> </tr> </table> + <h3>Static Methods</h3> - <table> <tr><td>None</td></tr> </table> + <a NAME="TimeTracker.__init__" ID="TimeTracker.__init__"></a> <h4>TimeTracker (Constructor)</h4> <b>TimeTracker</b>(<i>plugin, iconSuffix, parent=None</i>) - <p> Constructor </p> + <dl> <dt><i>plugin</i> (TimeTrackerPlugin)</dt> @@ -174,38 +172,38 @@ <a NAME="TimeTracker.__activateWidget" ID="TimeTracker.__activateWidget"></a> <h4>TimeTracker.__activateWidget</h4> <b>__activateWidget</b>(<i></i>) - <p> Private slot to handle the activation of the time tracker widget. </p> + <a NAME="TimeTracker.__initialize" ID="TimeTracker.__initialize"></a> <h4>TimeTracker.__initialize</h4> <b>__initialize</b>(<i></i>) - <p> Private slot to initialize some member variables. </p> + <a NAME="TimeTracker.__readTrackerEntries" ID="TimeTracker.__readTrackerEntries"></a> <h4>TimeTracker.__readTrackerEntries</h4> <b>__readTrackerEntries</b>(<i></i>) - <p> Private slot to read the time tracker entries from a file. </p> + <a NAME="TimeTracker.activate" ID="TimeTracker.activate"></a> <h4>TimeTracker.activate</h4> <b>activate</b>(<i></i>) - <p> Public method to activate the time tracker. </p> + <a NAME="TimeTracker.addTrackerEntry" ID="TimeTracker.addTrackerEntry"></a> <h4>TimeTracker.addTrackerEntry</h4> <b>addTrackerEntry</b>(<i>startDateTime, duration, task, comment</i>) - <p> Public method to add a new tracker entry based on the given data. </p> + <dl> <dt><i>startDateTime</i> (QDateTime)</dt> @@ -228,24 +226,24 @@ <a NAME="TimeTracker.continueTrackerEntry" ID="TimeTracker.continueTrackerEntry"></a> <h4>TimeTracker.continueTrackerEntry</h4> <b>continueTrackerEntry</b>(<i></i>) - <p> Public method to continue the current tracker entry. </p> + <a NAME="TimeTracker.deactivate" ID="TimeTracker.deactivate"></a> <h4>TimeTracker.deactivate</h4> <b>deactivate</b>(<i></i>) - <p> Public method to deactivate the time tracker. </p> + <a NAME="TimeTracker.deleteTrackerEntry" ID="TimeTracker.deleteTrackerEntry"></a> <h4>TimeTracker.deleteTrackerEntry</h4> <b>deleteTrackerEntry</b>(<i>eid</i>) - <p> Public method to delete a tracker entry given its ID. </p> + <dl> <dt><i>eid</i> (int)</dt> @@ -256,17 +254,17 @@ <a NAME="TimeTracker.entryChanged" ID="TimeTracker.entryChanged"></a> <h4>TimeTracker.entryChanged</h4> <b>entryChanged</b>(<i></i>) - <p> Public method to indicate an external change to any of the entries. </p> + <a NAME="TimeTracker.getCurrentEntry" ID="TimeTracker.getCurrentEntry"></a> <h4>TimeTracker.getCurrentEntry</h4> <b>getCurrentEntry</b>(<i></i>) - <p> Public method to get a reference to the current tracker entry. </p> + <dl> <dt>Return:</dt> <dd> @@ -282,10 +280,10 @@ <a NAME="TimeTracker.getEntry" ID="TimeTracker.getEntry"></a> <h4>TimeTracker.getEntry</h4> <b>getEntry</b>(<i>eid</i>) - <p> Public method to get a tracker entry given its ID. </p> + <dl> <dt><i>eid</i> (int)</dt> @@ -308,10 +306,10 @@ <a NAME="TimeTracker.getPreferences" ID="TimeTracker.getPreferences"></a> <h4>TimeTracker.getPreferences</h4> <b>getPreferences</b>(<i>key</i>) - <p> Public method to retrieve the various settings. </p> + <dl> <dt><i>key</i> (str)</dt> @@ -334,10 +332,10 @@ <a NAME="TimeTracker.importTrackerEntries" ID="TimeTracker.importTrackerEntries"></a> <h4>TimeTracker.importTrackerEntries</h4> <b>importTrackerEntries</b>(<i>fname</i>) - <p> Public slot to import tracker entries from a file. </p> + <dl> <dt><i>fname</i> (str)</dt> @@ -348,7 +346,6 @@ <a NAME="TimeTracker.mergeDuplicateTrackerEntries" ID="TimeTracker.mergeDuplicateTrackerEntries"></a> <h4>TimeTracker.mergeDuplicateTrackerEntries</h4> <b>mergeDuplicateTrackerEntries</b>(<i></i>) - <p> Public slot to merge duplicate time tracker entries. </p> @@ -356,31 +353,31 @@ If entries with the identical start date and time are found, the durations of these entries are added. </p> + <a NAME="TimeTracker.pauseTrackerEntry" ID="TimeTracker.pauseTrackerEntry"></a> <h4>TimeTracker.pauseTrackerEntry</h4> <b>pauseTrackerEntry</b>(<i></i>) - <p> Public method to pause the current tracker entry. </p> + <a NAME="TimeTracker.projectClosed" ID="TimeTracker.projectClosed"></a> <h4>TimeTracker.projectClosed</h4> <b>projectClosed</b>(<i></i>) - <p> Public slot to handle the projectClosed signal. </p> + <a NAME="TimeTracker.projectOpened" ID="TimeTracker.projectOpened"></a> <h4>TimeTracker.projectOpened</h4> <b>projectOpened</b>(<i></i>) - <p> Public slot to handle the projectOpened signal. </p> + <a NAME="TimeTracker.removeDuplicateTrackerEntries" ID="TimeTracker.removeDuplicateTrackerEntries"></a> <h4>TimeTracker.removeDuplicateTrackerEntries</h4> <b>removeDuplicateTrackerEntries</b>(<i></i>) - <p> Public slot to remove duplicate time tracker entries. </p> @@ -388,13 +385,14 @@ If entries with the identical start date and time are found, the one with the longest duration is kept. </p> + <a NAME="TimeTracker.saveTrackerEntries" ID="TimeTracker.saveTrackerEntries"></a> <h4>TimeTracker.saveTrackerEntries</h4> <b>saveTrackerEntries</b>(<i>filePath="", ids=None</i>) - <p> Public slot to save the tracker entries to a file. </p> + <dl> <dt><i>filePath</i> (str)</dt> @@ -409,17 +407,17 @@ <a NAME="TimeTracker.startTrackerEntry" ID="TimeTracker.startTrackerEntry"></a> <h4>TimeTracker.startTrackerEntry</h4> <b>startTrackerEntry</b>(<i></i>) - <p> Public method to start a new tracker entry. </p> + <a NAME="TimeTracker.stopTrackerEntry" ID="TimeTracker.stopTrackerEntry"></a> <h4>TimeTracker.stopTrackerEntry</h4> <b>stopTrackerEntry</b>(<i></i>) - <p> Public method to stop the current tracker entry. </p> + <dl> <dt>Return:</dt> <dd> @@ -435,4 +433,4 @@ </dl> <div align="right"><a href="#top">Up</a></div> <hr /> -</body></html> \ No newline at end of file +</body></html>
--- a/TimeTracker/Documentation/source/Plugin_Time_Tracker.TimeTracker.TimeTrackerEntryDialog.html Sat Dec 23 19:35:14 2023 +0100 +++ b/TimeTracker/Documentation/source/Plugin_Time_Tracker.TimeTracker.TimeTrackerEntryDialog.html Sat Jan 06 13:06:58 2024 +0100 @@ -7,53 +7,50 @@ <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> @@ -75,19 +72,20 @@ <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> @@ -116,17 +114,17 @@ <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> @@ -143,10 +141,10 @@ <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> @@ -157,10 +155,10 @@ <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> @@ -170,4 +168,4 @@ </dl> <div align="right"><a href="#top">Up</a></div> <hr /> -</body></html> \ No newline at end of file +</body></html>
--- a/TimeTracker/Documentation/source/Plugin_Time_Tracker.TimeTracker.TimeTrackerWidget.html Sat Dec 23 19:35:14 2023 +0100 +++ b/TimeTracker/Documentation/source/Plugin_Time_Tracker.TimeTracker.TimeTrackerWidget.html Sat Jan 06 13:06:58 2024 +0100 @@ -7,53 +7,52 @@ <body> <a NAME="top" ID="top"></a> <h1>Plugin_Time_Tracker.TimeTracker.TimeTrackerWidget</h1> - <p> Module implementing the time tracker widget. </p> + <h3>Global Attributes</h3> - <table> <tr><td>None</td></tr> </table> + <h3>Classes</h3> - <table> - <tr> <td><a href="#TimeTrackerWidget">TimeTrackerWidget</a></td> <td>Class implementing the time tracker widget.</td> </tr> </table> + <h3>Functions</h3> - <table> <tr><td>None</td></tr> </table> + <hr /> <hr /> <a NAME="TimeTrackerWidget" ID="TimeTrackerWidget"></a> <h2>TimeTrackerWidget</h2> - <p> Class implementing the time tracker widget. </p> + <h3>Derived from</h3> QWidget, Ui_TimeTrackerWidget <h3>Class Attributes</h3> +<table> +<tr><td>CommentColumn</td></tr> +<tr><td>DurationColumn</td></tr> +<tr><td>TaskColumn</td></tr> +</table> -<table> -<tr><td>CommentColumn</td></tr><tr><td>DurationColumn</td></tr><tr><td>TaskColumn</td></tr> -</table> <h3>Class Methods</h3> - <table> <tr><td>None</td></tr> </table> + <h3>Methods</h3> - <table> - <tr> <td><a href="#TimeTrackerWidget.__init__">TimeTrackerWidget</a></td> <td>Constructor</td> @@ -135,19 +134,20 @@ <td>Public method to show the tracker entries of the current project.</td> </tr> </table> + <h3>Static Methods</h3> - <table> <tr><td>None</td></tr> </table> + <a NAME="TimeTrackerWidget.__init__" ID="TimeTrackerWidget.__init__"></a> <h4>TimeTrackerWidget (Constructor)</h4> <b>TimeTrackerWidget</b>(<i>tracker, parent=None</i>) - <p> Constructor </p> + <dl> <dt><i>tracker</i> (TimeTracker)</dt> @@ -162,31 +162,31 @@ <a NAME="TimeTrackerWidget.__addEntry" ID="TimeTrackerWidget.__addEntry"></a> <h4>TimeTrackerWidget.__addEntry</h4> <b>__addEntry</b>(<i></i>) - <p> Private slot to manually add an entry. </p> + <a NAME="TimeTrackerWidget.__deleteSelectedEntries" ID="TimeTrackerWidget.__deleteSelectedEntries"></a> <h4>TimeTrackerWidget.__deleteSelectedEntries</h4> <b>__deleteSelectedEntries</b>(<i></i>) - <p> Private slot to delete the selected tracker entries. </p> + <a NAME="TimeTrackerWidget.__editEntry" ID="TimeTrackerWidget.__editEntry"></a> <h4>TimeTrackerWidget.__editEntry</h4> <b>__editEntry</b>(<i></i>) - <p> Private slot to edit the selected tracker entry. </p> + <a NAME="TimeTrackerWidget.__exportEntries" ID="TimeTrackerWidget.__exportEntries"></a> <h4>TimeTrackerWidget.__exportEntries</h4> <b>__exportEntries</b>(<i>ids=None</i>) - <p> Private method to export all or selected entries. </p> + <dl> <dt><i>ids</i> (list of int)</dt> @@ -197,24 +197,24 @@ <a NAME="TimeTrackerWidget.__exportSelectedEntries" ID="TimeTrackerWidget.__exportSelectedEntries"></a> <h4>TimeTrackerWidget.__exportSelectedEntries</h4> <b>__exportSelectedEntries</b>(<i></i>) - <p> Private slot to export the selected tracker entries. </p> + <a NAME="TimeTrackerWidget.__importEntries" ID="TimeTrackerWidget.__importEntries"></a> <h4>TimeTrackerWidget.__importEntries</h4> <b>__importEntries</b>(<i></i>) - <p> Private slot to import tracker entries. </p> + <a NAME="TimeTrackerWidget.__insertEntry" ID="TimeTrackerWidget.__insertEntry"></a> <h4>TimeTrackerWidget.__insertEntry</h4> <b>__insertEntry</b>(<i>entry, index=-1</i>) - <p> Private method to insert a tracker entry into the list. </p> + <dl> <dt><i>entry</i> (TimeTrackEntry)</dt> @@ -229,45 +229,45 @@ <a NAME="TimeTrackerWidget.__mergeDuplicates" ID="TimeTrackerWidget.__mergeDuplicates"></a> <h4>TimeTrackerWidget.__mergeDuplicates</h4> <b>__mergeDuplicates</b>(<i></i>) - <p> Private slot to merge duplicate entries. </p> + <a NAME="TimeTrackerWidget.__removeDuplicates" ID="TimeTrackerWidget.__removeDuplicates"></a> <h4>TimeTrackerWidget.__removeDuplicates</h4> <b>__removeDuplicates</b>(<i></i>) - <p> Private slot to remove duplicate entries. </p> + <a NAME="TimeTrackerWidget.__resizeColumns" ID="TimeTrackerWidget.__resizeColumns"></a> <h4>TimeTrackerWidget.__resizeColumns</h4> <b>__resizeColumns</b>(<i></i>) - <p> Private slot to resize the columns of the entries list. </p> + <a NAME="TimeTrackerWidget.__saveEntries" ID="TimeTrackerWidget.__saveEntries"></a> <h4>TimeTrackerWidget.__saveEntries</h4> <b>__saveEntries</b>(<i></i>) - <p> Private slot to save the tracker entries. </p> + <a NAME="TimeTrackerWidget.clear" ID="TimeTrackerWidget.clear"></a> <h4>TimeTrackerWidget.clear</h4> <b>clear</b>(<i></i>) - <p> Public method to clear all the data. </p> + <a NAME="TimeTrackerWidget.on_commentCombo_editTextChanged" ID="TimeTrackerWidget.on_commentCombo_editTextChanged"></a> <h4>TimeTrackerWidget.on_commentCombo_editTextChanged</h4> <b>on_commentCombo_editTextChanged</b>(<i>txt</i>) - <p> Private slot handling changes of the comment of the current entry. </p> + <dl> <dt><i>txt</i> (str)</dt> @@ -278,10 +278,10 @@ <a NAME="TimeTrackerWidget.on_entriesList_customContextMenuRequested" ID="TimeTrackerWidget.on_entriesList_customContextMenuRequested"></a> <h4>TimeTrackerWidget.on_entriesList_customContextMenuRequested</h4> <b>on_entriesList_customContextMenuRequested</b>(<i>pos</i>) - <p> Private slot to create the context menu and show it. </p> + <dl> <dt><i>pos</i> (QPoint)</dt> @@ -292,17 +292,17 @@ <a NAME="TimeTrackerWidget.on_newButton_clicked" ID="TimeTrackerWidget.on_newButton_clicked"></a> <h4>TimeTrackerWidget.on_newButton_clicked</h4> <b>on_newButton_clicked</b>(<i></i>) - <p> Private slot to end the current timer and start a new one. </p> + <a NAME="TimeTrackerWidget.on_pauseButton_toggled" ID="TimeTrackerWidget.on_pauseButton_toggled"></a> <h4>TimeTrackerWidget.on_pauseButton_toggled</h4> <b>on_pauseButton_toggled</b>(<i>checked</i>) - <p> Private slot to pause the current timing. </p> + <dl> <dt><i>checked</i> (bool)</dt> @@ -313,11 +313,11 @@ <a NAME="TimeTrackerWidget.on_taskCombo_editTextChanged" ID="TimeTrackerWidget.on_taskCombo_editTextChanged"></a> <h4>TimeTrackerWidget.on_taskCombo_editTextChanged</h4> <b>on_taskCombo_editTextChanged</b>(<i>txt</i>) - <p> Private slot handling changes of the task description of the current entry. </p> + <dl> <dt><i>txt</i> (str)</dt> @@ -328,10 +328,10 @@ <a NAME="TimeTrackerWidget.setCurrentEntry" ID="TimeTrackerWidget.setCurrentEntry"></a> <h4>TimeTrackerWidget.setCurrentEntry</h4> <b>setCurrentEntry</b>(<i>entry</i>) - <p> Public method to set the current entry. </p> + <dl> <dt><i>entry</i> (TimeTrackEntry)</dt> @@ -342,10 +342,10 @@ <a NAME="TimeTrackerWidget.showTrackerEntries" ID="TimeTrackerWidget.showTrackerEntries"></a> <h4>TimeTrackerWidget.showTrackerEntries</h4> <b>showTrackerEntries</b>(<i>entries</i>) - <p> Public method to show the tracker entries of the current project. </p> + <dl> <dt><i>entries</i> (list of TimeTrackEntry)</dt> @@ -355,4 +355,4 @@ </dl> <div align="right"><a href="#top">Up</a></div> <hr /> -</body></html> \ No newline at end of file +</body></html>
--- a/TimeTracker/Documentation/source/index-Plugin_Time_Tracker.TimeTracker.ConfigurationPage.html Sat Dec 23 19:35:14 2023 +0100 +++ b/TimeTracker/Documentation/source/index-Plugin_Time_Tracker.TimeTracker.ConfigurationPage.html Sat Jan 06 13:06:58 2024 +0100 @@ -6,12 +6,12 @@ </head> <body> <h1>Plugin_Time_Tracker.TimeTracker.ConfigurationPage</h1> - <p> Package implementing the Time Tracker page of the configuration dialog. </p> + <h3>Modules</h3> <table> @@ -20,4 +20,4 @@ <td>Module implementing the Time Tracker configuration page.</td> </tr> </table> -</body></html> \ No newline at end of file +</body></html>
--- a/TimeTracker/Documentation/source/index-Plugin_Time_Tracker.TimeTracker.html Sat Dec 23 19:35:14 2023 +0100 +++ b/TimeTracker/Documentation/source/index-Plugin_Time_Tracker.TimeTracker.html Sat Jan 06 13:06:58 2024 +0100 @@ -6,11 +6,11 @@ </head> <body> <h1>Plugin_Time_Tracker.TimeTracker</h1> - <p> Package implementing the time tracker. </p> + <h3>Packages</h3> <table> @@ -40,4 +40,4 @@ <td>Module implementing the time tracker widget.</td> </tr> </table> -</body></html> \ No newline at end of file +</body></html>
--- a/TimeTracker/Documentation/source/index-Plugin_Time_Tracker.html Sat Dec 23 19:35:14 2023 +0100 +++ b/TimeTracker/Documentation/source/index-Plugin_Time_Tracker.html Sat Jan 06 13:06:58 2024 +0100 @@ -6,11 +6,11 @@ </head> <body> <h1>Plugin_Time_Tracker</h1> - <p> Package implementing the Time Tracker plugin. </p> + <h3>Packages</h3> <table> @@ -28,4 +28,4 @@ <td>Module implementing the Time Tracker plugin.</td> </tr> </table> -</body></html> \ No newline at end of file +</body></html>
--- a/TimeTracker/Documentation/source/index.html Sat Dec 23 19:35:14 2023 +0100 +++ b/TimeTracker/Documentation/source/index.html Sat Jan 06 13:06:58 2024 +0100 @@ -17,4 +17,4 @@ </tr> </table> -</body></html> \ No newline at end of file +</body></html>
--- a/TimeTracker/TimeTracker.py Sat Dec 23 19:35:14 2023 +0100 +++ b/TimeTracker/TimeTracker.py Sat Jan 06 13:06:58 2024 +0100 @@ -22,6 +22,16 @@ from eric7.EricWidgets import EricMessageBox from eric7.EricWidgets.EricApplication import ericApp +try: + from eric7.UI.UserInterface import UserInterfaceSide + + _Side = UserInterfaceSide.Bottom +except ImportError: + # backward compatibility for eric < 24.2 + from eric7.UI.UserInterface import UserInterface + + _Side = UserInterface.BottomSide + class TimeTracker(QObject): """ @@ -76,7 +86,7 @@ else "clock-{0}".format(self.__iconSuffix) ) self.__ui.addSideWidget( - self.__ui.BottomSide, + _Side, self.__widget, EricPixmapCache.getIcon(os.path.join("TimeTracker", "icons", iconName)), self.tr("Time Tracker"),