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
|
// This is the SIP interface definition for QTableView.
//
// Copyright (c) 2007
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
//
// This file is part of PyQt.
//
// This copy of PyQt is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2, or (at your option) any later
// version.
//
// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
// PyQt; see the file LICENSE. If not, write to the Free Software Foundation,
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
%ExportedDoc
<Sect2><Title>QTableView (Qt 1.x, Qt 2.x)</Title>
<FuncSynopsis>
<FuncDef>bool <Function>colXPos</Function></FuncDef>
<ParamDef>int <Parameter>col</Parameter></ParamDef>
<ParamDef>int *<Parameter>xPos</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes the <Literal>col</Literal> parameter and returns a tuple containing
the <Literal>bool</Literal> result and <Literal>xPos</Literal>.
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>rowYPos</Function></FuncDef>
<ParamDef>int <Parameter>row</Parameter></ParamDef>
<ParamDef>int *<Parameter>yPos</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes the <Literal>row</Literal> parameter and returns a tuple containing
the <Literal>bool</Literal> result and <Literal>yPos</Literal>.
</Para>
</Sect2>
%End
%If (Qt_TABLEVIEW)
%If (- Qt_3_0_0)
%ModuleHeaderCode
#include <qtableview.h>
%End
const uint Tbl_vScrollBar;
const uint Tbl_hScrollBar;
const uint Tbl_autoVScrollBar;
const uint Tbl_autoHScrollBar;
const uint Tbl_autoScrollBars;
const uint Tbl_clipCellPainting;
const uint Tbl_cutCellsV;
const uint Tbl_cutCellsH;
const uint Tbl_cutCells;
const uint Tbl_scrollLastHCell;
const uint Tbl_scrollLastVCell;
const uint Tbl_scrollLastCell;
const uint Tbl_smoothHScrolling;
const uint Tbl_smoothVScrolling;
const uint Tbl_smoothScrolling;
const uint Tbl_snapToHGrid;
const uint Tbl_snapToVGrid;
const uint Tbl_snapToGrid;
class QTableView : QFrame
{
%TypeHeaderCode
#include <qtableview.h>
%End
public:
%If (- Qt_2_00)
void setBackgroundColor(const QColor &);
void setPalette(const QPalette &);
%End
%If (Qt_2_00 -)
virtual void setBackgroundColor(const QColor &);
virtual void setPalette(const QPalette &);
%End
void show();
void repaint(bool = 1);
void repaint(int,int,int,int,bool = 1);
void repaint(const QRect &,bool = 1);
protected:
QTableView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
~QTableView();
int numRows() const;
int numCols() const;
int topCell() const;
int leftCell() const;
int xOffset() const;
int yOffset() const;
virtual int cellWidth(int);
virtual int cellHeight(int);
int cellWidth() const;
int cellHeight() const;
virtual int totalWidth();
virtual int totalHeight();
uint tableFlags() const;
bool testTableFlags(uint) const;
void clearTableFlags(uint = ~0);
bool autoUpdate() const;
void updateCell(int,int,bool = 1);
QRect cellUpdateRect() const;
QRect viewRect() const;
int lastRowVisible() const;
int lastColVisible() const;
bool rowIsVisible(int) const;
bool colIsVisible(int) const;
const QScrollBar *verticalScrollBar() const;
const QScrollBar *horizontalScrollBar() const;
virtual void paintCell(QPainter *,int,int) = 0;
virtual void setupPainter(QPainter *);
void paintEvent(QPaintEvent *);
void resizeEvent(QResizeEvent *);
int findRow(int) const;
int findCol(int) const;
bool rowYPos(int,int *) const;
bool colXPos(int,int *) const;
int maxXOffset();
int maxYOffset();
int maxColOffset();
int maxRowOffset();
int minViewX() const;
int minViewY() const;
int maxViewX() const;
int maxViewY() const;
int viewWidth() const;
int viewHeight() const;
void scroll(int,int);
void updateScrollBars();
void updateTableSize();
%If (- Qt_2_00)
void setNumRows(int);
void setNumCols(int);
void setTopCell(int);
void setLeftCell(int);
void setTopLeftCell(int,int);
void setXOffset(int);
void setYOffset(int);
void setOffset(int,int,bool = 1);
void setCellWidth(int);
void setCellHeight(int);
void setTableFlags(uint);
void setAutoUpdate(bool);
%End
%If (Qt_2_00 -)
virtual void setNumRows(int);
virtual void setNumCols(int);
virtual void setTopCell(int);
virtual void setLeftCell(int);
virtual void setTopLeftCell(int,int);
virtual void setXOffset(int);
virtual void setYOffset(int);
virtual void setOffset(int,int,bool = 1);
virtual void setCellWidth(int);
virtual void setCellHeight(int);
virtual void setTableFlags(uint);
virtual void setAutoUpdate(bool);
%End
private:
QTableView(const QTableView &);
};
%End
%End
|