Documentation/Source/eric5.Preferences.ProgramsDialog.html

Fri, 11 Mar 2011 16:51:57 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 11 Mar 2011 16:51:57 +0100
changeset 945
8cd4d08fa9f6
parent 440
69ace3e2dcf6
child 1228
7afaf2fca55b
permissions
-rw-r--r--

Made code mostly PEP 8 compliant (except all whitespace and line length).

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html><head>
<title>eric5.Preferences.ProgramsDialog</title>
<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>eric5.Preferences.ProgramsDialog</h1>
<p>
Module implementing the Programs page.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#ProgramsDialog">ProgramsDialog</a></td>
<td>Class implementing the Programs page.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="ProgramsDialog" ID="ProgramsDialog"></a>
<h2>ProgramsDialog</h2>
<p>
    Class implementing the Programs page.
</p>
<h3>Derived from</h3>
QDialog, Ui_ProgramsDialog
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#ProgramsDialog.__init__">ProgramsDialog</a></td>
<td>Constructor</td>
</tr><tr>
<td><a href="#ProgramsDialog.__createEntry">__createEntry</a></td>
<td>Private method to generate a program entry.</td>
</tr><tr>
<td><a href="#ProgramsDialog.__createProgramEntry">__createProgramEntry</a></td>
<td>Private method to generate a program entry.</td>
</tr><tr>
<td><a href="#ProgramsDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
<td>Private slot called by a button of the button box clicked.</td>
</tr><tr>
<td><a href="#ProgramsDialog.on_programsSearchButton_clicked">on_programsSearchButton_clicked</a></td>
<td>Private slot to search for all supported/required programs.</td>
</tr><tr>
<td><a href="#ProgramsDialog.show">show</a></td>
<td>Public slot to show the dialog.</td>
</tr>
</table>
<a NAME="ProgramsDialog.__init__" ID="ProgramsDialog.__init__"></a>
<h4>ProgramsDialog (Constructor)</h4>
<b>ProgramsDialog</b>(<i>parent=None</i>)
<p>
        Constructor
</p><dl>
<dt><i>parent</i></dt>
<dd>
The parent widget of this dialog. (QWidget)
</dd>
</dl><a NAME="ProgramsDialog.__createEntry" ID="ProgramsDialog.__createEntry"></a>
<h4>ProgramsDialog.__createEntry</h4>
<b>__createEntry</b>(<i>description, entryText, entryVersion</i>)
<p>
        Private method to generate a program entry.
</p><dl>
<dt><i>description</i></dt>
<dd>
descriptive text (string)
</dd><dt><i>entryText</i></dt>
<dd>
text to show (string)
</dd><dt><i>entryVersion</i></dt>
<dd>
version string to show (string).
</dd>
</dl><a NAME="ProgramsDialog.__createProgramEntry" ID="ProgramsDialog.__createProgramEntry"></a>
<h4>ProgramsDialog.__createProgramEntry</h4>
<b>__createProgramEntry</b>(<i>description, exe, versionCommand="", versionStartsWith="", versionPosition=0, version="", versionCleanup=None, versionRe=None</i>)
<p>
        Private method to generate a program entry.
</p><dl>
<dt><i>description</i></dt>
<dd>
descriptive text (string)
</dd><dt><i>exe</i></dt>
<dd>
name of the executable program (string)
</dd><dt><i>versionCommand</i></dt>
<dd>
command line switch to get the version info (string)
            if this is empty, the given version will be shown.
</dd><dt><i>versionStartsWith</i></dt>
<dd>
start of line identifying version info (string)
</dd><dt><i>versionPosition</i></dt>
<dd>
index of part containing the version info (integer)
</dd><dt><i>version=</i></dt>
<dd>
version string to show (string)
</dd><dt><i>versionCleanup=</i></dt>
<dd>
tuple of two integers giving string positions
            start and stop for the version string (tuple of integers)
</dd><dt><i>versionRe=</i></dt>
<dd>
regexp to determine the line identifying version
            info (string). Takes precedence over versionStartsWith.
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
version string of detected or given version (string)
</dd>
</dl><a NAME="ProgramsDialog.on_buttonBox_clicked" ID="ProgramsDialog.on_buttonBox_clicked"></a>
<h4>ProgramsDialog.on_buttonBox_clicked</h4>
<b>on_buttonBox_clicked</b>(<i>button</i>)
<p>
        Private slot called by a button of the button box clicked.
</p><dl>
<dt><i>button</i></dt>
<dd>
button that was clicked (QAbstractButton)
</dd>
</dl><a NAME="ProgramsDialog.on_programsSearchButton_clicked" ID="ProgramsDialog.on_programsSearchButton_clicked"></a>
<h4>ProgramsDialog.on_programsSearchButton_clicked</h4>
<b>on_programsSearchButton_clicked</b>(<i></i>)
<p>
        Private slot to search for all supported/required programs.
</p><a NAME="ProgramsDialog.show" ID="ProgramsDialog.show"></a>
<h4>ProgramsDialog.show</h4>
<b>show</b>(<i></i>)
<p>
        Public slot to show the dialog.
</p>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial