/***************************************************************************
                            QMultiLineEdit.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

/**
 See {@link QMultiLineEditSignals} for signals emitted by QMultiLineEdit.

 See {@link QMultiLineEditEventHandling} for event handlers to override in subclasses of QMultiLineEdit.

*/
public class QMultiLineEdit extends QTextEdit  {
	protected QMultiLineEdit(Class dummy){super((Class) null);}

	private native void newQMultiLineEdit( QWidget parent, String name);
	public QMultiLineEdit( QWidget parent, String name) {
		super((Class) null);
		newQMultiLineEdit( parent, name);
	}
	public QMultiLineEdit( QWidget parent) {
		this( parent, null);
	}
	private native void newQMultiLineEdit();
	public QMultiLineEdit() {
		super((Class) null);
		newQMultiLineEdit();
	}
	protected native void finalize() throws InternalError;
	public native String textLine( int line);
	public native int numLines();
	public native void insertLine( String s, int line);
	public native void insertLine( String s);
	public native void insertAt( String s, int line, int col, boolean mark);
	public native void insertAt( String s, int line, int col);
	public native void removeLine( int line);
	public native void setCursorPosition( int line, int col, boolean mark);
	public native void setCursorPosition( int line, int col);
	public native boolean atBeginning();
	public native boolean atEnd();
	public native void setAlignment( int flags);
	public native int alignment();
	public native void setEdited( boolean arg1);
	public native boolean edited();
	public native boolean hasMarkedText();
	public native String markedText();
	public native void cursorWordForward( boolean mark);
	public native void cursorWordBackward( boolean mark);
	public native boolean autoUpdate();
	public native void setAutoUpdate( boolean arg1);
	public native int totalWidth();
	public native int totalHeight();
	public native int maxLines();
	public native void setMaxLines( int arg1);
	public native void deselect();
	protected native QPoint cursorPoint();
	protected native void insertAndMark( String arg1, boolean mark);
	protected native void newLine();
	protected native void killLine();
	protected native void pageUp( boolean mark);
	protected native void pageUp();
	protected native void pageDown( boolean mark);
	protected native void pageDown();
	protected native void cursorLeft( boolean mark, boolean wrap);
	protected native void cursorLeft();
	protected native void cursorRight( boolean mark, boolean wrap);
	protected native void cursorRight();
	protected native void cursorUp( boolean mark);
	protected native void cursorUp();
	protected native void cursorDown( boolean mark);
	protected native void cursorDown();
	protected native void backspace();
	protected native void home( boolean mark);
	protected native void home();
	protected native void end( boolean mark);
	protected native void end();
	protected native boolean getMarkedRegion( int[] line1, int[] col1, int[] line2, int[] col2);
	protected native int lineLength( int row);
}
