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