summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/trinitydesktop/qt/TQListBox.java
blob: ee1a1a795d20690c94ba54e1cc5f8c9c6c7dfeca (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.qt;

import org.trinitydesktop.qt.Qt;

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

	public static final int FixedNumber = 0;
	public static final int FitToWidth = 1;
	public static final int FitToHeight = FitToWidth;
	public static final int Variable = 2;

	public native TQMetaObject metaObject();
	public native String className();
	public TQListBox(TQWidget parent, String name, int f) {
		super((Class) null);
		newTQListBox(parent,name,f);
	}
	private native void newTQListBox(TQWidget parent, String name, int f);
	public TQListBox(TQWidget parent, String name) {
		super((Class) null);
		newTQListBox(parent,name);
	}
	private native void newTQListBox(TQWidget parent, String name);
	public TQListBox(TQWidget parent) {
		super((Class) null);
		newTQListBox(parent);
	}
	private native void newTQListBox(TQWidget parent);
	public TQListBox() {
		super((Class) null);
		newTQListBox();
	}
	private native void newTQListBox();
	public native void setFont(TQFont arg1);
	public native int count();
	public native void insertStringList(String[] arg1, int index);
	public native void insertStringList(String[] arg1);
	public native void insertStrList(String[] arg1, int index);
	public native void insertStrList(String[] arg1);
	public native void insertStrList(String[] arg1, int numStrings, int index);
	public native void insertItem(TQListBoxItem arg1, int index);
	public native void insertItem(TQListBoxItem arg1);
	public native void insertItem(TQListBoxItem arg1, TQListBoxItem after);
	public native void insertItem(String text, int index);
	public native void insertItem(String text);
	public native void insertItem(TQPixmap pixmap, int index);
	public native void insertItem(TQPixmap pixmap);
	public native void insertItem(TQPixmap pixmap, String text, int index);
	public native void insertItem(TQPixmap pixmap, String text);
	public native void removeItem(int index);
	public native String text(int index);
	public native TQPixmap pixmap(int index);
	public native void changeItem(TQListBoxItem arg1, int index);
	public native void changeItem(String text, int index);
	public native void changeItem(TQPixmap pixmap, int index);
	public native void changeItem(TQPixmap pixmap, String text, int index);
	public native void takeItem(TQListBoxItem arg1);
	public native int numItemsVisible();
	public native int currentItem();
	public native String currentText();
	public native void setCurrentItem(int index);
	public native void setCurrentItem(TQListBoxItem arg1);
	public native void centerCurrentItem();
	public native int topItem();
	public native void setTopItem(int index);
	public native void setBottomItem(int index);
	public native long maxItemWidth();
	public native void setSelectionMode(int arg1);
	public native int selectionMode();
	public native void setMultiSelection(boolean multi);
	public native boolean isMultiSelection();
	public native void setSelected(TQListBoxItem arg1, boolean arg2);
	public native void setSelected(int arg1, boolean arg2);
	public native boolean isSelected(int arg1);
	public native boolean isSelected(TQListBoxItem arg1);
	public native TQListBoxItem selectedItem();
	public native TQSize sizeHint();
	public native TQSize minimumSizeHint();
	public native TQListBoxItem item(int index);
	public native int index(TQListBoxItem arg1);
	public native TQListBoxItem findItem(String text, int compare);
	public native TQListBoxItem findItem(String text);
	public native void triggerUpdate(boolean doLayout);
	public native boolean itemVisible(int index);
	public native boolean itemVisible(TQListBoxItem arg1);
	public native void setColumnMode(int arg1);
	public native void setRowMode(int arg1);
	public native int columnMode();
	public native int rowMode();
	public native int numColumns();
	public native int numRows();
	public native boolean variableWidth();
	public native void setVariableWidth(boolean arg1);
	public native boolean variableHeight();
	public native void setVariableHeight(boolean arg1);
	public native void viewportPaintEvent(TQPaintEvent arg1);
	public native boolean dragSelect();
	public native void setDragSelect(boolean arg1);
	public native boolean autoScroll();
	public native void setAutoScroll(boolean arg1);
	public native boolean autoScrollBar();
	public native void setAutoScrollBar(boolean enable);
	public native boolean scrollBar();
	public native void setScrollBar(boolean enable);
	public native boolean autoBottomScrollBar();
	public native void setAutoBottomScrollBar(boolean enable);
	public native boolean bottomScrollBar();
	public native void setBottomScrollBar(boolean enable);
	public native boolean smoothScrolling();
	public native void setSmoothScrolling(boolean arg1);
	public native boolean autoUpdate();
	public native void setAutoUpdate(boolean arg1);
	public native void setFixedVisibleLines(int lines);
	public native int inSort(TQListBoxItem arg1);
	public native int inSort(String text);
	public native int cellHeight(int i);
	public native int cellHeight();
	public native int cellWidth();
	public native int cellWidth(int i);
	public native int numCols();
	public native int itemHeight(int index);
	public native int itemHeight();
	public native TQListBoxItem itemAt(TQPoint arg1);
	public native TQRect itemRect(TQListBoxItem item);
	public native TQListBoxItem firstItem();
	public native void sort(boolean ascending);
	public native void sort();
	public native void clear();
	public native void ensureCurrentVisible();
	public native void clearSelection();
	public native void selectAll(boolean select);
	public native void invertSelection();
	public static native String tr(String arg1, String arg2);
	public static native String tr(String arg1);
	protected native void mousePressEvent(TQMouseEvent arg1);
	protected native void mouseReleaseEvent(TQMouseEvent arg1);
	protected native void mouseDoubleClickEvent(TQMouseEvent arg1);
	protected native void mouseMoveEvent(TQMouseEvent arg1);
	protected native void contentsContextMenuEvent(TQContextMenuEvent arg1);
	protected native void keyPressEvent(TQKeyEvent e);
	protected native void focusInEvent(TQFocusEvent e);
	protected native void focusOutEvent(TQFocusEvent e);
	protected native void resizeEvent(TQResizeEvent arg1);
	public native void showEvent(TQShowEvent arg1);
	public native boolean eventFilter(TQObject o, TQEvent e);
	protected native void updateItem(int index);
	protected native void updateItem(TQListBoxItem arg1);
	protected native void updateCellWidth();
	protected native int totalWidth();
	protected native int totalHeight();
	public native void paintCell(TQPainter arg1, int row, int col);
	protected native void toggleCurrentItem();
	protected native boolean isRubberSelecting();
	protected native void doLayout();
	protected native void windowActivationChange(boolean arg1);
	protected native boolean itemYPos(int index, int[] yPos);
	protected native int findItem(int yPos);
	protected native void clearInputString();
	/** 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();
}