src/eric7/Documentation/Source/eric7.UI.NumbersWidget.html

branch
eric7
changeset 10433
328f3ec4b77a
parent 10259
b51dfacef37f
child 10479
856476537696
equal deleted inserted replaced
10432:2fe91fe443dd 10433:328f3ec4b77a
116 <p> 116 <p>
117 Constructor 117 Constructor
118 </p> 118 </p>
119 <dl> 119 <dl>
120 120
121 <dt><i>parent</i></dt> 121 <dt><i>parent</i> (QWidget)</dt>
122 <dd> 122 <dd>
123 reference to the parent widget (QWidget) 123 reference to the parent widget
124 </dd> 124 </dd>
125 </dl> 125 </dl>
126 <a NAME="BinaryModel.columnCount" ID="BinaryModel.columnCount"></a> 126 <a NAME="BinaryModel.columnCount" ID="BinaryModel.columnCount"></a>
127 <h4>BinaryModel.columnCount</h4> 127 <h4>BinaryModel.columnCount</h4>
128 <b>columnCount</b>(<i>parent</i>) 128 <b>columnCount</b>(<i>parent</i>)
130 <p> 130 <p>
131 Public method to get the number of columns of the model. 131 Public method to get the number of columns of the model.
132 </p> 132 </p>
133 <dl> 133 <dl>
134 134
135 <dt><i>parent</i></dt> 135 <dt><i>parent</i> (QModelIndex)</dt>
136 <dd> 136 <dd>
137 parent index (QModelIndex) 137 parent index
138 </dd> 138 </dd>
139 </dl> 139 </dl>
140 <dl> 140 <dl>
141 <dt>Return:</dt> 141 <dt>Return:</dt>
142 <dd> 142 <dd>
143 number of columns (integer) 143 number of columns
144 </dd>
145 </dl>
146 <dl>
147 <dt>Return Type:</dt>
148 <dd>
149 int
144 </dd> 150 </dd>
145 </dl> 151 </dl>
146 <a NAME="BinaryModel.data" ID="BinaryModel.data"></a> 152 <a NAME="BinaryModel.data" ID="BinaryModel.data"></a>
147 <h4>BinaryModel.data</h4> 153 <h4>BinaryModel.data</h4>
148 <b>data</b>(<i>index, role=Qt.ItemDataRole.DisplayRole</i>) 154 <b>data</b>(<i>index, role=Qt.ItemDataRole.DisplayRole</i>)
150 <p> 156 <p>
151 Public method to get data from the model. 157 Public method to get data from the model.
152 </p> 158 </p>
153 <dl> 159 <dl>
154 160
155 <dt><i>index</i></dt> 161 <dt><i>index</i> (QModelIndex)</dt>
156 <dd> 162 <dd>
157 index to get data for (QModelIndex) 163 index to get data for
158 </dd> 164 </dd>
159 <dt><i>role</i></dt> 165 <dt><i>role</i> (int)</dt>
160 <dd> 166 <dd>
161 role of the data to retrieve (integer) 167 role of the data to retrieve
162 </dd> 168 </dd>
163 </dl> 169 </dl>
164 <dl> 170 <dl>
165 <dt>Return:</dt> 171 <dt>Return:</dt>
166 <dd> 172 <dd>
167 requested data 173 requested data
174 </dd>
175 </dl>
176 <dl>
177 <dt>Return Type:</dt>
178 <dd>
179 Any
168 </dd> 180 </dd>
169 </dl> 181 </dl>
170 <a NAME="BinaryModel.flags" ID="BinaryModel.flags"></a> 182 <a NAME="BinaryModel.flags" ID="BinaryModel.flags"></a>
171 <h4>BinaryModel.flags</h4> 183 <h4>BinaryModel.flags</h4>
172 <b>flags</b>(<i>index</i>) 184 <b>flags</b>(<i>index</i>)
174 <p> 186 <p>
175 Public method to get flags from the model. 187 Public method to get flags from the model.
176 </p> 188 </p>
177 <dl> 189 <dl>
178 190
179 <dt><i>index</i></dt> 191 <dt><i>index</i> (QModelIndex)</dt>
180 <dd> 192 <dd>
181 index to get flags for (QModelIndex) 193 index to get flags for
182 </dd> 194 </dd>
183 </dl> 195 </dl>
184 <dl> 196 <dl>
185 <dt>Return:</dt> 197 <dt>Return:</dt>
186 <dd> 198 <dd>
187 flags (Qt.ItemFlags) 199 flags
200 </dd>
201 </dl>
202 <dl>
203 <dt>Return Type:</dt>
204 <dd>
205 Qt.ItemFlags
188 </dd> 206 </dd>
189 </dl> 207 </dl>
190 <a NAME="BinaryModel.getValue" ID="BinaryModel.getValue"></a> 208 <a NAME="BinaryModel.getValue" ID="BinaryModel.getValue"></a>
191 <h4>BinaryModel.getValue</h4> 209 <h4>BinaryModel.getValue</h4>
192 <b>getValue</b>(<i></i>) 210 <b>getValue</b>(<i></i>)
195 Public slot to get the current value. 213 Public slot to get the current value.
196 </p> 214 </p>
197 <dl> 215 <dl>
198 <dt>Return:</dt> 216 <dt>Return:</dt>
199 <dd> 217 <dd>
200 current value of the model (integer) 218 current value of the model
219 </dd>
220 </dl>
221 <dl>
222 <dt>Return Type:</dt>
223 <dd>
224 int
201 </dd> 225 </dd>
202 </dl> 226 </dl>
203 <a NAME="BinaryModel.headerData" ID="BinaryModel.headerData"></a> 227 <a NAME="BinaryModel.headerData" ID="BinaryModel.headerData"></a>
204 <h4>BinaryModel.headerData</h4> 228 <h4>BinaryModel.headerData</h4>
205 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>) 229 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>)
207 <p> 231 <p>
208 Public method to get header data from the model. 232 Public method to get header data from the model.
209 </p> 233 </p>
210 <dl> 234 <dl>
211 235
212 <dt><i>section</i></dt> 236 <dt><i>section</i> (int)</dt>
213 <dd> 237 <dd>
214 section number (integer) 238 section number
215 </dd> 239 </dd>
216 <dt><i>orientation</i></dt> 240 <dt><i>orientation</i> (Qt.Orientation)</dt>
217 <dd> 241 <dd>
218 orientation (Qt.Orientation) 242 orientation
219 </dd> 243 </dd>
220 <dt><i>role</i></dt> 244 <dt><i>role</i> (Qt.ItemDataRole)</dt>
221 <dd> 245 <dd>
222 role of the data to retrieve (Qt.ItemDataRole) 246 role of the data to retrieve
223 </dd> 247 </dd>
224 </dl> 248 </dl>
225 <dl> 249 <dl>
226 <dt>Return:</dt> 250 <dt>Return:</dt>
227 <dd> 251 <dd>
228 requested data 252 requested data
253 </dd>
254 </dl>
255 <dl>
256 <dt>Return Type:</dt>
257 <dd>
258 Any
229 </dd> 259 </dd>
230 </dl> 260 </dl>
231 <a NAME="BinaryModel.rowCount" ID="BinaryModel.rowCount"></a> 261 <a NAME="BinaryModel.rowCount" ID="BinaryModel.rowCount"></a>
232 <h4>BinaryModel.rowCount</h4> 262 <h4>BinaryModel.rowCount</h4>
233 <b>rowCount</b>(<i>parent</i>) 263 <b>rowCount</b>(<i>parent</i>)
235 <p> 265 <p>
236 Public method to get the number of rows of the model. 266 Public method to get the number of rows of the model.
237 </p> 267 </p>
238 <dl> 268 <dl>
239 269
240 <dt><i>parent</i></dt> 270 <dt><i>parent</i> (QModelIndex)</dt>
241 <dd> 271 <dd>
242 parent index (QModelIndex) 272 parent index
243 </dd> 273 </dd>
244 </dl> 274 </dl>
245 <dl> 275 <dl>
246 <dt>Return:</dt> 276 <dt>Return:</dt>
247 <dd> 277 <dd>
248 number of columns (integer) 278 number of columns
279 </dd>
280 </dl>
281 <dl>
282 <dt>Return Type:</dt>
283 <dd>
284 int
249 </dd> 285 </dd>
250 </dl> 286 </dl>
251 <a NAME="BinaryModel.setBits" ID="BinaryModel.setBits"></a> 287 <a NAME="BinaryModel.setBits" ID="BinaryModel.setBits"></a>
252 <h4>BinaryModel.setBits</h4> 288 <h4>BinaryModel.setBits</h4>
253 <b>setBits</b>(<i>bits</i>) 289 <b>setBits</b>(<i>bits</i>)
255 <p> 291 <p>
256 Public slot to set the number of bits. 292 Public slot to set the number of bits.
257 </p> 293 </p>
258 <dl> 294 <dl>
259 295
260 <dt><i>bits</i></dt> 296 <dt><i>bits</i> (int)</dt>
261 <dd> 297 <dd>
262 number of bits to show (integer) 298 number of bits to show
263 </dd> 299 </dd>
264 </dl> 300 </dl>
265 <a NAME="BinaryModel.setBitsAndValue" ID="BinaryModel.setBitsAndValue"></a> 301 <a NAME="BinaryModel.setBitsAndValue" ID="BinaryModel.setBitsAndValue"></a>
266 <h4>BinaryModel.setBitsAndValue</h4> 302 <h4>BinaryModel.setBitsAndValue</h4>
267 <b>setBitsAndValue</b>(<i>bits, value</i>) 303 <b>setBitsAndValue</b>(<i>bits, value</i>)
269 <p> 305 <p>
270 Public slot to set the number of bits and the value to show. 306 Public slot to set the number of bits and the value to show.
271 </p> 307 </p>
272 <dl> 308 <dl>
273 309
274 <dt><i>bits</i></dt> 310 <dt><i>bits</i> (int)</dt>
275 <dd> 311 <dd>
276 number of bits to show (integer) 312 number of bits to show
277 </dd> 313 </dd>
278 <dt><i>value</i></dt> 314 <dt><i>value</i> (int)</dt>
279 <dd> 315 <dd>
280 value to show (integer) 316 value to show
281 </dd> 317 </dd>
282 </dl> 318 </dl>
283 <a NAME="BinaryModel.setData" ID="BinaryModel.setData"></a> 319 <a NAME="BinaryModel.setData" ID="BinaryModel.setData"></a>
284 <h4>BinaryModel.setData</h4> 320 <h4>BinaryModel.setData</h4>
285 <b>setData</b>(<i>index, value, role=Qt.ItemDataRole.EditRole</i>) 321 <b>setData</b>(<i>index, value, role=Qt.ItemDataRole.EditRole</i>)
287 <p> 323 <p>
288 Public method to set the data of a node cell. 324 Public method to set the data of a node cell.
289 </p> 325 </p>
290 <dl> 326 <dl>
291 327
292 <dt><i>index</i></dt> 328 <dt><i>index</i> (QModelIndex)</dt>
293 <dd> 329 <dd>
294 index of the node cell (QModelIndex) 330 index of the node cell
295 </dd> 331 </dd>
296 <dt><i>value</i></dt> 332 <dt><i>value</i> (Any)</dt>
297 <dd> 333 <dd>
298 value to be set 334 value to be set
299 </dd> 335 </dd>
300 <dt><i>role</i></dt> 336 <dt><i>role</i> (int)</dt>
301 <dd> 337 <dd>
302 role of the data (integer) 338 role of the data
303 </dd> 339 </dd>
304 </dl> 340 </dl>
305 <dl> 341 <dl>
306 <dt>Return:</dt> 342 <dt>Return:</dt>
307 <dd> 343 <dd>
308 flag indicating success (boolean) 344 flag indicating success
345 </dd>
346 </dl>
347 <dl>
348 <dt>Return Type:</dt>
349 <dd>
350 boolean)
309 </dd> 351 </dd>
310 </dl> 352 </dl>
311 <a NAME="BinaryModel.setValue" ID="BinaryModel.setValue"></a> 353 <a NAME="BinaryModel.setValue" ID="BinaryModel.setValue"></a>
312 <h4>BinaryModel.setValue</h4> 354 <h4>BinaryModel.setValue</h4>
313 <b>setValue</b>(<i>value</i>) 355 <b>setValue</b>(<i>value</i>)
315 <p> 357 <p>
316 Public slot to set the value to show. 358 Public slot to set the value to show.
317 </p> 359 </p>
318 <dl> 360 <dl>
319 361
320 <dt><i>value</i></dt> 362 <dt><i>value</i> (int)</dt>
321 <dd> 363 <dd>
322 value to show (integer) 364 value to show
323 </dd> 365 </dd>
324 </dl> 366 </dl>
325 <div align="right"><a href="#top">Up</a></div> 367 <div align="right"><a href="#top">Up</a></div>
326 <hr /> 368 <hr />
327 <hr /> 369 <hr />
442 <p> 484 <p>
443 Constructor 485 Constructor
444 </p> 486 </p>
445 <dl> 487 <dl>
446 488
447 <dt><i>parent</i></dt> 489 <dt><i>parent</i> (QWidget)</dt>
448 <dd> 490 <dd>
449 reference to the parent widget (QWidget) 491 reference to the parent widget
450 </dd> 492 </dd>
451 </dl> 493 </dl>
452 <a NAME="NumbersWidget.__binModelDataChanged" ID="NumbersWidget.__binModelDataChanged"></a> 494 <a NAME="NumbersWidget.__binModelDataChanged" ID="NumbersWidget.__binModelDataChanged"></a>
453 <h4>NumbersWidget.__binModelDataChanged</h4> 495 <h4>NumbersWidget.__binModelDataChanged</h4>
454 <b>__binModelDataChanged</b>(<i>start, end</i>) 496 <b>__binModelDataChanged</b>(<i>start, end</i>)
456 <p> 498 <p>
457 Private slot to handle a change of the binary model value by the user. 499 Private slot to handle a change of the binary model value by the user.
458 </p> 500 </p>
459 <dl> 501 <dl>
460 502
461 <dt><i>start</i></dt> 503 <dt><i>start</i> (QModelIndex)</dt>
462 <dd> 504 <dd>
463 start index (QModelIndex) 505 start index
464 </dd> 506 </dd>
465 <dt><i>end</i></dt> 507 <dt><i>end</i> (QModelIndex)</dt>
466 <dd> 508 <dd>
467 end index (QModelIndex) 509 end index
468 </dd> 510 </dd>
469 </dl> 511 </dl>
470 <a NAME="NumbersWidget.__block" ID="NumbersWidget.__block"></a> 512 <a NAME="NumbersWidget.__block" ID="NumbersWidget.__block"></a>
471 <h4>NumbersWidget.__block</h4> 513 <h4>NumbersWidget.__block</h4>
472 <b>__block</b>(<i>b</i>) 514 <b>__block</b>(<i>b</i>)
474 <p> 516 <p>
475 Private slot to block some signals. 517 Private slot to block some signals.
476 </p> 518 </p>
477 <dl> 519 <dl>
478 520
479 <dt><i>b</i></dt> 521 <dt><i>b</i> (bool)</dt>
480 <dd> 522 <dd>
481 flah indicating the blocking state (boolean) 523 flah indicating the blocking state
482 </dd> 524 </dd>
483 </dl> 525 </dl>
484 <a NAME="NumbersWidget.__formatNumbers" ID="NumbersWidget.__formatNumbers"></a> 526 <a NAME="NumbersWidget.__formatNumbers" ID="NumbersWidget.__formatNumbers"></a>
485 <h4>NumbersWidget.__formatNumbers</h4> 527 <h4>NumbersWidget.__formatNumbers</h4>
486 <b>__formatNumbers</b>(<i>numberFormat</i>) 528 <b>__formatNumbers</b>(<i>numberFormat</i>)
488 <p> 530 <p>
489 Private method to format the various number inputs. 531 Private method to format the various number inputs.
490 </p> 532 </p>
491 <dl> 533 <dl>
492 534
493 <dt><i>numberFormat</i></dt> 535 <dt><i>numberFormat</i> (int)</dt>
494 <dd> 536 <dd>
495 number format indicator (integer) 537 number format indicator
496 </dd> 538 </dd>
497 </dl> 539 </dl>
498 <a NAME="NumbersWidget.on_binEdit_textChanged" ID="NumbersWidget.on_binEdit_textChanged"></a> 540 <a NAME="NumbersWidget.on_binEdit_textChanged" ID="NumbersWidget.on_binEdit_textChanged"></a>
499 <h4>NumbersWidget.on_binEdit_textChanged</h4> 541 <h4>NumbersWidget.on_binEdit_textChanged</h4>
500 <b>on_binEdit_textChanged</b>(<i>txt</i>) 542 <b>on_binEdit_textChanged</b>(<i>txt</i>)
502 <p> 544 <p>
503 Private slot to handle input of a binary number. 545 Private slot to handle input of a binary number.
504 </p> 546 </p>
505 <dl> 547 <dl>
506 548
507 <dt><i>txt</i></dt> 549 <dt><i>txt</i> (str)</dt>
508 <dd> 550 <dd>
509 text entered (string) 551 text entered
510 </dd> 552 </dd>
511 </dl> 553 </dl>
512 <a NAME="NumbersWidget.on_binInButton_clicked" ID="NumbersWidget.on_binInButton_clicked"></a> 554 <a NAME="NumbersWidget.on_binInButton_clicked" ID="NumbersWidget.on_binInButton_clicked"></a>
513 <h4>NumbersWidget.on_binInButton_clicked</h4> 555 <h4>NumbersWidget.on_binInButton_clicked</h4>
514 <b>on_binInButton_clicked</b>(<i></i>) 556 <b>on_binInButton_clicked</b>(<i></i>)
537 <p> 579 <p>
538 Private slot to handle input of a decimal number. 580 Private slot to handle input of a decimal number.
539 </p> 581 </p>
540 <dl> 582 <dl>
541 583
542 <dt><i>txt</i></dt> 584 <dt><i>txt</i> (str)</dt>
543 <dd> 585 <dd>
544 text entered (string) 586 text entered
545 </dd> 587 </dd>
546 </dl> 588 </dl>
547 <a NAME="NumbersWidget.on_decInButton_clicked" ID="NumbersWidget.on_decInButton_clicked"></a> 589 <a NAME="NumbersWidget.on_decInButton_clicked" ID="NumbersWidget.on_decInButton_clicked"></a>
548 <h4>NumbersWidget.on_decInButton_clicked</h4> 590 <h4>NumbersWidget.on_decInButton_clicked</h4>
549 <b>on_decInButton_clicked</b>(<i></i>) 591 <b>on_decInButton_clicked</b>(<i></i>)
565 <p> 607 <p>
566 Private slot to handle input of a hexadecimal number. 608 Private slot to handle input of a hexadecimal number.
567 </p> 609 </p>
568 <dl> 610 <dl>
569 611
570 <dt><i>txt</i></dt> 612 <dt><i>txt</i> (str)</dt>
571 <dd> 613 <dd>
572 text entered (string) 614 text entered
573 </dd> 615 </dd>
574 </dl> 616 </dl>
575 <a NAME="NumbersWidget.on_hexInButton_clicked" ID="NumbersWidget.on_hexInButton_clicked"></a> 617 <a NAME="NumbersWidget.on_hexInButton_clicked" ID="NumbersWidget.on_hexInButton_clicked"></a>
576 <h4>NumbersWidget.on_hexInButton_clicked</h4> 618 <h4>NumbersWidget.on_hexInButton_clicked</h4>
577 <b>on_hexInButton_clicked</b>(<i></i>) 619 <b>on_hexInButton_clicked</b>(<i></i>)
593 <p> 635 <p>
594 Private slot to handle input of an octal number. 636 Private slot to handle input of an octal number.
595 </p> 637 </p>
596 <dl> 638 <dl>
597 639
598 <dt><i>txt</i></dt> 640 <dt><i>txt</i> (str)</dt>
599 <dd> 641 <dd>
600 text entered (string) 642 text entered
601 </dd> 643 </dd>
602 </dl> 644 </dl>
603 <a NAME="NumbersWidget.on_octInButton_clicked" ID="NumbersWidget.on_octInButton_clicked"></a> 645 <a NAME="NumbersWidget.on_octInButton_clicked" ID="NumbersWidget.on_octInButton_clicked"></a>
604 <h4>NumbersWidget.on_octInButton_clicked</h4> 646 <h4>NumbersWidget.on_octInButton_clicked</h4>
605 <b>on_octInButton_clicked</b>(<i></i>) 647 <b>on_octInButton_clicked</b>(<i></i>)
621 <p> 663 <p>
622 Private slot handling a change of the bit size. 664 Private slot handling a change of the bit size.
623 </p> 665 </p>
624 <dl> 666 <dl>
625 667
626 <dt><i>value</i></dt> 668 <dt><i>value</i> (int)</dt>
627 <dd> 669 <dd>
628 selected bit size (integer) 670 selected bit size
629 </dd> 671 </dd>
630 </dl> 672 </dl>
631 <div align="right"><a href="#top">Up</a></div> 673 <div align="right"><a href="#top">Up</a></div>
632 <hr /> 674 <hr />
633 </body></html> 675 </body></html>

eric ide

mercurial