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