Wed, 24 Mar 2010 18:38:44 +0000
Added a few methods to Project.py to support the cooperation stuff.
<?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.Project.AddDirectoryDialog</title> <style> body { background:white; margin: 0em 1em 10em 1em; color: black; } h1 { color: white; background: #4FA4FF; } h2 { color: white; background: #4FA4FF; } h3 { color: white; background: #00557F; } h4 { color: white; background: #00557F; } a { color: #AA5500; } </style> </head> <body><a NAME="top" ID="top"></a> <h1>eric5.Project.AddDirectoryDialog</h1> <p> Module implementing a dialog to add files of a directory to the project. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#AddDirectoryDialog">AddDirectoryDialog</a></td> <td>Class implementing a dialog to add files of a directory to the project.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /><hr /> <a NAME="AddDirectoryDialog" ID="AddDirectoryDialog"></a> <h2>AddDirectoryDialog</h2> <p> Class implementing a dialog to add files of a directory to the project. </p> <h3>Derived from</h3> QDialog, Ui_AddDirectoryDialog <h3>Class Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#AddDirectoryDialog.__init__">AddDirectoryDialog</a></td> <td>Constructor</td> </tr><tr> <td><a href="#AddDirectoryDialog.__dirDialog">__dirDialog</a></td> <td>Private slot to display a directory selection dialog.</td> </tr><tr> <td><a href="#AddDirectoryDialog.getData">getData</a></td> <td>Public slot to retrieve the dialogs data.</td> </tr><tr> <td><a href="#AddDirectoryDialog.on_filterComboBox_highlighted">on_filterComboBox_highlighted</a></td> <td>Private slot to handle the selection of a file type.</td> </tr><tr> <td><a href="#AddDirectoryDialog.on_sourceDirButton_clicked">on_sourceDirButton_clicked</a></td> <td>Private slot to handle the source dir button press.</td> </tr><tr> <td><a href="#AddDirectoryDialog.on_sourceDirEdit_textChanged">on_sourceDirEdit_textChanged</a></td> <td>Private slot to handle the source dir text changed.</td> </tr><tr> <td><a href="#AddDirectoryDialog.on_targetDirButton_clicked">on_targetDirButton_clicked</a></td> <td>Private slot to handle the target dir button press.</td> </tr> </table> <a NAME="AddDirectoryDialog.__init__" ID="AddDirectoryDialog.__init__"></a> <h4>AddDirectoryDialog (Constructor)</h4> <b>AddDirectoryDialog</b>(<i>pro, filter = 'source', parent = None, name = None, startdir = None</i>) <p> Constructor </p><dl> <dt><i>pro</i></dt> <dd> reference to the project object </dd><dt><i>filter</i></dt> <dd> file type filter (string) </dd><dt><i>parent</i></dt> <dd> parent widget of this dialog (QWidget) </dd><dt><i>name</i></dt> <dd> name of this dialog (string) </dd><dt><i>startdir</i></dt> <dd> start directory for the selection dialog </dd> </dl><a NAME="AddDirectoryDialog.__dirDialog" ID="AddDirectoryDialog.__dirDialog"></a> <h4>AddDirectoryDialog.__dirDialog</h4> <b>__dirDialog</b>(<i>textEdit</i>) <p> Private slot to display a directory selection dialog. </p><dl> <dt><i>textEdit</i></dt> <dd> field for the display of the selected directory name (QLineEdit) </dd> </dl><a NAME="AddDirectoryDialog.getData" ID="AddDirectoryDialog.getData"></a> <h4>AddDirectoryDialog.getData</h4> <b>getData</b>(<i></i>) <p> Public slot to retrieve the dialogs data. </p><dl> <dt>Returns:</dt> <dd> tuple of four values (string, string, string, boolean) giving the selected file type, the source and target directory and a flag indicating a recursive add </dd> </dl><a NAME="AddDirectoryDialog.on_filterComboBox_highlighted" ID="AddDirectoryDialog.on_filterComboBox_highlighted"></a> <h4>AddDirectoryDialog.on_filterComboBox_highlighted</h4> <b>on_filterComboBox_highlighted</b>(<i>fileType</i>) <p> Private slot to handle the selection of a file type. </p><dl> <dt><i>fileType</i></dt> <dd> the selected file type (string) </dd> </dl><a NAME="AddDirectoryDialog.on_sourceDirButton_clicked" ID="AddDirectoryDialog.on_sourceDirButton_clicked"></a> <h4>AddDirectoryDialog.on_sourceDirButton_clicked</h4> <b>on_sourceDirButton_clicked</b>(<i></i>) <p> Private slot to handle the source dir button press. </p><a NAME="AddDirectoryDialog.on_sourceDirEdit_textChanged" ID="AddDirectoryDialog.on_sourceDirEdit_textChanged"></a> <h4>AddDirectoryDialog.on_sourceDirEdit_textChanged</h4> <b>on_sourceDirEdit_textChanged</b>(<i>dir</i>) <p> Private slot to handle the source dir text changed. </p><p> If the entered source directory is a subdirectory of the current projects main directory, the target directory path is synchronized. It is assumed, that the user wants to add a bunch of files to the project in place. </p><dl> <dt><i>dir</i></dt> <dd> the text of the source directory line edit (string) </dd> </dl><a NAME="AddDirectoryDialog.on_targetDirButton_clicked" ID="AddDirectoryDialog.on_targetDirButton_clicked"></a> <h4>AddDirectoryDialog.on_targetDirButton_clicked</h4> <b>on_targetDirButton_clicked</b>(<i></i>) <p> Private slot to handle the target dir button press. </p> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>