//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();
}
