1
<?xml version="1.0" encoding="utf-8"?>
2
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
5
<title>eric4.Project.AddDirectoryDialog</title>
9
margin: 0em 1em 10em 1em;
13
h1 { color: white; background: #4FA4FF; }
14
h2 { color: white; background: #4FA4FF; }
15
h3 { color: white; background: #00557F; }
16
h4 { color: white; background: #00557F; }
22
<body><a NAME="top" ID="top"></a>
23
<h1>eric4.Project.AddDirectoryDialog</h1>
25
Module implementing a dialog to add files of a directory to the project.
30
<td><a href="#AddDirectoryDialog">AddDirectoryDialog</a></td>
31
<td>Class implementing a dialog to add files of a directory to the project.</td>
36
<tr><td>None</td></tr>
39
<a NAME="AddDirectoryDialog" ID="AddDirectoryDialog"></a>
40
<h2>AddDirectoryDialog</h2>
42
Class implementing a dialog to add files of a directory to the project.
45
QDialog, Ui_AddDirectoryDialog
49
<td><a href="#AddDirectoryDialog.__init__">AddDirectoryDialog</a></td>
52
<td><a href="#AddDirectoryDialog.__dirDialog">__dirDialog</a></td>
53
<td>Private slot to display a directory selection dialog.</td>
55
<td><a href="#AddDirectoryDialog.getData">getData</a></td>
56
<td>Public slot to retrieve the dialogs data.</td>
58
<td><a href="#AddDirectoryDialog.on_filterComboBox_highlighted">on_filterComboBox_highlighted</a></td>
59
<td>Private slot to handle the selection of a file type.</td>
61
<td><a href="#AddDirectoryDialog.on_sourceDirButton_clicked">on_sourceDirButton_clicked</a></td>
62
<td>Private slot to handle the source dir button press.</td>
64
<td><a href="#AddDirectoryDialog.on_sourceDirEdit_textChanged">on_sourceDirEdit_textChanged</a></td>
65
<td>Private slot to handle the source dir text changed.</td>
67
<td><a href="#AddDirectoryDialog.on_targetDirButton_clicked">on_targetDirButton_clicked</a></td>
68
<td>Private slot to handle the target dir button press.</td>
71
<p><a NAME="AddDirectoryDialog.__init__" ID="AddDirectoryDialog.__init__"></a>
72
<h4>AddDirectoryDialog (Constructor)</h4>
73
<b>AddDirectoryDialog</b>(<i>pro, filter = 'source', parent = None, name = None, startdir = None</i>)
79
reference to the project object
80
</dd><dt><i>filter</i></dt>
82
file type filter (string or QString)
83
</dd><dt><i>parent</i></dt>
85
parent widget of this dialog (QWidget)
86
</dd><dt><i>name</i></dt>
88
name of this dialog (string or QString)
89
</dd><dt><i>startdir</i></dt>
91
start directory for the selection dialog
93
</dl><a NAME="AddDirectoryDialog.__dirDialog" ID="AddDirectoryDialog.__dirDialog"></a>
94
<h4>AddDirectoryDialog.__dirDialog</h4>
95
<b>__dirDialog</b>(<i>textEdit</i>)
97
Private slot to display a directory selection dialog.
99
<dt><i>textEdit</i></dt>
101
field for the display of the selected directory name
104
</dl><a NAME="AddDirectoryDialog.getData" ID="AddDirectoryDialog.getData"></a>
105
<h4>AddDirectoryDialog.getData</h4>
106
<b>getData</b>(<i></i>)
108
Public slot to retrieve the dialogs data.
112
tuple of four values (string, string, string, boolean) giving
113
the selected file extension, the source and target directory and
114
a flag indicating a recursive add
116
</dl><a NAME="AddDirectoryDialog.on_filterComboBox_highlighted" ID="AddDirectoryDialog.on_filterComboBox_highlighted"></a>
117
<h4>AddDirectoryDialog.on_filterComboBox_highlighted</h4>
118
<b>on_filterComboBox_highlighted</b>(<i>fileType</i>)
120
Private slot to handle the selection of a file type.
122
<dt><i>fileType</i></dt>
124
the selected file type (QString)
126
</dl><a NAME="AddDirectoryDialog.on_sourceDirButton_clicked" ID="AddDirectoryDialog.on_sourceDirButton_clicked"></a>
127
<h4>AddDirectoryDialog.on_sourceDirButton_clicked</h4>
128
<b>on_sourceDirButton_clicked</b>(<i></i>)
130
Private slot to handle the source dir button press.
131
</p><a NAME="AddDirectoryDialog.on_sourceDirEdit_textChanged" ID="AddDirectoryDialog.on_sourceDirEdit_textChanged"></a>
132
<h4>AddDirectoryDialog.on_sourceDirEdit_textChanged</h4>
133
<b>on_sourceDirEdit_textChanged</b>(<i>dir</i>)
135
Private slot to handle the source dir text changed.
137
If the entered source directory is a subdirectory of the current
138
projects main directory, the target directory path is synchronized.
139
It is assumed, that the user wants to add a bunch of files to
140
the project in place.
144
the text of the source directory line edit
146
</dl><a NAME="AddDirectoryDialog.on_targetDirButton_clicked" ID="AddDirectoryDialog.on_targetDirButton_clicked"></a>
147
<h4>AddDirectoryDialog.on_targetDirButton_clicked</h4>
148
<b>on_targetDirButton_clicked</b>(<i></i>)
150
Private slot to handle the target dir button press.
152
<div align="right"><a href="#top">Up</a></div>
b'\\ No newline at end of file'