/***************************************************************************
                            QLineEdit.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;

/**

 $Id: QLineEdit.java,v 1.4 2001/11/22 00:50:27 rdale Exp $

 Definition of QSpinBox widget class

 Created : 1997

 Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.

 This file is part of the widgets module of the Qt GUI Toolkit.

 This file may be distributed under the terms of the Q Public License
 as defined by Trolltech AS of Norway and appearing in the file
 LICENSE.QPL included in the packaging of this file.

 This file may be distributed and/or modified under the terms of the
 GNU General Public License version 2 as published by the Free Software
 Foundation and appearing in the file LICENSE.GPL included in the
 packaging of this file.

 Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
 licenses may use this file in accordance with the Qt Commercial License
 Agreement provided with the Software.

 This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

 See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
   information about Qt Commercial License Agreements.
 See http://www.trolltech.com/qpl/ for QPL licensing information.
 See http://www.trolltech.com/gpl/ for GPL licensing information.

 Contact info@trolltech.com if any conditions of this licensing are
 not clear to you.


 See {@link QLineEditSignals} for signals emitted by QLineEdit.

 See {@link QLineEditEventHandling} for event handlers to override in subclasses of QLineEdit.

 @short 
* $Id:  qt/qspinbox.
*/
public class QLineEdit extends QFrame  {
	protected QLineEdit(Class dummy){super((Class) null);}

	private native void newQLineEdit( QWidget parent, String name);
	public QLineEdit( QWidget parent, String name) {
		super((Class) null);
		newQLineEdit( parent, name);
	}
	private native void newQLineEdit( QWidget parent);
	public QLineEdit( QWidget parent) {
		super((Class) null);
		newQLineEdit( parent);
	}
	private native void newQLineEdit( String arg1, QWidget parent, String name);
	public QLineEdit( String arg1, QWidget parent, String name) {
		super((Class) null);
		newQLineEdit( arg1, parent, name);
	}
	private native void newQLineEdit( String arg1, QWidget parent);
	public QLineEdit( String arg1, QWidget parent) {
		super((Class) null);
		newQLineEdit( arg1, parent);
	}
	protected native void finalize() throws InternalError;
	public native String text();
	public native String displayText();
	public native int maxLength();
	public native boolean frame();
	public native int echoMode();
	public native boolean isReadOnly();
	public native QValidator validator();
	public native QSize sizeHint();
	public native QSize minimumSizeHint();
	public native int cursorPosition();
	public native boolean validateAndSet( String arg1, int arg2, int arg3, int arg4);
	public native int alignment();
	public native void cursorLeft( boolean mark, int steps);
	public native void cursorLeft( boolean mark);
	public native void cursorRight( boolean mark, int steps);
	public native void cursorRight( boolean mark);
	public native void cursorForward( boolean mark, int steps);
	public native void cursorForward( boolean mark);
	public native void cursorBackward( boolean mark, int steps);
	public native void cursorBackward( boolean mark);
	public native void cursorWordForward( boolean mark);
	public native void cursorWordBackward( boolean mark);
	public native void backspace();
	public native void del();
	public native void home( boolean mark);
	public native void end( boolean mark);
	public native void setEdited( boolean arg1);
	public native boolean edited();
	public native boolean hasSelectedText();
	public native String selectedText();
	public native boolean getSelection( int[] start, int[] end);
	public native boolean isUndoAvailable();
	public native boolean isRedoAvailable();
	public native boolean hasMarkedText();
	public native String markedText();
	public native boolean dragEnabled();
	public native int characterAt( int xpos, char chr);
	public native void setText( String arg1);
	public native void selectAll();
	public native void deselect();
	public native void clearValidator();
	public native void insert( String arg1);
	public native void clear();
	public native void undo();
	public native void redo();
	public native void setMaxLength( int arg1);
	public native void setFrame( boolean arg1);
	public native void setEchoMode( int arg1);
	public native void setReadOnly( boolean arg1);
	public native void setValidator( QValidator arg1);
	public native void setFont( QFont arg1);
	public native void setPalette( QPalette arg1);
	public native void setSelection( int arg1, int arg2);
	public native void setCursorPosition( int arg1);
	public native void setAlignment( int flag);
	public native void cut();
	public native void copy();
	public native void paste();
	public native void setDragEnabled( boolean b);
	public native boolean event( QEvent arg1);
	protected native void drawContents( QPainter painter);
	protected native void repaintArea( int arg1, int arg2);
	protected native QPopupMenu createPopupMenu();
	protected native void windowActivationChange( boolean arg1);
	public static final int Normal = 0;
	public static final int NoEcho = 1;
	public static final int Password = 2;
}
