|
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.ViewManager.BookmarkedFilesDialog</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.ViewManager.BookmarkedFilesDialog</h1> |
|
24 <p> |
|
25 Module implementing a configuration dialog for the bookmarked files menu. |
|
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="#BookmarkedFilesDialog">BookmarkedFilesDialog</a></td> |
|
35 <td>Class implementing a configuration dialog for the bookmarked files menu.</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="BookmarkedFilesDialog" ID="BookmarkedFilesDialog"></a> |
|
44 <h2>BookmarkedFilesDialog</h2> |
|
45 <p> |
|
46 Class implementing a configuration dialog for the bookmarked files menu. |
|
47 </p> |
|
48 <h3>Derived from</h3> |
|
49 QDialog, Ui_BookmarkedFilesDialog |
|
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="#BookmarkedFilesDialog.__init__">BookmarkedFilesDialog</a></td> |
|
58 <td>Constructor</td> |
|
59 </tr><tr> |
|
60 <td><a href="#BookmarkedFilesDialog.__swap">__swap</a></td> |
|
61 <td>Private method used two swap two list entries given by their index.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#BookmarkedFilesDialog.getBookmarkedFiles">getBookmarkedFiles</a></td> |
|
64 <td>Public method to retrieve the tools list.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#BookmarkedFilesDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
|
67 <td>Private slot to add a new entry.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#BookmarkedFilesDialog.on_changeButton_clicked">on_changeButton_clicked</a></td> |
|
70 <td>Private slot to change an entry.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#BookmarkedFilesDialog.on_deleteButton_clicked">on_deleteButton_clicked</a></td> |
|
73 <td>Private slot to delete the selected entry.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#BookmarkedFilesDialog.on_downButton_clicked">on_downButton_clicked</a></td> |
|
76 <td>Private slot to move an entry down in the list.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#BookmarkedFilesDialog.on_fileButton_clicked">on_fileButton_clicked</a></td> |
|
79 <td>Private slot to handle the file selection via a file selection dialog.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#BookmarkedFilesDialog.on_fileEdit_textChanged">on_fileEdit_textChanged</a></td> |
|
82 <td>Private slot to handle the textChanged signal of the file edit.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#BookmarkedFilesDialog.on_filesList_currentRowChanged">on_filesList_currentRowChanged</a></td> |
|
85 <td>Private slot to set the lineedit depending on the selected entry.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#BookmarkedFilesDialog.on_upButton_clicked">on_upButton_clicked</a></td> |
|
88 <td>Private slot to move an entry up in the list.</td> |
|
89 </tr> |
|
90 </table> |
|
91 <a NAME="BookmarkedFilesDialog.__init__" ID="BookmarkedFilesDialog.__init__"></a> |
|
92 <h4>BookmarkedFilesDialog (Constructor)</h4> |
|
93 <b>BookmarkedFilesDialog</b>(<i>bookmarks, parent = None</i>) |
|
94 <p> |
|
95 Constructor |
|
96 </p><dl> |
|
97 <dt><i>bookmarks</i></dt> |
|
98 <dd> |
|
99 list of bookmarked files (list of strings) |
|
100 </dd><dt><i>parent</i></dt> |
|
101 <dd> |
|
102 parent widget (QWidget) |
|
103 </dd> |
|
104 </dl><a NAME="BookmarkedFilesDialog.__swap" ID="BookmarkedFilesDialog.__swap"></a> |
|
105 <h4>BookmarkedFilesDialog.__swap</h4> |
|
106 <b>__swap</b>(<i>itm1, itm2</i>) |
|
107 <p> |
|
108 Private method used two swap two list entries given by their index. |
|
109 </p><dl> |
|
110 <dt><i>itm1</i></dt> |
|
111 <dd> |
|
112 index of first entry (int) |
|
113 </dd><dt><i>itm2</i></dt> |
|
114 <dd> |
|
115 index of second entry (int) |
|
116 </dd> |
|
117 </dl><a NAME="BookmarkedFilesDialog.getBookmarkedFiles" ID="BookmarkedFilesDialog.getBookmarkedFiles"></a> |
|
118 <h4>BookmarkedFilesDialog.getBookmarkedFiles</h4> |
|
119 <b>getBookmarkedFiles</b>(<i></i>) |
|
120 <p> |
|
121 Public method to retrieve the tools list. |
|
122 </p><dl> |
|
123 <dt>Returns:</dt> |
|
124 <dd> |
|
125 a list of filenames (list of strings) |
|
126 </dd> |
|
127 </dl><a NAME="BookmarkedFilesDialog.on_addButton_clicked" ID="BookmarkedFilesDialog.on_addButton_clicked"></a> |
|
128 <h4>BookmarkedFilesDialog.on_addButton_clicked</h4> |
|
129 <b>on_addButton_clicked</b>(<i></i>) |
|
130 <p> |
|
131 Private slot to add a new entry. |
|
132 </p><a NAME="BookmarkedFilesDialog.on_changeButton_clicked" ID="BookmarkedFilesDialog.on_changeButton_clicked"></a> |
|
133 <h4>BookmarkedFilesDialog.on_changeButton_clicked</h4> |
|
134 <b>on_changeButton_clicked</b>(<i></i>) |
|
135 <p> |
|
136 Private slot to change an entry. |
|
137 </p><a NAME="BookmarkedFilesDialog.on_deleteButton_clicked" ID="BookmarkedFilesDialog.on_deleteButton_clicked"></a> |
|
138 <h4>BookmarkedFilesDialog.on_deleteButton_clicked</h4> |
|
139 <b>on_deleteButton_clicked</b>(<i></i>) |
|
140 <p> |
|
141 Private slot to delete the selected entry. |
|
142 </p><a NAME="BookmarkedFilesDialog.on_downButton_clicked" ID="BookmarkedFilesDialog.on_downButton_clicked"></a> |
|
143 <h4>BookmarkedFilesDialog.on_downButton_clicked</h4> |
|
144 <b>on_downButton_clicked</b>(<i></i>) |
|
145 <p> |
|
146 Private slot to move an entry down in the list. |
|
147 </p><a NAME="BookmarkedFilesDialog.on_fileButton_clicked" ID="BookmarkedFilesDialog.on_fileButton_clicked"></a> |
|
148 <h4>BookmarkedFilesDialog.on_fileButton_clicked</h4> |
|
149 <b>on_fileButton_clicked</b>(<i></i>) |
|
150 <p> |
|
151 Private slot to handle the file selection via a file selection dialog. |
|
152 </p><a NAME="BookmarkedFilesDialog.on_fileEdit_textChanged" ID="BookmarkedFilesDialog.on_fileEdit_textChanged"></a> |
|
153 <h4>BookmarkedFilesDialog.on_fileEdit_textChanged</h4> |
|
154 <b>on_fileEdit_textChanged</b>(<i>txt</i>) |
|
155 <p> |
|
156 Private slot to handle the textChanged signal of the file edit. |
|
157 </p><dl> |
|
158 <dt><i>txt</i></dt> |
|
159 <dd> |
|
160 the text of the file edit (string) |
|
161 </dd> |
|
162 </dl><a NAME="BookmarkedFilesDialog.on_filesList_currentRowChanged" ID="BookmarkedFilesDialog.on_filesList_currentRowChanged"></a> |
|
163 <h4>BookmarkedFilesDialog.on_filesList_currentRowChanged</h4> |
|
164 <b>on_filesList_currentRowChanged</b>(<i>row</i>) |
|
165 <p> |
|
166 Private slot to set the lineedit depending on the selected entry. |
|
167 </p><dl> |
|
168 <dt><i>row</i></dt> |
|
169 <dd> |
|
170 the current row (integer) |
|
171 </dd> |
|
172 </dl><a NAME="BookmarkedFilesDialog.on_upButton_clicked" ID="BookmarkedFilesDialog.on_upButton_clicked"></a> |
|
173 <h4>BookmarkedFilesDialog.on_upButton_clicked</h4> |
|
174 <b>on_upButton_clicked</b>(<i></i>) |
|
175 <p> |
|
176 Private slot to move an entry up in the list. |
|
177 </p> |
|
178 <div align="right"><a href="#top">Up</a></div> |
|
179 <hr /> |
|
180 </body></html> |