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
|
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQPopupMenu;
import org.kde.qt.TQPaintEvent;
import org.kde.qt.TQPoint;
import org.kde.qt.TQDragEnterEvent;
import org.kde.qt.TQDragMoveEvent;
import org.kde.qt.TQKeyEvent;
import org.kde.qt.TQCursor;
import org.kde.qt.TQDropEvent;
import org.kde.qt.TQTextStream;
import org.kde.qt.TQWidget;
import org.kde.qt.TQMultiLineEdit;
/**
A simple text editor for the %KDE project.
See {@link KEditSignals} for signals emitted by KEdit
@author Bernd Johannes Wuebben <wuebben@math.cornell.edu>, Waldo Bastian <bastian@kde.org>
@short A simple text editor for the %KDE project.
*/
public class KEdit extends TQMultiLineEdit {
protected KEdit(Class dummy){super((Class) null);}
/**
Search directions.
@short Search directions.
*/
public static final int NONE = 0;
public static final int FORWARD = 1;
public static final int BACKWARD = 2;
public native TQMetaObject metaObject();
public native String className();
/**
The usual constructor.
@short The usual constructor.
*/
public KEdit(TQWidget _parent, String name) {
super((Class) null);
newKEdit(_parent,name);
}
private native void newKEdit(TQWidget _parent, String name);
public KEdit(TQWidget _parent) {
super((Class) null);
newKEdit(_parent);
}
private native void newKEdit(TQWidget _parent);
public KEdit() {
super((Class) null);
newKEdit();
}
private native void newKEdit();
/**
Insert text from the text stream into the edit widget.
@short Insert text from the text stream into the edit widget.
*/
public native void insertText(TQTextStream arg1);
/**
Save text from the edit widget to a text stream.
If <code>softWrap</code> is false soft line wrappings are replaced with line-feeds
If <code>softWrap</code> is true soft line wrappings are ignored.
@short Save text from the edit widget to a text stream.
*/
public native void saveText(TQTextStream arg1, boolean softWrap);
public native void saveText(TQTextStream arg1);
/**
Let the user select a font and set the font of the textwidget to that
selected font.
@short Let the user select a font and set the font of the textwidget to that selected font.
*/
public native void selectFont();
/**
Present a search dialog to the user
@short Present a search dialog to the user
*/
public native void search();
/**
Repeat the last search specified on the search dialog.
If the user hasn't searched for anything until now, this method
will simply return without doing anything.
@return <code>true</code> if a search was done. <code>false</code> if no search was done.
@short Repeat the last search specified on the search dialog.
*/
public native boolean repeatSearch();
/**
Present a Search and Replace Dialog to the user.
@short Present a Search and Replace Dialog to the user.
*/
public native void replace();
/**
Present a "Goto Line" dialog to the user.
@short Present a "Goto Line" dialog to the user.
*/
public native void doGotoLine();
/**
Clean up redundant whitespace from selected text.
@short Clean up redundant whitespace from selected text.
*/
public native void cleanWhiteSpace();
/**
Install a context menu for KEdit.
The Popup Menu will be activated on a right mouse button press event.
@short Install a context menu for KEdit.
*/
public native void installRBPopup(TQPopupMenu arg1);
/**
Retrieve the current line number.
The current line is the line the cursor is on.
@short Retrieve the current line number.
*/
public native int currentLine();
/**
Retrieve the actual column number the cursor is on.
This call differs
from TQMultiLineEdit.getCursorPosition() in that it returns the actual cursor
position and not the character position. Use currentLine() and currentColumn()
if you want to display the current line or column in the status bar for
example.
@short Retrieve the actual column number the cursor is on.
*/
public native int currentColumn();
/**
Start spellchecking mode.
@short Start spellchecking mode.
*/
public native void spellcheck_start();
/**
Exit spellchecking mode.
@short Exit spellchecking mode.
*/
public native void spellcheck_stop();
/**
Allow the user to toggle between insert mode and overwrite mode with
the "Insert" key. See also toggle_overwrite_signal();
The default is false: the user can not toggle.
@short Allow the user to toggle between insert mode and overwrite mode with the "Insert" key.
*/
public native void setOverwriteEnabled(boolean b);
public native String selectWordUnderCursor();
public native TQPopupMenu createPopupMenu(TQPoint pos);
public native void setAutoUpdate(boolean b);
/**
@short
*/
public native void corrected(String originalword, String newword, int pos);
/**
@short
*/
public native void misspelling(String word, String[] arg2, int pos);
protected native void computePosition();
protected native int doSearch(String s_pattern, boolean case_sensitive, boolean regex, boolean forward, int line, int col);
protected native int doReplace(String s_pattern, boolean case_sensitive, boolean regex, boolean forward, int line, int col, boolean replace);
/**
Sets line and col to the position pos, considering word wrap.
@short Sets line and col to the position pos, considering word wrap.
*/
protected native void posToRowCol(int pos, int line, int col);
/**
Reimplemented for internal reasons, the API is not affected.
@short Reimplemented for internal reasons, the API is not affected.
*/
protected native void create(long arg1, boolean initializeWindow, boolean destroyOldWindow);
protected native void create(long arg1, boolean initializeWindow);
protected native void create(long arg1);
protected native void create();
/**
Reimplemented for internal reasons, the API is not affected.
@short Reimplemented for internal reasons, the API is not affected.
*/
public native void ensureCursorVisible();
public native void setCursor(TQCursor arg1);
protected native void viewportPaintEvent(TQPaintEvent arg1);
protected native void keyPressEvent(TQKeyEvent arg1);
protected native void dragMoveEvent(TQDragMoveEvent e);
protected native void dragEnterEvent(TQDragEnterEvent e);
protected native void dropEvent(TQDropEvent e);
protected native void contentsDragMoveEvent(TQDragMoveEvent e);
protected native void contentsDragEnterEvent(TQDragEnterEvent e);
protected native void contentsDropEvent(TQDropEvent e);
/** 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();
}
|