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

import org.trinitydesktop.qt.TQt;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQValidator;

/**

 \brief TQValidator for floating point entry (Obsolete)
  Extends the TQValidator class to properly validate double numeric data.
  This can be used by TQLineEdit or subclass to provide validated
  text entry.
		@author Glen Parker <glenebob@nwlink.com>

		@version 0.0.1

		@short    \brief TQValidator for floating point entry (Obsolete)

*/
public class KFloatValidator extends TQValidator  {
	protected KFloatValidator(Class dummy){super((Class) null);}
	/**
		 Constructor.
		     		@short    Constructor.
	*/
	public KFloatValidator(TQWidget parent, String name) {
		super((Class) null);
		newKFloatValidator(parent,name);
	}
	private native void newKFloatValidator(TQWidget parent, String name);
	public KFloatValidator(TQWidget parent) {
		super((Class) null);
		newKFloatValidator(parent);
	}
	private native void newKFloatValidator(TQWidget parent);
	/**
		 Constructor.  Also sets the minimum and maximum values.
		     		@short    Constructor.
	*/
	public KFloatValidator(double bottom, double top, TQWidget parent, String name) {
		super((Class) null);
		newKFloatValidator(bottom,top,parent,name);
	}
	private native void newKFloatValidator(double bottom, double top, TQWidget parent, String name);
	public KFloatValidator(double bottom, double top, TQWidget parent) {
		super((Class) null);
		newKFloatValidator(bottom,top,parent);
	}
	private native void newKFloatValidator(double bottom, double top, TQWidget parent);
	/**
		 Constructor.  Sets the validator to be locale aware if <code>localeAware</code> is true.
		     		@short    Constructor.
	*/
	public KFloatValidator(double bottom, double top, boolean localeAware, TQWidget parent, String name) {
		super((Class) null);
		newKFloatValidator(bottom,top,localeAware,parent,name);
	}
	private native void newKFloatValidator(double bottom, double top, boolean localeAware, TQWidget parent, String name);
	public KFloatValidator(double bottom, double top, boolean localeAware, TQWidget parent) {
		super((Class) null);
		newKFloatValidator(bottom,top,localeAware,parent);
	}
	private native void newKFloatValidator(double bottom, double top, boolean localeAware, TQWidget parent);
	/**
		 Validates the text, and return the result. Does not modify the parameters.
		     		@short    Validates the text, and return the result.
	*/
	public native int validate(StringBuffer arg1, int[] arg2);
	/**
		 Fixes the text if possible, providing a valid string. The parameter may be modified.
		     		@short    Fixes the text if possible, providing a valid string.
	*/
	public native void fixup(StringBuffer arg1);
	/**
		 Sets the minimum and maximum value allowed.
		     		@short    Sets the minimum and maximum value allowed.
	*/
	public native void setRange(double bottom, double top);
	/**
		 Returns the current minimum value allowed.
		     		@short    Returns the current minimum value allowed.
	*/
	public native double bottom();
	/**
		 Returns the current maximum value allowed.
		     		@short    Returns the current maximum value allowed.
	*/
	public native double top();
	/**
		 Sets the validator to be locale aware if <code>is</code> true. In this case, the
		 character TDELocale.decimalSymbol() from the global locale is recognized
		 as decimal separator.
		     		@short    Sets the validator to be locale aware if <code>is</code> true.
	*/
	public native void setAcceptLocalizedNumbers(boolean b);
	/**
		 Returns true if the validator is locale aware.
				@short    Returns true if the validator is locale aware.
		@see #setAcceptLocalizedNumbers#
	*/
	public native boolean acceptLocalizedNumbers();
	/** 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();
}
