[go: up one dir, main page]

File: toListView.html

package info (click to toggle)
tora 1.3.4-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,632 kB
  • ctags: 7,487
  • sloc: cpp: 68,518; perl: 1,475; ansic: 291; sh: 173; makefile: 51
file content (178 lines) | stat: -rw-r--r-- 13,829 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
<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="http://doc.trolltech.com/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="#ref13">toListView</A></b> (<A HREF="http://doc.trolltech.com/qwidget.html">QWidget</A> *parent,const char *name=NULL) 
</LI>
<LI>virtual  <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<b><A HREF="#ref14">sqlName</A></b> (void) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref15">setSQLName</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name) 
</LI>
<LI><A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<b><A HREF="#ref16">menuText</A></b> (void) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref17">editPrint</A></b> (void) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref18">editSearch</A></b> (<A HREF="#toSearchReplace">toSearchReplace</A> *) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref19">focusInEvent</A></b> (<A HREF="http://doc.trolltech.com/qfocusevent.html">QFocusEvent</A> *e) 
</LI>
<LI>virtual  <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<b><A HREF="#ref20">middleString</A></b> () 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref21">addMenues</A></b> (<A HREF="http://doc.trolltech.com/qpopupmenu.html">QPopupMenu</A> *menu) 
</LI>
<LI>virtual  <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<b><A HREF="#ref22">exportAsText</A></b> (bool includeHeader,bool onlySelection,int type=-1) 
</LI>
<LI>virtual  bool &nbsp;<b><A HREF="#ref23">editSave</A></b> (bool ask) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref24">exportData</A></b> (std::map<<A HREF="http://doc.trolltech.com/qstring.html">QString</A>,<A HREF="http://doc.trolltech.com/qstring.html">QString</A>> &data,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &prefix) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref25">importData</A></b> (std::map<<A HREF="http://doc.trolltech.com/qstring.html">QString</A>,<A HREF="http://doc.trolltech.com/qstring.html">QString</A>> &data,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &prefix) 
</LI>
<LI>virtual  <A HREF="toListView.html">toListView</A> *&nbsp;<b><A HREF="#ref26">copyTransposed</A></b> (void) 
</LI>
</ul><h4>Public Slots</h4><ul><LI>virtual  void &nbsp;<b><A HREF="#ref27">displayMenu</A></b> (<A HREF="http://doc.trolltech.com/qlistviewitem.html">QListViewItem</A> *item,const <A HREF="http://doc.trolltech.com/qpoint.html">QPoint</A> &pnt,int col) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref28">displayMemo</A></b> (void) 
</LI>
</ul><h4>Protected Slots</h4><ul><LI>virtual  void &nbsp;<b><A HREF="#ref29">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="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>toListView</strong> (<A HREF="http://doc.trolltech.com/qwidget.html">QWidget</A> *parent,const char *name=NULL)
<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>
</TABLE></P>
<A NAME="sqlName"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="http://doc.trolltech.com/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="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setSQLName</strong> (const <A HREF="http://doc.trolltech.com/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="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="http://doc.trolltech.com/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="ref17"></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="editSearch"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>editSearch</strong> (<A HREF="#toSearchReplace">toSearchReplace</A> *)
<br></td><td align="right"><h3><strong>editSearch</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Reimplemented for internal reasons.
   </p>
<p>Reimplemented from <A HREF="toEditWidget.html#editSearch">toEditWidget</A>.</p>
<A NAME="focusInEvent"></A><A NAME="ref19"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>focusInEvent</strong> (<A HREF="http://doc.trolltech.com/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>
<p>Reimplemented from <A HREF="http://doc.trolltech.com/qlistview.html#7d4434">QListView</A>.</p>
<A NAME="middleString"></A><A NAME="ref20"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="http://doc.trolltech.com/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="ref21"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>addMenues</strong> (<A HREF="http://doc.trolltech.com/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="exportAsText"></A><A NAME="ref22"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &nbsp;<strong>exportAsText</strong> (bool includeHeader,bool onlySelection,int type=-1)
<br></td><td align="right"><h3><strong>exportAsText</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Export list as a string.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>includeHeader</i></TD><TD align="left" valign="top">Include header.
</TD></TR>
<TR><TD align="left" valign="top"><i>onlySelection</i></TD><TD align="left" valign="top">Only include selection.
</TD></TR>
<TR><TD align="left" valign="top"><i>type</i></TD><TD align="left" valign="top">Format of exported list.
   </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="exportData"></A><A NAME="ref24"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>exportData</strong> (std::map<<A HREF="http://doc.trolltech.com/qstring.html">QString</A>,<A HREF="http://doc.trolltech.com/qstring.html">QString</A>> &data,const <A HREF="http://doc.trolltech.com/qstring.html">QString</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="ref25"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>importData</strong> (std::map<<A HREF="http://doc.trolltech.com/qstring.html">QString</A>,<A HREF="http://doc.trolltech.com/qstring.html">QString</A>> &data,const <A HREF="http://doc.trolltech.com/qstring.html">QString</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="ref26"></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="ref27"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>displayMenu</strong> (<A HREF="http://doc.trolltech.com/qlistviewitem.html">QListViewItem</A> *item,const <A HREF="http://doc.trolltech.com/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="ref28"></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="ref29"></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>
	</table>
</BODY>
</HTML>