|
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.Helpviewer.Bookmarks.BookmarksToolBar</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.Helpviewer.Bookmarks.BookmarksToolBar</h1> |
|
24 <p> |
|
25 Module implementing a tool bar showing bookmarks. |
|
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="#BookmarksToolBar">BookmarksToolBar</a></td> |
|
35 <td>Class implementing a tool bar showing bookmarks.</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="BookmarksToolBar" ID="BookmarksToolBar"></a> |
|
44 <h2>BookmarksToolBar</h2> |
|
45 <p> |
|
46 Class implementing a tool bar showing bookmarks. |
|
47 </p><h4>Signals</h4> |
|
48 <dl> |
|
49 <dt>newUrl(const QUrl&, const QString&)</dt> |
|
50 <dd> |
|
51 emitted to open a URL in a new tab |
|
52 </dd><dt>openUrl(const QUrl&, const QString&)</dt> |
|
53 <dd> |
|
54 emitted to open a URL in the current |
|
55 tab |
|
56 </dd> |
|
57 </dl> |
|
58 <h3>Derived from</h3> |
|
59 E4ModelToolBar |
|
60 <h3>Class Attributes</h3> |
|
61 <table> |
|
62 <tr><td>None</td></tr> |
|
63 </table> |
|
64 <h3>Methods</h3> |
|
65 <table> |
|
66 <tr> |
|
67 <td><a href="#BookmarksToolBar.__init__">BookmarksToolBar</a></td> |
|
68 <td>Constructor</td> |
|
69 </tr><tr> |
|
70 <td><a href="#BookmarksToolBar.__bookmarkActivated">__bookmarkActivated</a></td> |
|
71 <td>Private slot handling the activation of a bookmark.</td> |
|
72 </tr><tr> |
|
73 <td><a href="#BookmarksToolBar.__contextMenuRequested">__contextMenuRequested</a></td> |
|
74 <td>Private slot to handle the context menu request.</td> |
|
75 </tr><tr> |
|
76 <td><a href="#BookmarksToolBar.__newBookmark">__newBookmark</a></td> |
|
77 <td>Private slot to add a new bookmark.</td> |
|
78 </tr><tr> |
|
79 <td><a href="#BookmarksToolBar.__newFolder">__newFolder</a></td> |
|
80 <td>Private slot to add a new bookmarks folder.</td> |
|
81 </tr><tr> |
|
82 <td><a href="#BookmarksToolBar.__openBookmark">__openBookmark</a></td> |
|
83 <td>Private slot to open a bookmark in the current browser tab.</td> |
|
84 </tr><tr> |
|
85 <td><a href="#BookmarksToolBar.__openBookmarkInNewTab">__openBookmarkInNewTab</a></td> |
|
86 <td>Private slot to open a bookmark in a new browser tab.</td> |
|
87 </tr><tr> |
|
88 <td><a href="#BookmarksToolBar.__openToolBarBookmark">__openToolBarBookmark</a></td> |
|
89 <td>Private slot to open a bookmark in the current browser tab.</td> |
|
90 </tr><tr> |
|
91 <td><a href="#BookmarksToolBar.__removeBookmark">__removeBookmark</a></td> |
|
92 <td>Private slot to remove a bookmark.</td> |
|
93 </tr><tr> |
|
94 <td><a href="#BookmarksToolBar._createMenu">_createMenu</a></td> |
|
95 <td>Protected method to create the menu for a tool bar action.</td> |
|
96 </tr> |
|
97 </table> |
|
98 <a NAME="BookmarksToolBar.__init__" ID="BookmarksToolBar.__init__"></a> |
|
99 <h4>BookmarksToolBar (Constructor)</h4> |
|
100 <b>BookmarksToolBar</b>(<i>model, parent = None</i>) |
|
101 <p> |
|
102 Constructor |
|
103 </p><dl> |
|
104 <dt><i>model</i></dt> |
|
105 <dd> |
|
106 reference to the bookmarks model (BookmarksModel) |
|
107 </dd><dt><i>parent</i></dt> |
|
108 <dd> |
|
109 reference to the parent widget (QWidget) |
|
110 </dd> |
|
111 </dl><a NAME="BookmarksToolBar.__bookmarkActivated" ID="BookmarksToolBar.__bookmarkActivated"></a> |
|
112 <h4>BookmarksToolBar.__bookmarkActivated</h4> |
|
113 <b>__bookmarkActivated</b>(<i>idx</i>) |
|
114 <p> |
|
115 Private slot handling the activation of a bookmark. |
|
116 </p><dl> |
|
117 <dt><i>idx</i></dt> |
|
118 <dd> |
|
119 index of the activated bookmark (QModelIndex) |
|
120 </dd> |
|
121 </dl><a NAME="BookmarksToolBar.__contextMenuRequested" ID="BookmarksToolBar.__contextMenuRequested"></a> |
|
122 <h4>BookmarksToolBar.__contextMenuRequested</h4> |
|
123 <b>__contextMenuRequested</b>(<i>pos</i>) |
|
124 <p> |
|
125 Private slot to handle the context menu request. |
|
126 </p><dl> |
|
127 <dt><i>pos</i></dt> |
|
128 <dd> |
|
129 position the context menu shall be shown (QPoint) |
|
130 </dd> |
|
131 </dl><a NAME="BookmarksToolBar.__newBookmark" ID="BookmarksToolBar.__newBookmark"></a> |
|
132 <h4>BookmarksToolBar.__newBookmark</h4> |
|
133 <b>__newBookmark</b>(<i></i>) |
|
134 <p> |
|
135 Private slot to add a new bookmark. |
|
136 </p><a NAME="BookmarksToolBar.__newFolder" ID="BookmarksToolBar.__newFolder"></a> |
|
137 <h4>BookmarksToolBar.__newFolder</h4> |
|
138 <b>__newFolder</b>(<i></i>) |
|
139 <p> |
|
140 Private slot to add a new bookmarks folder. |
|
141 </p><a NAME="BookmarksToolBar.__openBookmark" ID="BookmarksToolBar.__openBookmark"></a> |
|
142 <h4>BookmarksToolBar.__openBookmark</h4> |
|
143 <b>__openBookmark</b>(<i></i>) |
|
144 <p> |
|
145 Private slot to open a bookmark in the current browser tab. |
|
146 </p><a NAME="BookmarksToolBar.__openBookmarkInNewTab" ID="BookmarksToolBar.__openBookmarkInNewTab"></a> |
|
147 <h4>BookmarksToolBar.__openBookmarkInNewTab</h4> |
|
148 <b>__openBookmarkInNewTab</b>(<i></i>) |
|
149 <p> |
|
150 Private slot to open a bookmark in a new browser tab. |
|
151 </p><a NAME="BookmarksToolBar.__openToolBarBookmark" ID="BookmarksToolBar.__openToolBarBookmark"></a> |
|
152 <h4>BookmarksToolBar.__openToolBarBookmark</h4> |
|
153 <b>__openToolBarBookmark</b>(<i></i>) |
|
154 <p> |
|
155 Private slot to open a bookmark in the current browser tab. |
|
156 </p><a NAME="BookmarksToolBar.__removeBookmark" ID="BookmarksToolBar.__removeBookmark"></a> |
|
157 <h4>BookmarksToolBar.__removeBookmark</h4> |
|
158 <b>__removeBookmark</b>(<i></i>) |
|
159 <p> |
|
160 Private slot to remove a bookmark. |
|
161 </p><a NAME="BookmarksToolBar._createMenu" ID="BookmarksToolBar._createMenu"></a> |
|
162 <h4>BookmarksToolBar._createMenu</h4> |
|
163 <b>_createMenu</b>(<i></i>) |
|
164 <p> |
|
165 Protected method to create the menu for a tool bar action. |
|
166 </p><dl> |
|
167 <dt>Returns:</dt> |
|
168 <dd> |
|
169 menu for a tool bar action (E4ModelMenu) |
|
170 </dd> |
|
171 </dl> |
|
172 <div align="right"><a href="#top">Up</a></div> |
|
173 <hr /> |
|
174 </body></html> |