|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Helpviewer.ZoomManager.ZoomValuesModel</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Helpviewer.ZoomManager.ZoomValuesModel</h1> |
|
23 <p> |
|
24 Module implementing a model for zoom values management. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#ZoomValuesModel">ZoomValuesModel</a></td> |
|
34 <td>Class implementing a model for zoom values management.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="ZoomValuesModel" ID="ZoomValuesModel"></a> |
|
43 <h2>ZoomValuesModel</h2> |
|
44 <p> |
|
45 Class implementing a model for zoom values management. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QAbstractTableModel |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#ZoomValuesModel.__init__">ZoomValuesModel</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#ZoomValuesModel.__zoomValuesChanged">__zoomValuesChanged</a></td> |
|
64 <td>Private slot handling a change of the registered zoom values.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#ZoomValuesModel.columnCount">columnCount</a></td> |
|
67 <td>Public method to get the number of columns of the model.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#ZoomValuesModel.data">data</a></td> |
|
70 <td>Public method to get data from the model.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#ZoomValuesModel.headerData">headerData</a></td> |
|
73 <td>Public method to get the header data.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#ZoomValuesModel.removeRows">removeRows</a></td> |
|
76 <td>Public method to remove entries from the model.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#ZoomValuesModel.rowCount">rowCount</a></td> |
|
79 <td>Public method to get the number of rows of the model.</td> |
|
80 </tr> |
|
81 </table> |
|
82 <h3>Static Methods</h3> |
|
83 <table> |
|
84 <tr><td>None</td></tr> |
|
85 </table> |
|
86 <a NAME="ZoomValuesModel.__init__" ID="ZoomValuesModel.__init__"></a> |
|
87 <h4>ZoomValuesModel (Constructor)</h4> |
|
88 <b>ZoomValuesModel</b>(<i>manager, parent=None</i>) |
|
89 <p> |
|
90 Constructor |
|
91 </p><dl> |
|
92 <dt><i>manager</i></dt> |
|
93 <dd> |
|
94 reference to the zoom values manager (ZoomManager) |
|
95 </dd><dt><i>parent</i></dt> |
|
96 <dd> |
|
97 reference to the parent object (QObject) |
|
98 </dd> |
|
99 </dl><a NAME="ZoomValuesModel.__zoomValuesChanged" ID="ZoomValuesModel.__zoomValuesChanged"></a> |
|
100 <h4>ZoomValuesModel.__zoomValuesChanged</h4> |
|
101 <b>__zoomValuesChanged</b>(<i></i>) |
|
102 <p> |
|
103 Private slot handling a change of the registered zoom values. |
|
104 </p><a NAME="ZoomValuesModel.columnCount" ID="ZoomValuesModel.columnCount"></a> |
|
105 <h4>ZoomValuesModel.columnCount</h4> |
|
106 <b>columnCount</b>(<i>parent=QModelIndex()</i>) |
|
107 <p> |
|
108 Public method to get the number of columns of the model. |
|
109 </p><dl> |
|
110 <dt><i>parent</i></dt> |
|
111 <dd> |
|
112 parent index (QModelIndex) |
|
113 </dd> |
|
114 </dl><dl> |
|
115 <dt>Returns:</dt> |
|
116 <dd> |
|
117 number of columns (integer) |
|
118 </dd> |
|
119 </dl><a NAME="ZoomValuesModel.data" ID="ZoomValuesModel.data"></a> |
|
120 <h4>ZoomValuesModel.data</h4> |
|
121 <b>data</b>(<i>index, role</i>) |
|
122 <p> |
|
123 Public method to get data from the model. |
|
124 </p><dl> |
|
125 <dt><i>index</i></dt> |
|
126 <dd> |
|
127 index to get data for (QModelIndex) |
|
128 </dd><dt><i>role</i></dt> |
|
129 <dd> |
|
130 role of the data to retrieve (integer) |
|
131 </dd> |
|
132 </dl><dl> |
|
133 <dt>Returns:</dt> |
|
134 <dd> |
|
135 requested data |
|
136 </dd> |
|
137 </dl><a NAME="ZoomValuesModel.headerData" ID="ZoomValuesModel.headerData"></a> |
|
138 <h4>ZoomValuesModel.headerData</h4> |
|
139 <b>headerData</b>(<i>section, orientation, role=Qt.DisplayRole</i>) |
|
140 <p> |
|
141 Public method to get the header data. |
|
142 </p><dl> |
|
143 <dt><i>section</i></dt> |
|
144 <dd> |
|
145 section number (integer) |
|
146 </dd><dt><i>orientation</i></dt> |
|
147 <dd> |
|
148 header orientation (Qt.Orientation) |
|
149 </dd><dt><i>role</i></dt> |
|
150 <dd> |
|
151 data role (integer) |
|
152 </dd> |
|
153 </dl><dl> |
|
154 <dt>Returns:</dt> |
|
155 <dd> |
|
156 header data |
|
157 </dd> |
|
158 </dl><a NAME="ZoomValuesModel.removeRows" ID="ZoomValuesModel.removeRows"></a> |
|
159 <h4>ZoomValuesModel.removeRows</h4> |
|
160 <b>removeRows</b>(<i>row, count, parent=QModelIndex()</i>) |
|
161 <p> |
|
162 Public method to remove entries from the model. |
|
163 </p><dl> |
|
164 <dt><i>row</i></dt> |
|
165 <dd> |
|
166 start row (integer) |
|
167 </dd><dt><i>count</i></dt> |
|
168 <dd> |
|
169 number of rows to remove (integer) |
|
170 </dd><dt><i>parent</i></dt> |
|
171 <dd> |
|
172 parent index (QModelIndex) |
|
173 </dd> |
|
174 </dl><dl> |
|
175 <dt>Returns:</dt> |
|
176 <dd> |
|
177 flag indicating success (boolean) |
|
178 </dd> |
|
179 </dl><a NAME="ZoomValuesModel.rowCount" ID="ZoomValuesModel.rowCount"></a> |
|
180 <h4>ZoomValuesModel.rowCount</h4> |
|
181 <b>rowCount</b>(<i>parent=QModelIndex()</i>) |
|
182 <p> |
|
183 Public method to get the number of rows of the model. |
|
184 </p><dl> |
|
185 <dt><i>parent</i></dt> |
|
186 <dd> |
|
187 parent index (QModelIndex) |
|
188 </dd> |
|
189 </dl><dl> |
|
190 <dt>Returns:</dt> |
|
191 <dd> |
|
192 number of rows (integer) |
|
193 </dd> |
|
194 </dl> |
|
195 <div align="right"><a href="#top">Up</a></div> |
|
196 <hr /> |
|
197 </body></html> |