ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.ProjectPyramid.CreateParametersDialog.html

Thu, 09 Apr 2020 18:16:19 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 09 Apr 2020 18:16:19 +0200
changeset 133
8f183975895d
parent 95
2b0933087db9
child 144
5c3684ee818e
permissions
-rw-r--r--

Replaced pixmap icons by vector icons.

<!DOCTYPE html>
<html><head>
<title>Plugin_Project_Pyramid.ProjectPyramid.CreateParametersDialog</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_Project_Pyramid.ProjectPyramid.CreateParametersDialog</h1>

<p>
Module implementing a dialog for entering the create parameters.
</p>
<h3>Global Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>

<table>

<tr>
<td><a href="#CreateParametersDialog">CreateParametersDialog</a></td>
<td>Class implementing a dialog for entering the create parameters.</td>
</tr>
</table>
<h3>Functions</h3>

<table>
<tr><td>None</td></tr>
</table>
<hr />
<hr />
<a NAME="CreateParametersDialog" ID="CreateParametersDialog"></a>
<h2>CreateParametersDialog</h2>

<p>
    Class implementing a dialog for entering the create parameters.
</p>
<h3>Derived from</h3>
QDialog, Ui_CreateParametersDialog
<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="#CreateParametersDialog.__init__">CreateParametersDialog</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#CreateParametersDialog.__prepareScaffoldString">__prepareScaffoldString</a></td>
<td>Private method to prepare a scaffold string for the combo box.</td>
</tr>
<tr>
<td><a href="#CreateParametersDialog.__updateUi">__updateUi</a></td>
<td>Private slot to update the dialog.</td>
</tr>
<tr>
<td><a href="#CreateParametersDialog.getData">getData</a></td>
<td>Public method to get the data.</td>
</tr>
<tr>
<td><a href="#CreateParametersDialog.on_nameEdit_textChanged">on_nameEdit_textChanged</a></td>
<td>Private slot to handle changes of the site name.</td>
</tr>
<tr>
<td><a href="#CreateParametersDialog.on_scaffoldCombo_currentIndexChanged">on_scaffoldCombo_currentIndexChanged</a></td>
<td>Private slot to handle changes of the selected scaffold.</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="CreateParametersDialog.__init__" ID="CreateParametersDialog.__init__"></a>
<h4>CreateParametersDialog (Constructor)</h4>
<b>CreateParametersDialog</b>(<i>project, parent=None</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>project</i></dt>
<dd>
reference to the project object (Project)
</dd>
<dt><i>parent</i></dt>
<dd>
reference to the parent widget (QWidget)
</dd>
</dl>
<a NAME="CreateParametersDialog.__prepareScaffoldString" ID="CreateParametersDialog.__prepareScaffoldString"></a>
<h4>CreateParametersDialog.__prepareScaffoldString</h4>
<b>__prepareScaffoldString</b>(<i>line</i>)

<p>
        Private method to prepare a scaffold string for the combo box.
</p>
<dl>

<dt><i>line</i> (str)</dt>
<dd>
output line containing the scaffold name and some
            explanatory text
</dd>
</dl>
<dl>
<dt>Returns:</dt>
<dd>
prepared scaffold text
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
str
</dd>
</dl>
<a NAME="CreateParametersDialog.__updateUi" ID="CreateParametersDialog.__updateUi"></a>
<h4>CreateParametersDialog.__updateUi</h4>
<b>__updateUi</b>(<i></i>)

<p>
        Private slot to update the dialog.
</p>
<a NAME="CreateParametersDialog.getData" ID="CreateParametersDialog.getData"></a>
<h4>CreateParametersDialog.getData</h4>
<b>getData</b>(<i></i>)

<p>
        Public method to get the data.
</p>
<dl>
<dt>Returns:</dt>
<dd>
tuple giving the scaffold (string), the project name (string),
            a flag indicating to overwrite existing files (boolean) and a flag
            indicating to simulate the creation (boolean)
</dd>
</dl>
<a NAME="CreateParametersDialog.on_nameEdit_textChanged" ID="CreateParametersDialog.on_nameEdit_textChanged"></a>
<h4>CreateParametersDialog.on_nameEdit_textChanged</h4>
<b>on_nameEdit_textChanged</b>(<i>text</i>)

<p>
        Private slot to handle changes of the site name.
</p>
<dl>

<dt><i>text</i></dt>
<dd>
text of the site entry (string)
</dd>
</dl>
<a NAME="CreateParametersDialog.on_scaffoldCombo_currentIndexChanged" ID="CreateParametersDialog.on_scaffoldCombo_currentIndexChanged"></a>
<h4>CreateParametersDialog.on_scaffoldCombo_currentIndexChanged</h4>
<b>on_scaffoldCombo_currentIndexChanged</b>(<i>text</i>)

<p>
        Private slot to handle changes of the selected scaffold.
</p>
<dl>

<dt><i>text</i></dt>
<dd>
text of the combo box (string)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial