5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.WebBrowser.ZoomManager.ZoomValuesModel</h1> |
9 <h1>eric7.WebBrowser.ZoomManager.ZoomValuesModel</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a model for zoom values management. |
11 Module implementing a model for zoom values management. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
15 <table> |
16 <table> |
16 <tr><td>None</td></tr> |
17 <tr><td>None</td></tr> |
17 </table> |
18 </table> |
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
20 <table> |
21 <table> |
|
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#ZoomValuesModel">ZoomValuesModel</a></td> |
22 <td><a href="#ZoomValuesModel">ZoomValuesModel</a></td> |
25 <td>Class implementing a model for zoom values management.</td> |
23 <td>Class implementing a model for zoom values management.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
28 <table> |
30 <table> |
29 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
30 </table> |
32 </table> |
31 |
33 <hr /> |
32 <hr /> |
34 <hr /> |
33 <hr /> |
35 <a NAME="ZoomValuesModel" ID="ZoomValuesModel"></a> |
34 <a NAME="ZoomValuesModel" ID="ZoomValuesModel"></a> |
36 <h2>ZoomValuesModel</h2> |
35 <h2>ZoomValuesModel</h2> |
37 |
|
38 <p> |
36 <p> |
39 Class implementing a model for zoom values management. |
37 Class implementing a model for zoom values management. |
40 </p> |
38 </p> |
|
39 |
41 <h3>Derived from</h3> |
40 <h3>Derived from</h3> |
42 QAbstractTableModel |
41 QAbstractTableModel |
43 <h3>Class Attributes</h3> |
42 <h3>Class Attributes</h3> |
44 |
43 <table> |
45 <table> |
44 <tr><td>None</td></tr> |
46 <tr><td>None</td></tr> |
45 </table> |
47 </table> |
46 |
48 <h3>Class Methods</h3> |
47 <h3>Class Methods</h3> |
49 |
48 <table> |
50 <table> |
49 <tr><td>None</td></tr> |
51 <tr><td>None</td></tr> |
50 </table> |
52 </table> |
51 |
53 <h3>Methods</h3> |
52 <h3>Methods</h3> |
54 |
53 <table> |
55 <table> |
|
56 |
|
57 <tr> |
54 <tr> |
58 <td><a href="#ZoomValuesModel.__init__">ZoomValuesModel</a></td> |
55 <td><a href="#ZoomValuesModel.__init__">ZoomValuesModel</a></td> |
59 <td>Constructor</td> |
56 <td>Constructor</td> |
60 </tr> |
57 </tr> |
61 <tr> |
58 <tr> |
81 <tr> |
78 <tr> |
82 <td><a href="#ZoomValuesModel.rowCount">rowCount</a></td> |
79 <td><a href="#ZoomValuesModel.rowCount">rowCount</a></td> |
83 <td>Public method to get the number of rows of the model.</td> |
80 <td>Public method to get the number of rows of the model.</td> |
84 </tr> |
81 </tr> |
85 </table> |
82 </table> |
|
83 |
86 <h3>Static Methods</h3> |
84 <h3>Static Methods</h3> |
87 |
85 <table> |
88 <table> |
86 <tr><td>None</td></tr> |
89 <tr><td>None</td></tr> |
87 </table> |
90 </table> |
88 |
91 |
89 |
92 <a NAME="ZoomValuesModel.__init__" ID="ZoomValuesModel.__init__"></a> |
90 <a NAME="ZoomValuesModel.__init__" ID="ZoomValuesModel.__init__"></a> |
93 <h4>ZoomValuesModel (Constructor)</h4> |
91 <h4>ZoomValuesModel (Constructor)</h4> |
94 <b>ZoomValuesModel</b>(<i>manager, parent=None</i>) |
92 <b>ZoomValuesModel</b>(<i>manager, parent=None</i>) |
95 |
|
96 <p> |
93 <p> |
97 Constructor |
94 Constructor |
98 </p> |
95 </p> |
|
96 |
99 <dl> |
97 <dl> |
100 |
98 |
101 <dt><i>manager</i> (ZoomManager)</dt> |
99 <dt><i>manager</i> (ZoomManager)</dt> |
102 <dd> |
100 <dd> |
103 reference to the zoom values manager |
101 reference to the zoom values manager |
108 </dd> |
106 </dd> |
109 </dl> |
107 </dl> |
110 <a NAME="ZoomValuesModel.__zoomValuesChanged" ID="ZoomValuesModel.__zoomValuesChanged"></a> |
108 <a NAME="ZoomValuesModel.__zoomValuesChanged" ID="ZoomValuesModel.__zoomValuesChanged"></a> |
111 <h4>ZoomValuesModel.__zoomValuesChanged</h4> |
109 <h4>ZoomValuesModel.__zoomValuesChanged</h4> |
112 <b>__zoomValuesChanged</b>(<i></i>) |
110 <b>__zoomValuesChanged</b>(<i></i>) |
113 |
|
114 <p> |
111 <p> |
115 Private slot handling a change of the registered zoom values. |
112 Private slot handling a change of the registered zoom values. |
116 </p> |
113 </p> |
|
114 |
117 <a NAME="ZoomValuesModel.columnCount" ID="ZoomValuesModel.columnCount"></a> |
115 <a NAME="ZoomValuesModel.columnCount" ID="ZoomValuesModel.columnCount"></a> |
118 <h4>ZoomValuesModel.columnCount</h4> |
116 <h4>ZoomValuesModel.columnCount</h4> |
119 <b>columnCount</b>(<i>parent=None</i>) |
117 <b>columnCount</b>(<i>parent=None</i>) |
120 |
|
121 <p> |
118 <p> |
122 Public method to get the number of columns of the model. |
119 Public method to get the number of columns of the model. |
123 </p> |
120 </p> |
|
121 |
124 <dl> |
122 <dl> |
125 |
123 |
126 <dt><i>parent</i> (QModelIndex)</dt> |
124 <dt><i>parent</i> (QModelIndex)</dt> |
127 <dd> |
125 <dd> |
128 parent index (Unused) |
126 parent index (Unused) |
141 </dd> |
139 </dd> |
142 </dl> |
140 </dl> |
143 <a NAME="ZoomValuesModel.data" ID="ZoomValuesModel.data"></a> |
141 <a NAME="ZoomValuesModel.data" ID="ZoomValuesModel.data"></a> |
144 <h4>ZoomValuesModel.data</h4> |
142 <h4>ZoomValuesModel.data</h4> |
145 <b>data</b>(<i>index, role</i>) |
143 <b>data</b>(<i>index, role</i>) |
146 |
|
147 <p> |
144 <p> |
148 Public method to get data from the model. |
145 Public method to get data from the model. |
149 </p> |
146 </p> |
|
147 |
150 <dl> |
148 <dl> |
151 |
149 |
152 <dt><i>index</i> (QModelIndex)</dt> |
150 <dt><i>index</i> (QModelIndex)</dt> |
153 <dd> |
151 <dd> |
154 index to get data for |
152 index to get data for |
171 </dd> |
169 </dd> |
172 </dl> |
170 </dl> |
173 <a NAME="ZoomValuesModel.headerData" ID="ZoomValuesModel.headerData"></a> |
171 <a NAME="ZoomValuesModel.headerData" ID="ZoomValuesModel.headerData"></a> |
174 <h4>ZoomValuesModel.headerData</h4> |
172 <h4>ZoomValuesModel.headerData</h4> |
175 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>) |
173 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>) |
176 |
|
177 <p> |
174 <p> |
178 Public method to get the header data. |
175 Public method to get the header data. |
179 </p> |
176 </p> |
|
177 |
180 <dl> |
178 <dl> |
181 |
179 |
182 <dt><i>section</i> (int)</dt> |
180 <dt><i>section</i> (int)</dt> |
183 <dd> |
181 <dd> |
184 section number |
182 section number |
205 </dd> |
203 </dd> |
206 </dl> |
204 </dl> |
207 <a NAME="ZoomValuesModel.removeRows" ID="ZoomValuesModel.removeRows"></a> |
205 <a NAME="ZoomValuesModel.removeRows" ID="ZoomValuesModel.removeRows"></a> |
208 <h4>ZoomValuesModel.removeRows</h4> |
206 <h4>ZoomValuesModel.removeRows</h4> |
209 <b>removeRows</b>(<i>row, count, parent=None</i>) |
207 <b>removeRows</b>(<i>row, count, parent=None</i>) |
210 |
|
211 <p> |
208 <p> |
212 Public method to remove entries from the model. |
209 Public method to remove entries from the model. |
213 </p> |
210 </p> |
|
211 |
214 <dl> |
212 <dl> |
215 |
213 |
216 <dt><i>row</i> (int)</dt> |
214 <dt><i>row</i> (int)</dt> |
217 <dd> |
215 <dd> |
218 start row |
216 start row |
239 </dd> |
237 </dd> |
240 </dl> |
238 </dl> |
241 <a NAME="ZoomValuesModel.rowCount" ID="ZoomValuesModel.rowCount"></a> |
239 <a NAME="ZoomValuesModel.rowCount" ID="ZoomValuesModel.rowCount"></a> |
242 <h4>ZoomValuesModel.rowCount</h4> |
240 <h4>ZoomValuesModel.rowCount</h4> |
243 <b>rowCount</b>(<i>parent=None</i>) |
241 <b>rowCount</b>(<i>parent=None</i>) |
244 |
|
245 <p> |
242 <p> |
246 Public method to get the number of rows of the model. |
243 Public method to get the number of rows of the model. |
247 </p> |
244 </p> |
|
245 |
248 <dl> |
246 <dl> |
249 |
247 |
250 <dt><i>parent</i> (QModelIndex)</dt> |
248 <dt><i>parent</i> (QModelIndex)</dt> |
251 <dd> |
249 <dd> |
252 parent index |
250 parent index |