|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.ViewManager.BookmarkedFilesDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.ViewManager.BookmarkedFilesDialog</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a configuration dialog for the bookmarked files menu. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#BookmarkedFilesDialog">BookmarkedFilesDialog</a></td> |
|
39 <td>Class implementing a configuration dialog for the bookmarked files menu.</td> |
|
40 </tr> |
|
41 </table> |
|
42 <h3>Functions</h3> |
|
43 |
|
44 <table> |
|
45 <tr><td>None</td></tr> |
|
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
|
49 <a NAME="BookmarkedFilesDialog" ID="BookmarkedFilesDialog"></a> |
|
50 <h2>BookmarkedFilesDialog</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing a configuration dialog for the bookmarked files menu. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 QDialog, Ui_BookmarkedFilesDialog |
|
57 <h3>Class Attributes</h3> |
|
58 |
|
59 <table> |
|
60 <tr><td>None</td></tr> |
|
61 </table> |
|
62 <h3>Class Methods</h3> |
|
63 |
|
64 <table> |
|
65 <tr><td>None</td></tr> |
|
66 </table> |
|
67 <h3>Methods</h3> |
|
68 |
|
69 <table> |
|
70 |
|
71 <tr> |
|
72 <td><a href="#BookmarkedFilesDialog.__init__">BookmarkedFilesDialog</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#BookmarkedFilesDialog.__swap">__swap</a></td> |
|
77 <td>Private method used two swap two list entries given by their index.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#BookmarkedFilesDialog.getBookmarkedFiles">getBookmarkedFiles</a></td> |
|
81 <td>Public method to retrieve the tools list.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#BookmarkedFilesDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
|
85 <td>Private slot to add a new entry.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#BookmarkedFilesDialog.on_changeButton_clicked">on_changeButton_clicked</a></td> |
|
89 <td>Private slot to change an entry.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#BookmarkedFilesDialog.on_deleteButton_clicked">on_deleteButton_clicked</a></td> |
|
93 <td>Private slot to delete the selected entry.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#BookmarkedFilesDialog.on_downButton_clicked">on_downButton_clicked</a></td> |
|
97 <td>Private slot to move an entry down in the list.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#BookmarkedFilesDialog.on_filePicker_textChanged">on_filePicker_textChanged</a></td> |
|
101 <td>Private slot to handle the textChanged signal of the file edit.</td> |
|
102 </tr> |
|
103 <tr> |
|
104 <td><a href="#BookmarkedFilesDialog.on_filesList_currentRowChanged">on_filesList_currentRowChanged</a></td> |
|
105 <td>Private slot to set the lineedit depending on the selected entry.</td> |
|
106 </tr> |
|
107 <tr> |
|
108 <td><a href="#BookmarkedFilesDialog.on_upButton_clicked">on_upButton_clicked</a></td> |
|
109 <td>Private slot to move an entry up in the list.</td> |
|
110 </tr> |
|
111 </table> |
|
112 <h3>Static Methods</h3> |
|
113 |
|
114 <table> |
|
115 <tr><td>None</td></tr> |
|
116 </table> |
|
117 |
|
118 <a NAME="BookmarkedFilesDialog.__init__" ID="BookmarkedFilesDialog.__init__"></a> |
|
119 <h4>BookmarkedFilesDialog (Constructor)</h4> |
|
120 <b>BookmarkedFilesDialog</b>(<i>bookmarks, parent=None</i>) |
|
121 |
|
122 <p> |
|
123 Constructor |
|
124 </p> |
|
125 <dl> |
|
126 |
|
127 <dt><i>bookmarks</i></dt> |
|
128 <dd> |
|
129 list of bookmarked files (list of strings) |
|
130 </dd> |
|
131 <dt><i>parent</i></dt> |
|
132 <dd> |
|
133 parent widget (QWidget) |
|
134 </dd> |
|
135 </dl> |
|
136 <a NAME="BookmarkedFilesDialog.__swap" ID="BookmarkedFilesDialog.__swap"></a> |
|
137 <h4>BookmarkedFilesDialog.__swap</h4> |
|
138 <b>__swap</b>(<i>itm1, itm2</i>) |
|
139 |
|
140 <p> |
|
141 Private method used two swap two list entries given by their index. |
|
142 </p> |
|
143 <dl> |
|
144 |
|
145 <dt><i>itm1</i></dt> |
|
146 <dd> |
|
147 index of first entry (int) |
|
148 </dd> |
|
149 <dt><i>itm2</i></dt> |
|
150 <dd> |
|
151 index of second entry (int) |
|
152 </dd> |
|
153 </dl> |
|
154 <a NAME="BookmarkedFilesDialog.getBookmarkedFiles" ID="BookmarkedFilesDialog.getBookmarkedFiles"></a> |
|
155 <h4>BookmarkedFilesDialog.getBookmarkedFiles</h4> |
|
156 <b>getBookmarkedFiles</b>(<i></i>) |
|
157 |
|
158 <p> |
|
159 Public method to retrieve the tools list. |
|
160 </p> |
|
161 <dl> |
|
162 <dt>Return:</dt> |
|
163 <dd> |
|
164 a list of filenames (list of strings) |
|
165 </dd> |
|
166 </dl> |
|
167 <a NAME="BookmarkedFilesDialog.on_addButton_clicked" ID="BookmarkedFilesDialog.on_addButton_clicked"></a> |
|
168 <h4>BookmarkedFilesDialog.on_addButton_clicked</h4> |
|
169 <b>on_addButton_clicked</b>(<i></i>) |
|
170 |
|
171 <p> |
|
172 Private slot to add a new entry. |
|
173 </p> |
|
174 <a NAME="BookmarkedFilesDialog.on_changeButton_clicked" ID="BookmarkedFilesDialog.on_changeButton_clicked"></a> |
|
175 <h4>BookmarkedFilesDialog.on_changeButton_clicked</h4> |
|
176 <b>on_changeButton_clicked</b>(<i></i>) |
|
177 |
|
178 <p> |
|
179 Private slot to change an entry. |
|
180 </p> |
|
181 <a NAME="BookmarkedFilesDialog.on_deleteButton_clicked" ID="BookmarkedFilesDialog.on_deleteButton_clicked"></a> |
|
182 <h4>BookmarkedFilesDialog.on_deleteButton_clicked</h4> |
|
183 <b>on_deleteButton_clicked</b>(<i></i>) |
|
184 |
|
185 <p> |
|
186 Private slot to delete the selected entry. |
|
187 </p> |
|
188 <a NAME="BookmarkedFilesDialog.on_downButton_clicked" ID="BookmarkedFilesDialog.on_downButton_clicked"></a> |
|
189 <h4>BookmarkedFilesDialog.on_downButton_clicked</h4> |
|
190 <b>on_downButton_clicked</b>(<i></i>) |
|
191 |
|
192 <p> |
|
193 Private slot to move an entry down in the list. |
|
194 </p> |
|
195 <a NAME="BookmarkedFilesDialog.on_filePicker_textChanged" ID="BookmarkedFilesDialog.on_filePicker_textChanged"></a> |
|
196 <h4>BookmarkedFilesDialog.on_filePicker_textChanged</h4> |
|
197 <b>on_filePicker_textChanged</b>(<i>txt</i>) |
|
198 |
|
199 <p> |
|
200 Private slot to handle the textChanged signal of the file edit. |
|
201 </p> |
|
202 <dl> |
|
203 |
|
204 <dt><i>txt</i></dt> |
|
205 <dd> |
|
206 the text of the file edit (string) |
|
207 </dd> |
|
208 </dl> |
|
209 <a NAME="BookmarkedFilesDialog.on_filesList_currentRowChanged" ID="BookmarkedFilesDialog.on_filesList_currentRowChanged"></a> |
|
210 <h4>BookmarkedFilesDialog.on_filesList_currentRowChanged</h4> |
|
211 <b>on_filesList_currentRowChanged</b>(<i>row</i>) |
|
212 |
|
213 <p> |
|
214 Private slot to set the lineedit depending on the selected entry. |
|
215 </p> |
|
216 <dl> |
|
217 |
|
218 <dt><i>row</i></dt> |
|
219 <dd> |
|
220 the current row (integer) |
|
221 </dd> |
|
222 </dl> |
|
223 <a NAME="BookmarkedFilesDialog.on_upButton_clicked" ID="BookmarkedFilesDialog.on_upButton_clicked"></a> |
|
224 <h4>BookmarkedFilesDialog.on_upButton_clicked</h4> |
|
225 <b>on_upButton_clicked</b>(<i></i>) |
|
226 |
|
227 <p> |
|
228 Private slot to move an entry up in the list. |
|
229 </p> |
|
230 <div align="right"><a href="#top">Up</a></div> |
|
231 <hr /> |
|
232 </body></html> |