//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.TQt;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQPopupMenu;
import org.trinitydesktop.qt.TQPaintEvent;
import org.trinitydesktop.qt.TQPoint;
import org.trinitydesktop.qt.TQDragEnterEvent;
import org.trinitydesktop.qt.TQDragMoveEvent;
import org.trinitydesktop.qt.TQKeyEvent;
import org.trinitydesktop.qt.TQCursor;
import org.trinitydesktop.qt.TQDropEvent;
import org.trinitydesktop.qt.TQTextStream;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.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();
}
