summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KTextEdit.java
blob: c15958ed6c43406447a7ee5263bc6a8755dab592 (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.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QPopupMenu;
import org.kde.qt.QPoint;
import org.kde.qt.QFocusEvent;
import org.kde.qt.QKeyEvent;
import org.kde.qt.QWidget;
import org.kde.qt.QPalette;
import org.kde.qt.QWheelEvent;
import org.kde.qt.QTextEdit;

/**

 This is just a little subclass of QTextEdit, 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 QTextEdit, use KTextEdit!
		@author Carsten Pfeiffer <pfeiffer@kde.org>

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

*/
public class KTextEdit extends QTextEdit  {
	protected KTextEdit(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a KTextEdit object. See QTextEdit.QTextEdit
		 for details.
		     		@short    Constructs a KTextEdit object.
	*/
	public KTextEdit(String text, String context, QWidget parent, String name) {
		super((Class) null);
		newKTextEdit(text,context,parent,name);
	}
	private native void newKTextEdit(String text, String context, QWidget parent, String name);
	public KTextEdit(String text, String context, QWidget parent) {
		super((Class) null);
		newKTextEdit(text,context,parent);
	}
	private native void newKTextEdit(String text, String context, QWidget 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 QTextEdit.QTextEdit
		 for details.
		     		@short    Constructs a KTextEdit object.
	*/
	public KTextEdit(QWidget parent, String name) {
		super((Class) null);
		newKTextEdit(parent,name);
	}
	private native void newKTextEdit(QWidget parent, String name);
	public KTextEdit(QWidget parent) {
		super((Class) null);
		newKTextEdit(parent);
	}
	private native void newKTextEdit(QWidget 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(QPalette 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(QKeyEvent arg1);
	/**	
		 Reimplemented to instantiate a KDictSpellingHighlighter, if
		 spellchecking is enabled.
		     		@short    Reimplemented to instantiate a KDictSpellingHighlighter, if  spellchecking is enabled.
	*/
	protected native void focusInEvent(QFocusEvent 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(QWheelEvent 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 QTextEdit to add spelling related items
		 when appropriate.
		     		@short    Reimplemented from QTextEdit to add spelling related items  when appropriate.
	*/
	protected native QPopupMenu createPopupMenu(QPoint 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();
}