summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QTable.java
blob: 622e9391f5d6ab639260ba7f04b03670b17d68a1 (plain)
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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;

/**
 See {@link TQTableSignals} for signals emitted by TQTable
*/
public class TQTable extends TQScrollView  {
	protected TQTable(Class dummy){super((Class) null);}
	public static final int Single = 0;
	public static final int Multi = 1;
	public static final int SingleRow = 2;
	public static final int MultiRow = 3;
	public static final int NoSelection = 4;

	public static final int FollowStyle = 0;
	public static final int SpreadSheet = 1;

	public static final int NotEditing = 0;
	public static final int Editing = 1;
	public static final int Replacing = 2;

	public native TQMetaObject metaObject();
	public native String className();
	public TQTable(TQWidget parent, String name) {
		super((Class) null);
		newTQTable(parent,name);
	}
	private native void newTQTable(TQWidget parent, String name);
	public TQTable(TQWidget parent) {
		super((Class) null);
		newTQTable(parent);
	}
	private native void newTQTable(TQWidget parent);
	public TQTable() {
		super((Class) null);
		newTQTable();
	}
	private native void newTQTable();
	public TQTable(int numRows, int numCols, TQWidget parent, String name) {
		super((Class) null);
		newTQTable(numRows,numCols,parent,name);
	}
	private native void newTQTable(int numRows, int numCols, TQWidget parent, String name);
	public TQTable(int numRows, int numCols, TQWidget parent) {
		super((Class) null);
		newTQTable(numRows,numCols,parent);
	}
	private native void newTQTable(int numRows, int numCols, TQWidget parent);
	public TQTable(int numRows, int numCols) {
		super((Class) null);
		newTQTable(numRows,numCols);
	}
	private native void newTQTable(int numRows, int numCols);
	public native TQHeader horizontalHeader();
	public native TQHeader verticalHeader();
	public native void setSelectionMode(int mode);
	public native int selectionMode();
	public native void setItem(int row, int col, TQTableItem item);
	public native void setText(int row, int col, String text);
	public native void setPixmap(int row, int col, TQPixmap pix);
	public native TQTableItem item(int row, int col);
	public native String text(int row, int col);
	public native TQPixmap pixmap(int row, int col);
	public native void clearCell(int row, int col);
	public native TQRect cellGeometry(int row, int col);
	public native int columnWidth(int col);
	public native int rowHeight(int row);
	public native int columnPos(int col);
	public native int rowPos(int row);
	public native int columnAt(int x);
	public native int rowAt(int y);
	public native int numRows();
	public native int numCols();
	public native void updateCell(int row, int col);
	public native boolean eventFilter(TQObject o, TQEvent arg2);
	public native int currentRow();
	public native int currentColumn();
	public native void ensureCellVisible(int row, int col);
	public native boolean isSelected(int row, int col);
	public native boolean isRowSelected(int row, boolean full);
	public native boolean isRowSelected(int row);
	public native boolean isColumnSelected(int col, boolean full);
	public native boolean isColumnSelected(int col);
	public native int numSelections();
	public native TQTableSelection selection(int num);
	public native int addSelection(TQTableSelection s);
	public native void removeSelection(TQTableSelection s);
	public native void removeSelection(int num);
	public native int currentSelection();
	public native void selectCells(int start_row, int start_col, int end_row, int end_col);
	public native void selectRow(int row);
	public native void selectColumn(int col);
	public native boolean showGrid();
	public native boolean columnMovingEnabled();
	public native boolean rowMovingEnabled();
	public native void sortColumn(int col, boolean ascending, boolean wholeRows);
	public native void sortColumn(int col, boolean ascending);
	public native void sortColumn(int col);
	public native boolean sortOnInsert();
	public native void takeItem(TQTableItem i);
	public native void setCellWidget(int row, int col, TQWidget e);
	public native TQWidget cellWidget(int row, int col);
	public native void clearCellWidget(int row, int col);
	public native TQRect cellRect(int row, int col);
	public native void paintCell(TQPainter p, int row, int col, TQRect cr, boolean selected);
	public native void paintCell(TQPainter p, int row, int col, TQRect cr, boolean selected, TQColorGroup cg);
	public native void paintFocus(TQPainter p, TQRect r);
	public native TQSize sizeHint();
	public native boolean isReadOnly();
	public native boolean isRowReadOnly(int row);
	public native boolean isColumnReadOnly(int col);
	public native void setEnabled(boolean b);
	public native void repaintSelections();
	public native void setFocusStyle(int fs);
	public native int focusStyle();
	public native void updateHeaderStates();
	public native void setNumRows(int r);
	public native void setNumCols(int r);
	public native void setShowGrid(boolean b);
	public native void hideRow(int row);
	public native void hideColumn(int col);
	public native void showRow(int row);
	public native void showColumn(int col);
	public native boolean isRowHidden(int row);
	public native boolean isColumnHidden(int col);
	public native void setColumnWidth(int col, int w);
	public native void setRowHeight(int row, int h);
	public native void adjustColumn(int col);
	public native void adjustRow(int row);
	public native void setColumnStretchable(int col, boolean stretch);
	public native void setRowStretchable(int row, boolean stretch);
	public native boolean isColumnStretchable(int col);
	public native boolean isRowStretchable(int row);
	public native void setSorting(boolean b);
	public native void swapRows(int row1, int row2, boolean swapHeader);
	public native void swapRows(int row1, int row2);
	public native void swapColumns(int col1, int col2, boolean swapHeader);
	public native void swapColumns(int col1, int col2);
	public native void swapCells(int row1, int col1, int row2, int col2);
	public native void setLeftMargin(int m);
	public native void setTopMargin(int m);
	public native void setCurrentCell(int row, int col);
	public native void clearSelection(boolean repaint);
	public native void clearSelection();
	public native void setColumnMovingEnabled(boolean b);
	public native void setRowMovingEnabled(boolean b);
	public native void setReadOnly(boolean b);
	public native void setRowReadOnly(int row, boolean ro);
	public native void setColumnReadOnly(int col, boolean ro);
	public native void setDragEnabled(boolean b);
	public native boolean dragEnabled();
	public native void insertRows(int row, int count);
	public native void insertRows(int row);
	public native void insertColumns(int col, int count);
	public native void insertColumns(int col);
	public native void removeRow(int row);
	// void removeRows(const TQMemArray<int>& arg1); >>>> NOT CONVERTED
	public native void removeColumn(int col);
	// void removeColumns(const TQMemArray<int>& arg1); >>>> NOT CONVERTED
	public native void editCell(int row, int col, boolean replace);
	public native void editCell(int row, int col);
	public native void setRowLabels(String[] labels);
	public native void setColumnLabels(String[] labels);
	public static native String tr(String arg1, String arg2);
	public static native String tr(String arg1);
	protected native void drawContents(TQPainter p, int cx, int cy, int cw, int ch);
	protected native void contentsMousePressEvent(TQMouseEvent arg1);
	protected native void contentsMouseMoveEvent(TQMouseEvent arg1);
	protected native void contentsMouseDoubleClickEvent(TQMouseEvent arg1);
	protected native void contentsMouseReleaseEvent(TQMouseEvent arg1);
	protected native void contentsContextMenuEvent(TQContextMenuEvent e);
	protected native void keyPressEvent(TQKeyEvent arg1);
	protected native void focusInEvent(TQFocusEvent arg1);
	protected native void focusOutEvent(TQFocusEvent arg1);
	protected native void viewportResizeEvent(TQResizeEvent arg1);
	public native void showEvent(TQShowEvent e);
	protected native void paintEvent(TQPaintEvent e);
	// void setEditMode(TQTable::EditMode arg1,int arg2,int arg3); >>>> NOT CONVERTED
	protected native void contentsDragEnterEvent(TQDragEnterEvent e);
	protected native void contentsDragMoveEvent(TQDragMoveEvent e);
	protected native void contentsDragLeaveEvent(TQDragLeaveEvent e);
	protected native void contentsDropEvent(TQDropEvent e);
	protected native TQDragObject dragObject();
	protected native void startDrag();
	protected native void paintEmptyArea(TQPainter p, int cx, int cy, int cw, int ch);
	protected native void activateNextCell();
	protected native TQWidget createEditor(int row, int col, boolean initFromCell);
	protected native void setCellContentFromEditor(int row, int col);
	protected native TQWidget beginEdit(int row, int col, boolean replace);
	protected native void endEdit(int row, int col, boolean accept, boolean replace);
	protected native void resizeData(int len);
	protected native void insertWidget(int row, int col, TQWidget w);
	protected native int indexOf(int row, int col);
	protected native void windowActivationChange(boolean arg1);
	protected native boolean isEditing();
	// TQTable::EditMode editMode(); >>>> NOT CONVERTED
	protected native int currEditRow();
	protected native int currEditCol();
	protected native void columnWidthChanged(int col);
	protected native void rowHeightChanged(int row);
	protected native void columnIndexChanged(int section, int fromIndex, int toIndex);
	protected native void rowIndexChanged(int section, int fromIndex, int toIndex);
	protected native void columnClicked(int col);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}