Thu, 03 Apr 2025 19:50:43 +0200
Modified the display of the crash session dialog to show the time stamp of the found crash session file and the path of the project file (if a project was open) (see issue584).
<!DOCTYPE html> <html><head> <title>eric7.Sessions.CrashedSessionsSelectionDialog</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>eric7.Sessions.CrashedSessionsSelectionDialog</h1> <p> Module implementing a dialog to show a list of existing crash session files. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#CrashedSessionsSelectionDialog">CrashedSessionsSelectionDialog</a></td> <td>Class implementing a dialog to show a list of existing crash session files.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="CrashedSessionsSelectionDialog" ID="CrashedSessionsSelectionDialog"></a> <h2>CrashedSessionsSelectionDialog</h2> <p> Class implementing a dialog to show a list of existing crash session files. </p> <h3>Derived from</h3> QDialog, Ui_CrashedSessionsSelectionDialog <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="#CrashedSessionsSelectionDialog.__init__">CrashedSessionsSelectionDialog</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#CrashedSessionsSelectionDialog.__addSessionFileEntry">__addSessionFileEntry</a></td> <td>Private method to read the given session file and add a list entry for it.</td> </tr> <tr> <td><a href="#CrashedSessionsSelectionDialog.__updateOk">__updateOk</a></td> <td>Private method to update the enabled state of the OK button.</td> </tr> <tr> <td><a href="#CrashedSessionsSelectionDialog.getSelectedCrashSession">getSelectedCrashSession</a></td> <td>Public method to get the selected crash session file name.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="CrashedSessionsSelectionDialog.__init__" ID="CrashedSessionsSelectionDialog.__init__"></a> <h4>CrashedSessionsSelectionDialog (Constructor)</h4> <b>CrashedSessionsSelectionDialog</b>(<i>sessionFiles, parent=None</i>) <p> Constructor </p> <dl> <dt><i>sessionFiles</i> (list of str)</dt> <dd> list of crash session file names </dd> <dt><i>parent</i> (QWidget (optional))</dt> <dd> reference to the parent widget (defaults to None) </dd> </dl> <a NAME="CrashedSessionsSelectionDialog.__addSessionFileEntry" ID="CrashedSessionsSelectionDialog.__addSessionFileEntry"></a> <h4>CrashedSessionsSelectionDialog.__addSessionFileEntry</h4> <b>__addSessionFileEntry</b>(<i>sessionFile</i>) <p> Private method to read the given session file and add a list entry for it. </p> <dl> <dt><i>sessionFile</i> (str)</dt> <dd> file name of the session to be read </dd> </dl> <a NAME="CrashedSessionsSelectionDialog.__updateOk" ID="CrashedSessionsSelectionDialog.__updateOk"></a> <h4>CrashedSessionsSelectionDialog.__updateOk</h4> <b>__updateOk</b>(<i></i>) <p> Private method to update the enabled state of the OK button. </p> <a NAME="CrashedSessionsSelectionDialog.getSelectedCrashSession" ID="CrashedSessionsSelectionDialog.getSelectedCrashSession"></a> <h4>CrashedSessionsSelectionDialog.getSelectedCrashSession</h4> <b>getSelectedCrashSession</b>(<i></i>) <p> Public method to get the selected crash session file name. </p> <dl> <dt>Return:</dt> <dd> file name of the selected crash session </dd> </dl> <dl> <dt>Return Type:</dt> <dd> str </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>