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