File: toListView.html

package info (click to toggle)
tora 1.3.16-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 11,604 kB
  • ctags: 10,426
  • sloc: cpp: 100,338; sh: 5,034; perl: 1,482; makefile: 566; xml: 69
file content (212 lines) | stat: -rw-r--r-- 16,369 bytes parent folder | download | duplicates (3)
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
<HTML>
<HEAD>
<TITLE>class toListView</TITLE>

<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
	<TABLE BORDER="0">
		<TR><TD valign="top" align="left" cellspacing="10">
		<h1>class toListView</h1>
		</TD>
		<TD valign="top" align="right" colspan="1">
 The TOra implementation of a listview which offers a few extra goodies to the baseclass. <small><A HREF="#longdesc">More...</A></small></TD></TR>
	</TABLE>
	<HR>
	<TABLE BORDER="0">
		<TR><TH>Definition</TH><TD><code>#include &lt;<A HREF="toresultview_h.html">toresultview.h</A>&gt;</code></TD></TR>
<TR><TH>Inherits</TH><TD><A HREF="/usr/lib/qt3/doc/html/qlistview.html">QListView</A> <small>(qt)</small> <small>[public ]</small>, <A HREF="toEditWidget.html">toEditWidget</A> <small>[public ]</small></TD></TR>
<TR><TH>Inherited by</TH><TD><A HREF="toResultCols__resultCols.html">resultCols</A>, <A HREF="toResultConstraint.html">toResultConstraint</A>, <A HREF="toResultDepend.html">toResultDepend</A>, <A HREF="toResultIndexes.html">toResultIndexes</A>, <A HREF="toResultLong.html">toResultLong</A>, <A HREF="toResultPlan.html">toResultPlan</A>, <A HREF="toResultReferences.html">toResultReferences</A>, <A HREF="toResultStats.html">toResultStats</A>, <A HREF="toResultView.html">toResultView</A></TD></TR>
<TR><TH><A HREF="full-list-toListView.html">List of all Methods</A></TH></TR>
	</TABLE>
	</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Methods</h4><ul><LI>&nbsp;<b><A HREF="#ref14">toListView</A></b> (<A HREF="/usr/lib/qt3/doc/html/qwidget.html">QWidget</A> *parent,const char *name=NULL,WFlags f=0) 
</LI>
<LI>virtual  &nbsp;<b><A HREF="#ref15">~toListView</A></b> () 
</LI>
<LI>virtual  <A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &nbsp;<b><A HREF="#ref16">sqlName</A></b> (void) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref17">setSQLName</A></b> (const <A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &name) 
</LI>
<LI><A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &nbsp;<b><A HREF="#ref18">menuText</A></b> (void) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref19">editPrint</A></b> (void) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref20">focusInEvent</A></b> (<A HREF="/usr/lib/qt3/doc/html/qfocusevent.html">QFocusEvent</A> *e) 
</LI>
<LI>virtual  <A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &nbsp;<b><A HREF="#ref21">middleString</A></b> () 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref22">addMenues</A></b> (<A HREF="/usr/lib/qt3/doc/html/qpopupmenu.html">QPopupMenu</A> *menu) 
</LI>
<LI>virtual  bool &nbsp;<b><A HREF="#ref23">editSave</A></b> (bool ask) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref24">editSelectAll</A></b> (void) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref25">searchTop</A></b> (void) 
</LI>
<LI>virtual  bool &nbsp;<b><A HREF="#ref26">searchNext</A></b> (<A HREF="#toSearchReplace">toSearchReplace</A> *search) 
</LI>
<LI>virtual  bool &nbsp;<b><A HREF="#ref27">searchCanReplace</A></b> (bool all) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref28">exportData</A></b> (std::map<<A HREF="/usr/lib/qt3/doc/html/qcstring.html">QCString</A>,<A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A>> &data,const <A HREF="/usr/lib/qt3/doc/html/qcstring.html">QCString</A> &prefix) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref29">importData</A></b> (std::map<<A HREF="/usr/lib/qt3/doc/html/qcstring.html">QCString</A>,<A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A>> &data,const <A HREF="/usr/lib/qt3/doc/html/qcstring.html">QCString</A> &prefix) 
</LI>
<LI>virtual  <A HREF="toListView.html">toListView</A> *&nbsp;<b><A HREF="#ref30">copyTransposed</A></b> (void) 
</LI>
</ul><h4>Public Slots</h4><ul><LI>virtual  void &nbsp;<b><A HREF="#ref32">setDisplayMenu</A></b> (<A HREF="/usr/lib/qt3/doc/html/qpopupmenu.html">QPopupMenu</A> *item) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref33">displayMenu</A></b> (<A HREF="/usr/lib/qt3/doc/html/qlistviewitem.html">QListViewItem</A> *item,const <A HREF="/usr/lib/qt3/doc/html/qpoint.html">QPoint</A> &pnt,int col) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref34">displayMemo</A></b> (void) 
</LI>
</ul><h4>Signals</h4><ul><LI>void &nbsp;<b><A HREF="#ref31">displayMenu</A></b> (<A HREF="/usr/lib/qt3/doc/html/qpopupmenu.html">QPopupMenu</A> *menu) 
</LI>
</ul><h4>Protected Slots</h4><ul><LI>virtual  void &nbsp;<b><A HREF="#ref35">menuCallback</A></b> (int id) 
</LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p>
 The TOra implementation of a listview which offers a few extra goodies to the baseclass.
 First of all tooltip which can display contents that doesn't fit in the list, printing,
 integration into toMain with Edit menu etc, drag & drop, export as file, display item
 as memo and context menu.
 </p>
<A NAME="toListView"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>toListView</strong> (<A HREF="/usr/lib/qt3/doc/html/qwidget.html">QWidget</A> *parent,const char *name=NULL,WFlags f=0)
<br></td><td align="right"><h3><strong>toListView</strong></h3></td></tr></table><p></p><p> Create new list view.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>parent</i></TD><TD align="left" valign="top">Parent of list.
</TD></TR>
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">Name of list.
</TD></TR>
<TR><TD align="left" valign="top"><i>f</i></TD><TD align="left" valign="top">Widget flags.
   </TD></TR>
</TABLE></P>
<A NAME="~toListView"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td> &nbsp;<strong>~toListView</strong> ()
<br></td><td align="right"><h3><strong>~toListView</strong></h3></td></tr></table><p> <small>[virtual]</small></p><A NAME="sqlName"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &nbsp;<strong>sqlName</strong> (void)
<br></td><td align="right"><h3><strong>sqlName</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Get SQL name of list.
   </p>
<A NAME="setSQLName"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setSQLName</strong> (const <A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &name)
<br></td><td align="right"><h3><strong>setSQLName</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Set SQL name of list.
   </p>
<A NAME="menuText"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &nbsp;<strong>menuText</strong> (void)
<br></td><td align="right"><h3><strong>menuText</strong></h3></td></tr></table><p></p><p> Get the whole text for the item and column selected when menu was poped up.
   </p>
<A NAME="editPrint"></A><A NAME="ref19"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>editPrint</strong> (void)
<br></td><td align="right"><h3><strong>editPrint</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Print this list
   </p>
<p>Reimplemented from <A HREF="toEditWidget.html#editPrint">toEditWidget</A>.</p>
<A NAME="focusInEvent"></A><A NAME="ref20"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>focusInEvent</strong> (<A HREF="/usr/lib/qt3/doc/html/qfocusevent.html">QFocusEvent</A> *e)
<br></td><td align="right"><h3><strong>focusInEvent</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Reimplemented for internal reasons.
   </p>
<A NAME="middleString"></A><A NAME="ref21"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &nbsp;<strong>middleString</strong> ()
<br></td><td align="right"><h3><strong>middleString</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> The string to be displayed in the middle of the footer when printing.
</p>
<p><b>Returns</b>: String to be placed in middle.
   </p>
<A NAME="addMenues"></A><A NAME="ref22"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>addMenues</strong> (<A HREF="/usr/lib/qt3/doc/html/qpopupmenu.html">QPopupMenu</A> *menu)
<br></td><td align="right"><h3><strong>addMenues</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Adds option to add menues to the popup menu before it is displayed.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>menu</i></TD><TD align="left" valign="top">Menu to add entries to.
   </TD></TR>
</TABLE></P>
<A NAME="editSave"></A><A NAME="ref23"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool &nbsp;<strong>editSave</strong> (bool ask)
<br></td><td align="right"><h3><strong>editSave</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Export list as file.
   </p>
<p>Reimplemented from <A HREF="toEditWidget.html#editSave">toEditWidget</A>.</p>
<A NAME="editSelectAll"></A><A NAME="ref24"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>editSelectAll</strong> (void)
<br></td><td align="right"><h3><strong>editSelectAll</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Select all contents.
   </p>
<p>Reimplemented from <A HREF="toEditWidget.html#editSelectAll">toEditWidget</A>.</p>
<A NAME="searchTop"></A><A NAME="ref25"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>searchTop</strong> (void)
<br></td><td align="right"><h3><strong>searchTop</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Move to top of data
   </p>
<p>Reimplemented from <A HREF="toEditWidget.html#searchTop">toEditWidget</A>.</p>
<A NAME="searchNext"></A><A NAME="ref26"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool &nbsp;<strong>searchNext</strong> (<A HREF="#toSearchReplace">toSearchReplace</A> *search)
<br></td><td align="right"><h3><strong>searchNext</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Search for next entry
</p>
<p><b>Returns</b>: True if found, should select the found text.
   </p>
<p>Reimplemented from <A HREF="toEditWidget.html#searchNext">toEditWidget</A>.</p>
<A NAME="searchCanReplace"></A><A NAME="ref27"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool &nbsp;<strong>searchCanReplace</strong> (bool all)
<br></td><td align="right"><h3><strong>searchCanReplace</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Check if data can be modified by search
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>all</i></TD><TD align="left" valign="top">If true can replace all, otherwise can replace right now.
   </TD></TR>
</TABLE></P>
<p>Reimplemented from <A HREF="toEditWidget.html#searchCanReplace">toEditWidget</A>.</p>
<A NAME="exportData"></A><A NAME="ref28"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>exportData</strong> (std::map<<A HREF="/usr/lib/qt3/doc/html/qcstring.html">QCString</A>,<A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A>> &data,const <A HREF="/usr/lib/qt3/doc/html/qcstring.html">QCString</A> &prefix)
<br></td><td align="right"><h3><strong>exportData</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Export data to a map.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>data</i></TD><TD align="left" valign="top">A map that can be used to recreate the data of a chart.
</TD></TR>
<TR><TD align="left" valign="top"><i>prefix</i></TD><TD align="left" valign="top">Prefix to add to the map.
   </TD></TR>
</TABLE></P>
<A NAME="importData"></A><A NAME="ref29"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>importData</strong> (std::map<<A HREF="/usr/lib/qt3/doc/html/qcstring.html">QCString</A>,<A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A>> &data,const <A HREF="/usr/lib/qt3/doc/html/qcstring.html">QCString</A> &prefix)
<br></td><td align="right"><h3><strong>importData</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Import data
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>data</i></TD><TD align="left" valign="top">Data to read from a map.
</TD></TR>
<TR><TD align="left" valign="top"><i>prefix</i></TD><TD align="left" valign="top">Prefix to read data from.
   </TD></TR>
</TABLE></P>
<A NAME="copyTransposed"></A><A NAME="ref30"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="toListView.html">toListView</A> *&nbsp;<strong>copyTransposed</strong> (void)
<br></td><td align="right"><h3><strong>copyTransposed</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Create transposed copy of list
</p>
<p><b>Returns</b>: Pointer to newly allocated transposed listview.
   </p>
<A NAME="displayMenu"></A><A NAME="ref31"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>displayMenu</strong> (<A HREF="/usr/lib/qt3/doc/html/qpopupmenu.html">QPopupMenu</A> *menu)
<br></td><td align="right"><h3><strong>displayMenu</strong></h3></td></tr></table><p> <small>[signal]</small></p><p> Called before the menu is displayed so that you can add items to it before it is shown.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>menu</i></TD><TD align="left" valign="top">Pointer to the menu about to be shown.
   </TD></TR>
</TABLE></P>
<A NAME="setDisplayMenu"></A><A NAME="ref32"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setDisplayMenu</strong> (<A HREF="/usr/lib/qt3/doc/html/qpopupmenu.html">QPopupMenu</A> *item)
<br></td><td align="right"><h3><strong>setDisplayMenu</strong></h3></td></tr></table><p> <small>[virtual slot]</small></p><p> set the popup menu --> see displayMenu()
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>item</i></TD><TD align="left" valign="top">Item to display.
   </TD></TR>
</TABLE></P>
<A NAME="displayMenu"></A><A NAME="ref33"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>displayMenu</strong> (<A HREF="/usr/lib/qt3/doc/html/qlistviewitem.html">QListViewItem</A> *item,const <A HREF="/usr/lib/qt3/doc/html/qpoint.html">QPoint</A> &pnt,int col)
<br></td><td align="right"><h3><strong>displayMenu</strong></h3></td></tr></table><p> <small>[virtual slot]</small></p><p> Display the menu at the given point and column.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>item</i></TD><TD align="left" valign="top">Item to display.
</TD></TR>
<TR><TD align="left" valign="top"><i>pnt</i></TD><TD align="left" valign="top">Point to display menu at.
</TD></TR>
<TR><TD align="left" valign="top"><i>col</i></TD><TD align="left" valign="top">Column to display menu for.
   </TD></TR>
</TABLE></P>
<A NAME="displayMemo"></A><A NAME="ref34"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>displayMemo</strong> (void)
<br></td><td align="right"><h3><strong>displayMemo</strong></h3></td></tr></table><p> <small>[virtual slot]</small></p><p> Display memo of selected menu column
   </p>
<A NAME="menuCallback"></A><A NAME="ref35"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>menuCallback</strong> (int id)
<br></td><td align="right"><h3><strong>menuCallback</strong></h3></td></tr></table><p> <small>[protected slots virtual slot]</small></p><p> Callback when menu is selected. If you override this make sure you
 call the parents function when you have parsed your entries.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>id</i></TD><TD align="left" valign="top">ID of the menu item selected.
   </TD></TR>
</TABLE></P>
<HR>
	<table>
	<tr><td><small>Generated by: nneul on skyhawk on Wed Feb 23 19:49:58 2005, using kdoc 2.0a54.</small></td></tr>
	</table>
</BODY>
</HTML>