Documentation/Source/eric4.Project.AddDirectoryDialog.html

changeset 3
0d9daebf5b8c
equal deleted inserted replaced
2:bc6196164237 3:0d9daebf5b8c
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'>
4 <html><head>
5 <title>eric4.Project.AddDirectoryDialog</title>
6 <style>
7 body {
8 background:white;
9 margin: 0em 1em 10em 1em;
10 color: black;
11 }
12
13 h1 { color: white; background: #4FA4FF; }
14 h2 { color: white; background: #4FA4FF; }
15 h3 { color: white; background: #00557F; }
16 h4 { color: white; background: #00557F; }
17
18 a { color: #AA5500; }
19
20 </style>
21 </head>
22 <body><a NAME="top" ID="top"></a>
23 <h1>eric4.Project.AddDirectoryDialog</h1>
24 <p>
25 Module implementing a dialog to add files of a directory to the project.
26 </p>
27 <h3>Global Attributes</h3>
28 <table>
29 <tr><td>None</td></tr>
30 </table>
31 <h3>Classes</h3>
32 <table>
33 <tr>
34 <td><a href="#AddDirectoryDialog">AddDirectoryDialog</a></td>
35 <td>Class implementing a dialog to add files of a directory to the project.</td>
36 </tr>
37 </table>
38 <h3>Functions</h3>
39 <table>
40 <tr><td>None</td></tr>
41 </table>
42 <hr /><hr />
43 <a NAME="AddDirectoryDialog" ID="AddDirectoryDialog"></a>
44 <h2>AddDirectoryDialog</h2>
45 <p>
46 Class implementing a dialog to add files of a directory to the project.
47 </p>
48 <h3>Derived from</h3>
49 QDialog, Ui_AddDirectoryDialog
50 <h3>Class Attributes</h3>
51 <table>
52 <tr><td>None</td></tr>
53 </table>
54 <h3>Methods</h3>
55 <table>
56 <tr>
57 <td><a href="#AddDirectoryDialog.__init__">AddDirectoryDialog</a></td>
58 <td>Constructor</td>
59 </tr><tr>
60 <td><a href="#AddDirectoryDialog.__dirDialog">__dirDialog</a></td>
61 <td>Private slot to display a directory selection dialog.</td>
62 </tr><tr>
63 <td><a href="#AddDirectoryDialog.getData">getData</a></td>
64 <td>Public slot to retrieve the dialogs data.</td>
65 </tr><tr>
66 <td><a href="#AddDirectoryDialog.on_filterComboBox_highlighted">on_filterComboBox_highlighted</a></td>
67 <td>Private slot to handle the selection of a file type.</td>
68 </tr><tr>
69 <td><a href="#AddDirectoryDialog.on_sourceDirButton_clicked">on_sourceDirButton_clicked</a></td>
70 <td>Private slot to handle the source dir button press.</td>
71 </tr><tr>
72 <td><a href="#AddDirectoryDialog.on_sourceDirEdit_textChanged">on_sourceDirEdit_textChanged</a></td>
73 <td>Private slot to handle the source dir text changed.</td>
74 </tr><tr>
75 <td><a href="#AddDirectoryDialog.on_targetDirButton_clicked">on_targetDirButton_clicked</a></td>
76 <td>Private slot to handle the target dir button press.</td>
77 </tr>
78 </table>
79 <a NAME="AddDirectoryDialog.__init__" ID="AddDirectoryDialog.__init__"></a>
80 <h4>AddDirectoryDialog (Constructor)</h4>
81 <b>AddDirectoryDialog</b>(<i>pro, filter = 'source', parent = None, name = None, startdir = None</i>)
82 <p>
83 Constructor
84 </p><dl>
85 <dt><i>pro</i></dt>
86 <dd>
87 reference to the project object
88 </dd><dt><i>filter</i></dt>
89 <dd>
90 file type filter (string)
91 </dd><dt><i>parent</i></dt>
92 <dd>
93 parent widget of this dialog (QWidget)
94 </dd><dt><i>name</i></dt>
95 <dd>
96 name of this dialog (string)
97 </dd><dt><i>startdir</i></dt>
98 <dd>
99 start directory for the selection dialog
100 </dd>
101 </dl><a NAME="AddDirectoryDialog.__dirDialog" ID="AddDirectoryDialog.__dirDialog"></a>
102 <h4>AddDirectoryDialog.__dirDialog</h4>
103 <b>__dirDialog</b>(<i>textEdit</i>)
104 <p>
105 Private slot to display a directory selection dialog.
106 </p><dl>
107 <dt><i>textEdit</i></dt>
108 <dd>
109 field for the display of the selected directory name
110 (QLineEdit)
111 </dd>
112 </dl><a NAME="AddDirectoryDialog.getData" ID="AddDirectoryDialog.getData"></a>
113 <h4>AddDirectoryDialog.getData</h4>
114 <b>getData</b>(<i></i>)
115 <p>
116 Public slot to retrieve the dialogs data.
117 </p><dl>
118 <dt>Returns:</dt>
119 <dd>
120 tuple of four values (string, string, string, boolean) giving
121 the selected file type, the source and target directory and
122 a flag indicating a recursive add
123 </dd>
124 </dl><a NAME="AddDirectoryDialog.on_filterComboBox_highlighted" ID="AddDirectoryDialog.on_filterComboBox_highlighted"></a>
125 <h4>AddDirectoryDialog.on_filterComboBox_highlighted</h4>
126 <b>on_filterComboBox_highlighted</b>(<i>fileType</i>)
127 <p>
128 Private slot to handle the selection of a file type.
129 </p><dl>
130 <dt><i>fileType</i></dt>
131 <dd>
132 the selected file type (string)
133 </dd>
134 </dl><a NAME="AddDirectoryDialog.on_sourceDirButton_clicked" ID="AddDirectoryDialog.on_sourceDirButton_clicked"></a>
135 <h4>AddDirectoryDialog.on_sourceDirButton_clicked</h4>
136 <b>on_sourceDirButton_clicked</b>(<i></i>)
137 <p>
138 Private slot to handle the source dir button press.
139 </p><a NAME="AddDirectoryDialog.on_sourceDirEdit_textChanged" ID="AddDirectoryDialog.on_sourceDirEdit_textChanged"></a>
140 <h4>AddDirectoryDialog.on_sourceDirEdit_textChanged</h4>
141 <b>on_sourceDirEdit_textChanged</b>(<i>dir</i>)
142 <p>
143 Private slot to handle the source dir text changed.
144 </p><p>
145 If the entered source directory is a subdirectory of the current
146 projects main directory, the target directory path is synchronized.
147 It is assumed, that the user wants to add a bunch of files to
148 the project in place.
149 </p><dl>
150 <dt><i>dir</i></dt>
151 <dd>
152 the text of the source directory line edit (string)
153 </dd>
154 </dl><a NAME="AddDirectoryDialog.on_targetDirButton_clicked" ID="AddDirectoryDialog.on_targetDirButton_clicked"></a>
155 <h4>AddDirectoryDialog.on_targetDirButton_clicked</h4>
156 <b>on_targetDirButton_clicked</b>(<i></i>)
157 <p>
158 Private slot to handle the target dir button press.
159 </p>
160 <div align="right"><a href="#top">Up</a></div>
161 <hr />
162 </body></html>

eric ide

mercurial