summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KTextEdit.java
blob: 41cee11313341d67d886eb78e17f61e98d6e6000 (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
//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.TQPoint;
import org.kde.qt.TQFocusEvent;
import org.kde.qt.TQKeyEvent;
import org.kde.qt.TQWidget;
import org.kde.qt.TQPalette;
import org.kde.qt.TQWheelEvent;
import org.kde.qt.TQTextEdit;

/**

 This is just a little subclass of TQTextEdit, implementing
 some standard KDE features, like Cursor auto-hiding, configurable
 wheelscrolling (fast-scroll or zoom) and deleting of entire
 words with Ctrl-Backspace or Ctrl-Delete.
 Basic rule: whenever you want to use TQTextEdit, use KTextEdit!
		@author Carsten Pfeiffer <pfeiffer@kde.org>

		@short A KDE'ified TQTextEdit.
		@see org.kde.qt.TQTextEdit

*/
public class KTextEdit extends TQTextEdit  {
	protected KTextEdit(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a KTextEdit object. See TQTextEdit.TQTextEdit
		 for details.
		     		@short    Constructs a KTextEdit object.
	*/
	public KTextEdit(String text, String context, TQWidget parent, String name) {
		super((Class) null);
		newKTextEdit(text,context,parent,name);
	}
	private native void newKTextEdit(String text, String context, TQWidget parent, String name);
	public KTextEdit(String text, String context, TQWidget parent) {
		super((Class) null);
		newKTextEdit(text,context,parent);
	}
	private native void newKTextEdit(String text, String context, TQWidget parent);
	public KTextEdit(String text, String context) {
		super((Class) null);
		newKTextEdit(text,context);
	}
	private native void newKTextEdit(String text, String context);
	public KTextEdit(String text) {
		super((Class) null);
		newKTextEdit(text);
	}
	private native void newKTextEdit(String text);
	/**	
		 Constructs a KTextEdit object. See TQTextEdit.TQTextEdit
		 for details.
		     		@short    Constructs a KTextEdit object.
	*/
	public KTextEdit(TQWidget parent, String name) {
		super((Class) null);
		newKTextEdit(parent,name);
	}
	private native void newKTextEdit(TQWidget parent, String name);
	public KTextEdit(TQWidget parent) {
		super((Class) null);
		newKTextEdit(parent);
	}
	private native void newKTextEdit(TQWidget parent);
	public KTextEdit() {
		super((Class) null);
		newKTextEdit();
	}
	private native void newKTextEdit();
	/**	
		 Reimplemented to set a proper "deactivated" background color.
		     		@short    Reimplemented to set a proper "deactivated" background color.
	*/
	public native void setReadOnly(boolean readOnly);
	/**	
		 Reimplemented for tracking custom palettes.
		     		@short    Reimplemented for tracking custom palettes.
	*/
	public native void setPalette(TQPalette palette);
	/**	
		 Turns spell checking for this text edit on or off.
				@short    Turns spell checking for this text edit on or off.
		@see #checkSpellingEnabled
	*/
	public native void setCheckSpellingEnabled(boolean check);
	/**	
		 Returns true if spell checking is enabled for this text edit.
			     @ see setCheckSpellingEnabled()
				@short    Returns true if spell checking is enabled for this text edit.
	*/
	public native boolean checkSpellingEnabled();
	public native void highLightWord(int length, int pos);
	/**	
		 Create a modal dialog to check the spelling.  This slot will not return
		 until spell checking has been completed.
				@short    Create a modal dialog to check the spelling.
	*/
	public native void checkSpelling();
	/**	
		 Reimplemented to catch "delete word" key events.
		     		@short    Reimplemented to catch "delete word" key events.
	*/
	protected native void keyPressEvent(TQKeyEvent arg1);
	/**	
		 Reimplemented to instantiate a KDictSpellingHighlighter, if
		 spellchecking is enabled.
		     		@short    Reimplemented to instantiate a KDictSpellingHighlighter, if  spellchecking is enabled.
	*/
	protected native void focusInEvent(TQFocusEvent arg1);
	/**	
		 Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel
		 or zoom.
		     		@short    Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel  or zoom.
	*/
	protected native void contentsWheelEvent(TQWheelEvent arg1);
	/**	
		 Deletes a word backwards from the current cursor position,
		 if available.
		     		@short    Deletes a word backwards from the current cursor position,  if available.
	*/
	protected native void deleteWordBack();
	/**	
		 Deletes a word forwards from the current cursor position,
		 if available.
		     		@short    Deletes a word forwards from the current cursor position,  if available.
	*/
	protected native void deleteWordForward();
	/**	
		 Reimplemented from TQTextEdit to add spelling related items
		 when appropriate.
		     		@short    Reimplemented from TQTextEdit to add spelling related items  when appropriate.
	*/
	protected native TQPopupMenu createPopupMenu(TQPoint pos);
	/** 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();
}