File: qtableselection.html

package info (click to toggle)
qt-embedded 2.3.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 68,608 kB
  • ctags: 45,998
  • sloc: cpp: 276,654; ansic: 71,987; makefile: 29,074; sh: 12,305; yacc: 2,465; python: 1,863; perl: 481; lex: 480; xml: 68; lisp: 15
file content (107 lines) | stat: -rw-r--r-- 6,478 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QTableSelection Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">

<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>

<h1 align=center>QTableSelection Class Reference<br><small>[ <a href="table.html">table module</a> ]</small></h1><br clear="all">
<p>
The QTableSelection provides access to the selected area in a <a href="qtable.html">QTable</a>.
<a href="#details">More...</a>
<p>
<code>#include &lt;<a href="qtable-h.html">qtable.h</a>&gt;</code>
<p><a href="qtableselection-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#bff023"><b>QTableSelection</b></a>()</div>
<li><div class="fn">void<a href="#bb79c0"><b>init</b></a>(introw, intcol)</div>
<li><div class="fn">void<a href="#6abc38"><b>expandTo</b></a>(introw, intcol)</div>
<li><div class="fn">bool<a href="#aaf0a1"><b>operator==</b></a>(constQTableSelection&amp;s)const</div>
<li><div class="fn">int<a href="#58f2ab"><b>topRow</b></a>()const</div>
<li><div class="fn">int<a href="#724979"><b>bottomRow</b></a>()const</div>
<li><div class="fn">int<a href="#107231"><b>leftCol</b></a>()const</div>
<li><div class="fn">int<a href="#bd9277"><b>rightCol</b></a>()const</div>
<li><div class="fn">int<a href="#186ee0"><b>anchorRow</b></a>()const</div>
<li><div class="fn">int<a href="#5d40ef"><b>anchorCol</b></a>()const</div>
<li><div class="fn">bool<a href="#6577a3"><b>isActive</b></a>()const</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
The QTableSelection provides access to the selected area in a <a href="qtable.html">QTable</a>.
<p>
The selection is a rectangular set of cells.  One of the rectangle's
cells is called the anchor cell; that cell is the first selected.
The <a href="#bb79c0">init</a>() function sets the anchor and sets the selection rectangle
to just that cell; the <a href="#6abc38">expandTo</a>() function expands the selection
rectangle.
<p>There are various access functions to get the area: <a href="#186ee0">anchorRow</a>() and
<a href="#5d40ef">anchorCol</a>() return the achor's position, and <a href="#107231">leftCol</a>(), <a href="#bd9277">rightCol</a>(),
<a href="#58f2ab">topRow</a>() and <a href="#724979">bottomRow</a>() return the rectangle's four edges.  All
four are in the selection.
<p>A newly created QTableSelection is inactive -- <a href="#6577a3">isActive</a>() returns
FALSE.  You must use init() and expandTo() to activate it.
<p>See also  <a href="qtable.html">QTable</a>, <a href="qtable.html#973601">QTable::addSelection</a>() and <a href="qtable.html#7de2b9">QTable::selection</a>().

<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="bff023"></a>QTableSelection::QTableSelection()</h3>
<p>Creates an inactive selection. Use <a href="#bb79c0">init</a>() and <a href="#6abc38">expandTo</a>() to
activate it.
<h3 class="fn">int<a name="5d40ef"></a>QTableSelection::anchorCol()const</h3>
<p>Returns the anchor column of the selection.
<h3 class="fn">int<a name="186ee0"></a>QTableSelection::anchorRow()const</h3>
<p>Returns the anchor row of the selection.
<h3 class="fn">int<a name="724979"></a>QTableSelection::bottomRow()const</h3>
<p>Returns the bottom row of the selection.
<h3 class="fn">void<a name="6abc38"></a>QTableSelection::expandTo(introw, intcol)</h3>
<p>Expands the selection to <em>row, col.</em> The new selection
rectangle is the bounding rectangle of <em>row, col</em> and the old
selection rectangle. After calling that function, the selections is
active.
<p>If you didn't call <a href="#bb79c0">init</a>() yet, this function does nothing.
<p>See also  <a href="#bb79c0">init</a>() and <a href="#6577a3">isActive</a>().
<h3 class="fn">void<a name="bb79c0"></a>QTableSelection::init(introw, intcol)</h3>
<p>Sets the selection anchor to row <em>row</em> and column <em>col</em> and
sets the selection to just that cell.
<p>See also  <a href="#6abc38">expandTo</a>() and <a href="#6577a3">isActive</a>().
<h3 class="fn">bool<a name="6577a3"></a>QTableSelection::isActive()const</h3>
<p>Returns whether the selection is active or not. A selection is
active after <a href="#bb79c0">init</a>() and <a href="#6abc38">expandTo</a>() has beem called.
<h3 class="fn">int<a name="107231"></a>QTableSelection::leftCol()const</h3>
<p>Returns the left column of the selection.
<h3 class="fn">bool<a name="aaf0a1"></a>QTableSelection::operator==(constQTableSelection&amp;s)const</h3>
<p>Returns TRUE if <em>s</em> includes the same cells as this selection, or
else FALSE.
<h3 class="fn">int<a name="bd9277"></a>QTableSelection::rightCol()const</h3>
<p>Returns the right column of the selection.
<h3 class="fn">int<a name="58f2ab"></a>QTableSelection::topRow()const</h3>
<p>Returns the top row of the selection.
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright &copy; 1995-2001
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright  2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>