File: class_qwt_dyn_grid_layout.html

package info (click to toggle)
qwt5 5.2.2-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 13,340 kB
  • sloc: cpp: 32,645; makefile: 23; sh: 4
file content (680 lines) | stat: -rw-r--r-- 33,700 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Qwt User&#39;s Guide: QwtDynGridLayout Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Qwt User's Guide&#160;<span id="projectnumber">5.2.2</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<h1>QwtDynGridLayout Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="QwtDynGridLayout" -->
<p>The <a class="el" href="class_qwt_dyn_grid_layout.html" title="The QwtDynGridLayout class lays out widgets in a grid, adjusting the number of columns and rows to th...">QwtDynGridLayout</a> class lays out widgets in a grid, adjusting the number of columns and rows to the current size.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qwt__dyngrid__layout_8h_source.html">qwt_dyngrid_layout.h</a>&gt;</code></p>

<p><a href="class_qwt_dyn_grid_layout-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#a3ac3ace65c84e16fba7fe83cd795eea1">addItem</a> (QLayoutItem *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#adf7cc1acc36b41086fb4815633473901">columnsForWidth</a> (int width) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#a9a74593721ef1eba3d70275c36500ff6">count</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual Qt::Orientations&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#a1340bdbdaf09f79ac9e80f96f1b8b106">expandingDirections</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#ae8867d543d54d5da9657c55b3c329d8e">hasHeightForWidth</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#afa3fd53b485e9f1ed90796ff923466f1">heightForWidth</a> (int) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#acb55e24d5bc569c9822110d538e3a82e">invalidate</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#a755f41277b43417d6b719704dc2c0d29">isEmpty</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QLayoutItem *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#adbec8dc847c4159d0765c8f0dd80d148">itemAt</a> (int index) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#ad7df7a3f47055041d6dd5ab1c4c660e0">itemCount</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QList&lt; QRect &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#a0fe5c2a70d1086036fac2487cc982341">layoutItems</a> (const QRect &amp;, uint numCols) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#a6ffaad457d8c9b4d423c23fb6b433299">maxCols</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#a74ebb14c4b4fae32354d3824bf29c93e">maxItemWidth</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#a4678cd0f67c332162c266ac9661b5db6">numCols</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#ad3f387078e5e78b66b452c72e99923c2">numRows</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#a2079ddcba8442ef9f386556dd9cb8cc6">QwtDynGridLayout</a> (QWidget *, int margin=0, int space=-1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#a05d45c0928702e37da3497626b0f7c93">QwtDynGridLayout</a> (int space=-1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#a56cd48dda979428402dd39d470674dee">setExpandingDirections</a> (Qt::Orientations)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#afdf23bb94de5258f14fb077b39a64391">setGeometry</a> (const QRect &amp;rect)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#aedec17be16b997ecd1acff8424e02843">setMaxCols</a> (uint maxCols)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#afed46e3a8e1b6e67dcf62eca0bc948d6">sizeHint</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QLayoutItem *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#ad16c097bc1563eb1587e12789498bac9">takeAt</a> (int index)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#abb583f302fbf5d92b306841d414e52a4">~QwtDynGridLayout</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#acbf0033801a9c0464fedb56b32d3f783">layoutGrid</a> (uint numCols, QwtArray&lt; int &gt; &amp;rowHeight, QwtArray&lt; int &gt; &amp;colWidth) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dyn_grid_layout.html#aee71c314a421165f80fa724a59c2c899">stretchGrid</a> (const QRect &amp;rect, uint numCols, QwtArray&lt; int &gt; &amp;rowHeight, QwtArray&lt; int &gt; &amp;colWidth) const </td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_qwt_dyn_grid_layout.html" title="The QwtDynGridLayout class lays out widgets in a grid, adjusting the number of columns and rows to th...">QwtDynGridLayout</a> class lays out widgets in a grid, adjusting the number of columns and rows to the current size. </p>
<p><a class="el" href="class_qwt_dyn_grid_layout.html" title="The QwtDynGridLayout class lays out widgets in a grid, adjusting the number of columns and rows to th...">QwtDynGridLayout</a> takes the space it gets, divides it up into rows and columns, and puts each of the widgets it manages into the correct cell(s). It lays out as many number of columns as possible (limited by <a class="el" href="class_qwt_dyn_grid_layout.html#a6ffaad457d8c9b4d423c23fb6b433299">maxCols()</a>). </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a2079ddcba8442ef9f386556dd9cb8cc6"></a><!-- doxytag: member="QwtDynGridLayout::QwtDynGridLayout" ref="a2079ddcba8442ef9f386556dd9cb8cc6" args="(QWidget *, int margin=0, int space=&#45;1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QwtDynGridLayout::QwtDynGridLayout </td>
          <td>(</td>
          <td class="paramtype">QWidget *&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>margin</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>spacing</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>Parent widget </td></tr>
    <tr><td class="paramname">margin</td><td>Margin </td></tr>
    <tr><td class="paramname">spacing</td><td>Spacing </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a05d45c0928702e37da3497626b0f7c93"></a><!-- doxytag: member="QwtDynGridLayout::QwtDynGridLayout" ref="a05d45c0928702e37da3497626b0f7c93" args="(int space=&#45;1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QwtDynGridLayout::QwtDynGridLayout </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>spacing</em> = <code>-1</code></td><td>)</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">spacing</td><td>Spacing </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="abb583f302fbf5d92b306841d414e52a4"></a><!-- doxytag: member="QwtDynGridLayout::~QwtDynGridLayout" ref="abb583f302fbf5d92b306841d414e52a4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QwtDynGridLayout::~QwtDynGridLayout </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a3ac3ace65c84e16fba7fe83cd795eea1"></a><!-- doxytag: member="QwtDynGridLayout::addItem" ref="a3ac3ace65c84e16fba7fe83cd795eea1" args="(QLayoutItem *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtDynGridLayout::addItem </td>
          <td>(</td>
          <td class="paramtype">QLayoutItem *&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds item to the next free position. </p>

</div>
</div>
<a class="anchor" id="adf7cc1acc36b41086fb4815633473901"></a><!-- doxytag: member="QwtDynGridLayout::columnsForWidth" ref="adf7cc1acc36b41086fb4815633473901" args="(int width) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint QwtDynGridLayout::columnsForWidth </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Calculate the number of columns for a given width. It tries to use as many columns as possible (limited by <a class="el" href="class_qwt_dyn_grid_layout.html#a6ffaad457d8c9b4d423c23fb6b433299">maxCols()</a>)</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>Available width for all columns </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dyn_grid_layout.html#a6ffaad457d8c9b4d423c23fb6b433299">maxCols()</a>, <a class="el" href="class_qwt_dyn_grid_layout.html#aedec17be16b997ecd1acff8424e02843">setMaxCols()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9a74593721ef1eba3d70275c36500ff6"></a><!-- doxytag: member="QwtDynGridLayout::count" ref="a9a74593721ef1eba3d70275c36500ff6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QwtDynGridLayout::count </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of items in the layout </dd></dl>

</div>
</div>
<a class="anchor" id="a1340bdbdaf09f79ac9e80f96f1b8b106"></a><!-- doxytag: member="QwtDynGridLayout::expandingDirections" ref="a1340bdbdaf09f79ac9e80f96f1b8b106" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Qt::Orientations QwtDynGridLayout::expandingDirections </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns whether this layout can make use of more space than <a class="el" href="class_qwt_dyn_grid_layout.html#afed46e3a8e1b6e67dcf62eca0bc948d6">sizeHint()</a>. A value of Qt::Vertical or Qt::Horizontal means that it wants to grow in only one dimension, while Qt::Vertical | Qt::Horizontal means that it wants to grow in both dimensions. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dyn_grid_layout.html#a56cd48dda979428402dd39d470674dee">setExpandingDirections()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae8867d543d54d5da9657c55b3c329d8e"></a><!-- doxytag: member="QwtDynGridLayout::hasHeightForWidth" ref="ae8867d543d54d5da9657c55b3c329d8e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtDynGridLayout::hasHeightForWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>true: <a class="el" href="class_qwt_dyn_grid_layout.html" title="The QwtDynGridLayout class lays out widgets in a grid, adjusting the number of columns and rows to th...">QwtDynGridLayout</a> implements heightForWidth. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dyn_grid_layout.html#afa3fd53b485e9f1ed90796ff923466f1">heightForWidth()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="afa3fd53b485e9f1ed90796ff923466f1"></a><!-- doxytag: member="QwtDynGridLayout::heightForWidth" ref="afa3fd53b485e9f1ed90796ff923466f1" args="(int) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QwtDynGridLayout::heightForWidth </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>The preferred height for this layout, given the width w. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dyn_grid_layout.html#ae8867d543d54d5da9657c55b3c329d8e">hasHeightForWidth()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="acb55e24d5bc569c9822110d538e3a82e"></a><!-- doxytag: member="QwtDynGridLayout::invalidate" ref="acb55e24d5bc569c9822110d538e3a82e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtDynGridLayout::invalidate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Invalidate all internal caches. </p>

</div>
</div>
<a class="anchor" id="a755f41277b43417d6b719704dc2c0d29"></a><!-- doxytag: member="QwtDynGridLayout::isEmpty" ref="a755f41277b43417d6b719704dc2c0d29" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtDynGridLayout::isEmpty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>true if this layout is empty. </dd></dl>

</div>
</div>
<a class="anchor" id="adbec8dc847c4159d0765c8f0dd80d148"></a><!-- doxytag: member="QwtDynGridLayout::itemAt" ref="adbec8dc847c4159d0765c8f0dd80d148" args="(int index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QLayoutItem * QwtDynGridLayout::itemAt </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Find the item at a spcific index</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>Index </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dyn_grid_layout.html#ad16c097bc1563eb1587e12789498bac9">takeAt()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ad7df7a3f47055041d6dd5ab1c4c660e0"></a><!-- doxytag: member="QwtDynGridLayout::itemCount" ref="ad7df7a3f47055041d6dd5ab1c4c660e0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint QwtDynGridLayout::itemCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>number of layout items </dd></dl>

</div>
</div>
<a class="anchor" id="acbf0033801a9c0464fedb56b32d3f783"></a><!-- doxytag: member="QwtDynGridLayout::layoutGrid" ref="acbf0033801a9c0464fedb56b32d3f783" args="(uint numCols, QwtArray&lt; int &gt; &amp;rowHeight, QwtArray&lt; int &gt; &amp;colWidth) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtDynGridLayout::layoutGrid </td>
          <td>(</td>
          <td class="paramtype">uint&#160;</td>
          <td class="paramname"><em>numCols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QwtArray&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>rowHeight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QwtArray&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>colWidth</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Calculate the dimensions for the columns and rows for a grid of numCols columns.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">numCols</td><td>Number of columns. </td></tr>
    <tr><td class="paramname">rowHeight</td><td>Array where to fill in the calculated row heights. </td></tr>
    <tr><td class="paramname">colWidth</td><td>Array where to fill in the calculated column widths. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0fe5c2a70d1086036fac2487cc982341"></a><!-- doxytag: member="QwtDynGridLayout::layoutItems" ref="a0fe5c2a70d1086036fac2487cc982341" args="(const QRect &amp;, uint numCols) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; QRect &gt; QwtDynGridLayout::layoutItems </td>
          <td>(</td>
          <td class="paramtype">const QRect &amp;&#160;</td>
          <td class="paramname"><em>rect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint&#160;</td>
          <td class="paramname"><em>numCols</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Calculate the geometries of the layout items for a layout with numCols columns and a given rect.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">rect</td><td>Rect where to place the items </td></tr>
    <tr><td class="paramname">numCols</td><td>Number of columns </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>item geometries </dd></dl>

</div>
</div>
<a class="anchor" id="a6ffaad457d8c9b4d423c23fb6b433299"></a><!-- doxytag: member="QwtDynGridLayout::maxCols" ref="a6ffaad457d8c9b4d423c23fb6b433299" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint QwtDynGridLayout::maxCols </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the upper limit for the number of columns. 0 means unlimited, what is the default. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dyn_grid_layout.html#aedec17be16b997ecd1acff8424e02843">setMaxCols()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a74ebb14c4b4fae32354d3824bf29c93e"></a><!-- doxytag: member="QwtDynGridLayout::maxItemWidth" ref="a74ebb14c4b4fae32354d3824bf29c93e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QwtDynGridLayout::maxItemWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the maximum width of all layout items </dd></dl>

</div>
</div>
<a class="anchor" id="a4678cd0f67c332162c266ac9661b5db6"></a><!-- doxytag: member="QwtDynGridLayout::numCols" ref="a4678cd0f67c332162c266ac9661b5db6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint QwtDynGridLayout::numCols </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of columns of the current layout. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dyn_grid_layout.html#ad3f387078e5e78b66b452c72e99923c2">numRows()</a> </dd></dl>
<dl class="warning"><dt><b>Warning:</b></dt><dd>The number of columns might change whenever the geometry changes </dd></dl>

</div>
</div>
<a class="anchor" id="ad3f387078e5e78b66b452c72e99923c2"></a><!-- doxytag: member="QwtDynGridLayout::numRows" ref="ad3f387078e5e78b66b452c72e99923c2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint QwtDynGridLayout::numRows </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of rows of the current layout. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dyn_grid_layout.html#a4678cd0f67c332162c266ac9661b5db6">numCols()</a> </dd></dl>
<dl class="warning"><dt><b>Warning:</b></dt><dd>The number of rows might change whenever the geometry changes </dd></dl>

</div>
</div>
<a class="anchor" id="a56cd48dda979428402dd39d470674dee"></a><!-- doxytag: member="QwtDynGridLayout::setExpandingDirections" ref="a56cd48dda979428402dd39d470674dee" args="(Qt::Orientations)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtDynGridLayout::setExpandingDirections </td>
          <td>(</td>
          <td class="paramtype">Qt::Orientations&#160;</td>
          <td class="paramname"><em>expanding</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set whether this layout can make use of more space than <a class="el" href="class_qwt_dyn_grid_layout.html#afed46e3a8e1b6e67dcf62eca0bc948d6">sizeHint()</a>. A value of Qt::Vertical or Qt::Horizontal means that it wants to grow in only one dimension, while Qt::Vertical | Qt::Horizontal means that it wants to grow in both dimensions. The default value is 0.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">expanding</td><td>Or'd orientations </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dyn_grid_layout.html#a1340bdbdaf09f79ac9e80f96f1b8b106">expandingDirections()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="afdf23bb94de5258f14fb077b39a64391"></a><!-- doxytag: member="QwtDynGridLayout::setGeometry" ref="afdf23bb94de5258f14fb077b39a64391" args="(const QRect &amp;rect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtDynGridLayout::setGeometry </td>
          <td>(</td>
          <td class="paramtype">const QRect &amp;&#160;</td>
          <td class="paramname"><em>rect</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reorganizes columns and rows and resizes managed widgets within the rectangle rect.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">rect</td><td>Layout geometry </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aedec17be16b997ecd1acff8424e02843"></a><!-- doxytag: member="QwtDynGridLayout::setMaxCols" ref="aedec17be16b997ecd1acff8424e02843" args="(uint maxCols)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtDynGridLayout::setMaxCols </td>
          <td>(</td>
          <td class="paramtype">uint&#160;</td>
          <td class="paramname"><em>maxCols</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Limit the number of columns. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">maxCols</td><td>upper limit, 0 means unlimited </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dyn_grid_layout.html#a6ffaad457d8c9b4d423c23fb6b433299">maxCols()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="afed46e3a8e1b6e67dcf62eca0bc948d6"></a><!-- doxytag: member="QwtDynGridLayout::sizeHint" ref="afed46e3a8e1b6e67dcf62eca0bc948d6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSize QwtDynGridLayout::sizeHint </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the size hint. If <a class="el" href="class_qwt_dyn_grid_layout.html#a6ffaad457d8c9b4d423c23fb6b433299">maxCols()</a> &gt; 0 it is the size for a grid with <a class="el" href="class_qwt_dyn_grid_layout.html#a6ffaad457d8c9b4d423c23fb6b433299">maxCols()</a> columns, otherwise it is the size for a grid with only one row.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dyn_grid_layout.html#a6ffaad457d8c9b4d423c23fb6b433299">maxCols()</a>, <a class="el" href="class_qwt_dyn_grid_layout.html#aedec17be16b997ecd1acff8424e02843">setMaxCols()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aee71c314a421165f80fa724a59c2c899"></a><!-- doxytag: member="QwtDynGridLayout::stretchGrid" ref="aee71c314a421165f80fa724a59c2c899" args="(const QRect &amp;rect, uint numCols, QwtArray&lt; int &gt; &amp;rowHeight, QwtArray&lt; int &gt; &amp;colWidth) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtDynGridLayout::stretchGrid </td>
          <td>(</td>
          <td class="paramtype">const QRect &amp;&#160;</td>
          <td class="paramname"><em>rect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint&#160;</td>
          <td class="paramname"><em>numCols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QwtArray&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>rowHeight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QwtArray&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>colWidth</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Stretch columns in case of expanding() &amp; QSizePolicy::Horizontal and rows in case of expanding() &amp; QSizePolicy::Vertical to fill the entire rect. Rows and columns are stretched with the same factor.</p>
<dl class="see"><dt><b>See also:</b></dt><dd>setExpanding(), expanding() </dd></dl>

</div>
</div>
<a class="anchor" id="ad16c097bc1563eb1587e12789498bac9"></a><!-- doxytag: member="QwtDynGridLayout::takeAt" ref="ad16c097bc1563eb1587e12789498bac9" args="(int index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QLayoutItem * QwtDynGridLayout::takeAt </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Find the item at a spcific index and remove it from the layout</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>Index </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dyn_grid_layout.html#adbec8dc847c4159d0765c8f0dd80d148">itemAt()</a> </dd></dl>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>