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