53 </table> |
53 </table> |
54 <h3>Methods</h3> |
54 <h3>Methods</h3> |
55 <table> |
55 <table> |
56 <tr> |
56 <tr> |
57 <td><a href="#AddDirectoryDialog.__init__">AddDirectoryDialog</a></td> |
57 <td><a href="#AddDirectoryDialog.__init__">AddDirectoryDialog</a></td> |
58 <td>Constructor</td> |
58 <td>Constructor</td> |
59 </tr><tr> |
59 </tr><tr> |
60 <td><a href="#AddDirectoryDialog.__dirDialog">__dirDialog</a></td> |
60 <td><a href="#AddDirectoryDialog.__dirDialog">__dirDialog</a></td> |
61 <td>Private slot to display a directory selection dialog.</td> |
61 <td>Private slot to display a directory selection dialog.</td> |
62 </tr><tr> |
62 </tr><tr> |
63 <td><a href="#AddDirectoryDialog.getData">getData</a></td> |
63 <td><a href="#AddDirectoryDialog.getData">getData</a></td> |
64 <td>Public slot to retrieve the dialogs data.</td> |
64 <td>Public slot to retrieve the dialogs data.</td> |
65 </tr><tr> |
65 </tr><tr> |
66 <td><a href="#AddDirectoryDialog.on_filterComboBox_highlighted">on_filterComboBox_highlighted</a></td> |
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> |
67 <td>Private slot to handle the selection of a file type.</td> |
68 </tr><tr> |
68 </tr><tr> |
69 <td><a href="#AddDirectoryDialog.on_sourceDirButton_clicked">on_sourceDirButton_clicked</a></td> |
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> |
70 <td>Private slot to handle the source dir button press.</td> |
71 </tr><tr> |
71 </tr><tr> |
72 <td><a href="#AddDirectoryDialog.on_sourceDirEdit_textChanged">on_sourceDirEdit_textChanged</a></td> |
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> |
73 <td>Private slot to handle the source dir text changed.</td> |
74 </tr><tr> |
74 </tr><tr> |
75 <td><a href="#AddDirectoryDialog.on_targetDirButton_clicked">on_targetDirButton_clicked</a></td> |
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> |
76 <td>Private slot to handle the target dir button press.</td> |
77 </tr> |
77 </tr> |
78 </table> |
78 </table> |
79 <a NAME="AddDirectoryDialog.__init__" ID="AddDirectoryDialog.__init__"></a> |
79 <a NAME="AddDirectoryDialog.__init__" ID="AddDirectoryDialog.__init__"></a> |
80 <h4>AddDirectoryDialog (Constructor)</h4> |
80 <h4>AddDirectoryDialog (Constructor)</h4> |
81 <b>AddDirectoryDialog</b>(<i>pro, filter = 'source', parent = None, name = None, startdir = None</i>) |
81 <b>AddDirectoryDialog</b>(<i>pro, filter = 'source', parent = None, name = None, startdir = None</i>) |
82 <p> |
82 <p> |
83 Constructor |
83 Constructor |
84 </p><dl> |
84 </p><dl> |
85 <dt><i>pro</i></dt> |
85 <dt><i>pro</i></dt> |
86 <dd> |
86 <dd> |
87 reference to the project object |
87 reference to the project object |
88 </dd><dt><i>filter</i></dt> |
88 </dd><dt><i>filter</i></dt> |
89 <dd> |
89 <dd> |
90 file type filter (string) |
90 file type filter (string) |
91 </dd><dt><i>parent</i></dt> |
91 </dd><dt><i>parent</i></dt> |
92 <dd> |
92 <dd> |
93 parent widget of this dialog (QWidget) |
93 parent widget of this dialog (QWidget) |
94 </dd><dt><i>name</i></dt> |
94 </dd><dt><i>name</i></dt> |
95 <dd> |
95 <dd> |
96 name of this dialog (string) |
96 name of this dialog (string) |
97 </dd><dt><i>startdir</i></dt> |
97 </dd><dt><i>startdir</i></dt> |
98 <dd> |
98 <dd> |
99 start directory for the selection dialog |
99 start directory for the selection dialog |
100 </dd> |
100 </dd> |
101 </dl><a NAME="AddDirectoryDialog.__dirDialog" ID="AddDirectoryDialog.__dirDialog"></a> |
101 </dl><a NAME="AddDirectoryDialog.__dirDialog" ID="AddDirectoryDialog.__dirDialog"></a> |
102 <h4>AddDirectoryDialog.__dirDialog</h4> |
102 <h4>AddDirectoryDialog.__dirDialog</h4> |
103 <b>__dirDialog</b>(<i>textEdit</i>) |
103 <b>__dirDialog</b>(<i>textEdit</i>) |
104 <p> |
104 <p> |
105 Private slot to display a directory selection dialog. |
105 Private slot to display a directory selection dialog. |
106 </p><dl> |
106 </p><dl> |
107 <dt><i>textEdit</i></dt> |
107 <dt><i>textEdit</i></dt> |
108 <dd> |
108 <dd> |
109 field for the display of the selected directory name |
109 field for the display of the selected directory name |
110 (QLineEdit) |
110 (QLineEdit) |
111 </dd> |
111 </dd> |
112 </dl><a NAME="AddDirectoryDialog.getData" ID="AddDirectoryDialog.getData"></a> |
112 </dl><a NAME="AddDirectoryDialog.getData" ID="AddDirectoryDialog.getData"></a> |
113 <h4>AddDirectoryDialog.getData</h4> |
113 <h4>AddDirectoryDialog.getData</h4> |
114 <b>getData</b>(<i></i>) |
114 <b>getData</b>(<i></i>) |
115 <p> |
115 <p> |
116 Public slot to retrieve the dialogs data. |
116 Public slot to retrieve the dialogs data. |
117 </p><dl> |
117 </p><dl> |
118 <dt>Returns:</dt> |
118 <dt>Returns:</dt> |
119 <dd> |
119 <dd> |
120 tuple of four values (string, string, string, boolean) giving |
120 tuple of four values (string, string, string, boolean) giving |
121 the selected file type, the source and target directory and |
121 the selected file type, the source and target directory and |
122 a flag indicating a recursive add |
122 a flag indicating a recursive add |
123 </dd> |
123 </dd> |
124 </dl><a NAME="AddDirectoryDialog.on_filterComboBox_highlighted" ID="AddDirectoryDialog.on_filterComboBox_highlighted"></a> |
124 </dl><a NAME="AddDirectoryDialog.on_filterComboBox_highlighted" ID="AddDirectoryDialog.on_filterComboBox_highlighted"></a> |
125 <h4>AddDirectoryDialog.on_filterComboBox_highlighted</h4> |
125 <h4>AddDirectoryDialog.on_filterComboBox_highlighted</h4> |
126 <b>on_filterComboBox_highlighted</b>(<i>fileType</i>) |
126 <b>on_filterComboBox_highlighted</b>(<i>fileType</i>) |
127 <p> |
127 <p> |
128 Private slot to handle the selection of a file type. |
128 Private slot to handle the selection of a file type. |
129 </p><dl> |
129 </p><dl> |
130 <dt><i>fileType</i></dt> |
130 <dt><i>fileType</i></dt> |
131 <dd> |
131 <dd> |
132 the selected file type (string) |
132 the selected file type (string) |
133 </dd> |
133 </dd> |
134 </dl><a NAME="AddDirectoryDialog.on_sourceDirButton_clicked" ID="AddDirectoryDialog.on_sourceDirButton_clicked"></a> |
134 </dl><a NAME="AddDirectoryDialog.on_sourceDirButton_clicked" ID="AddDirectoryDialog.on_sourceDirButton_clicked"></a> |
135 <h4>AddDirectoryDialog.on_sourceDirButton_clicked</h4> |
135 <h4>AddDirectoryDialog.on_sourceDirButton_clicked</h4> |
136 <b>on_sourceDirButton_clicked</b>(<i></i>) |
136 <b>on_sourceDirButton_clicked</b>(<i></i>) |
137 <p> |
137 <p> |
138 Private slot to handle the source dir button press. |
138 Private slot to handle the source dir button press. |
139 </p><a NAME="AddDirectoryDialog.on_sourceDirEdit_textChanged" ID="AddDirectoryDialog.on_sourceDirEdit_textChanged"></a> |
139 </p><a NAME="AddDirectoryDialog.on_sourceDirEdit_textChanged" ID="AddDirectoryDialog.on_sourceDirEdit_textChanged"></a> |
140 <h4>AddDirectoryDialog.on_sourceDirEdit_textChanged</h4> |
140 <h4>AddDirectoryDialog.on_sourceDirEdit_textChanged</h4> |
141 <b>on_sourceDirEdit_textChanged</b>(<i>dir</i>) |
141 <b>on_sourceDirEdit_textChanged</b>(<i>dir</i>) |
142 <p> |
142 <p> |
143 Private slot to handle the source dir text changed. |
143 Private slot to handle the source dir text changed. |
144 </p><p> |
144 </p><p> |
145 If the entered source directory is a subdirectory of the current |
145 If the entered source directory is a subdirectory of the current |
146 projects main directory, the target directory path is synchronized. |
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 |
147 It is assumed, that the user wants to add a bunch of files to |
148 the project in place. |
148 the project in place. |
149 </p><dl> |
149 </p><dl> |
150 <dt><i>dir</i></dt> |
150 <dt><i>dir</i></dt> |
151 <dd> |
151 <dd> |
152 the text of the source directory line edit (string) |
152 the text of the source directory line edit (string) |
153 </dd> |
153 </dd> |
154 </dl><a NAME="AddDirectoryDialog.on_targetDirButton_clicked" ID="AddDirectoryDialog.on_targetDirButton_clicked"></a> |
154 </dl><a NAME="AddDirectoryDialog.on_targetDirButton_clicked" ID="AddDirectoryDialog.on_targetDirButton_clicked"></a> |
155 <h4>AddDirectoryDialog.on_targetDirButton_clicked</h4> |
155 <h4>AddDirectoryDialog.on_targetDirButton_clicked</h4> |
156 <b>on_targetDirButton_clicked</b>(<i></i>) |
156 <b>on_targetDirButton_clicked</b>(<i></i>) |
157 <p> |
157 <p> |
158 Private slot to handle the target dir button press. |
158 Private slot to handle the target dir button press. |
159 </p> |
159 </p> |
160 <div align="right"><a href="#top">Up</a></div> |
160 <div align="right"><a href="#top">Up</a></div> |
161 <hr /> |
161 <hr /> |
162 </body></html> |
162 </body></html> |