src/eric7/Documentation/Source/eric7.Sessions.CrashedSessionsSelectionDialog.html

Sun, 06 Apr 2025 14:51:33 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 06 Apr 2025 14:51:33 +0200
branch
eric7
changeset 11208
f776db7cc222
parent 11206
9271719f43a7
permissions
-rw-r--r--

Fixed some issues related to support of UF2 capable micro-controllers.

<!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.__updateButtonStates">__updateButtonStates</a></td>
<td>Private method to update the enabled state of the buttons.</td>
</tr>
<tr>
<td><a href="#CrashedSessionsSelectionDialog.getSelectedCrashSession">getSelectedCrashSession</a></td>
<td>Public method to get the selected crash session file name.</td>
</tr>
<tr>
<td><a href="#CrashedSessionsSelectionDialog.getSelectedCrashSessions">getSelectedCrashSessions</a></td>
<td>Public method to get the selected crash session file names.</td>
</tr>
<tr>
<td><a href="#CrashedSessionsSelectionDialog.on_removeButton_clicked">on_removeButton_clicked</a></td>
<td>Private slot to remove the selected crash session files.</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, deleteMode=False, 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>deleteMode</i> (bool (optional))</dt>
<dd>
flag indicating the delete mode (defaults to False)
</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.__updateButtonStates" ID="CrashedSessionsSelectionDialog.__updateButtonStates"></a>
<h4>CrashedSessionsSelectionDialog.__updateButtonStates</h4>
<b>__updateButtonStates</b>(<i></i>)
<p>
        Private method to update the enabled state of the buttons.
</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>
<a NAME="CrashedSessionsSelectionDialog.getSelectedCrashSessions" ID="CrashedSessionsSelectionDialog.getSelectedCrashSessions"></a>
<h4>CrashedSessionsSelectionDialog.getSelectedCrashSessions</h4>
<b>getSelectedCrashSessions</b>(<i></i>)
<p>
        Public method to get the selected crash session file names.
</p>

<dl>
<dt>Return:</dt>
<dd>
file names of the selected crash sessions
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
list of str
</dd>
</dl>
<a NAME="CrashedSessionsSelectionDialog.on_removeButton_clicked" ID="CrashedSessionsSelectionDialog.on_removeButton_clicked"></a>
<h4>CrashedSessionsSelectionDialog.on_removeButton_clicked</h4>
<b>on_removeButton_clicked</b>(<i></i>)
<p>
        Private slot to remove the selected crash session files.
</p>

<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial