//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;

/**

 TQValidator for integers.
  This can be used by TQLineEdit or subclass to provide validated
  text entry.  Can be provided with a base value (default is 10), to allow
  the proper entry of hexadecimal, octal, or any other base numeric data.
		@author Glen Parker <glenebob@nwlink.com>

		@version 0.0.1

		@short    TQValidator for integers.

*/
public class KIntValidator extends TQValidator  {
	protected KIntValidator(Class dummy){super((Class) null);}
	/**
		      Constuctor.  Also sets the base value.
		    		@short         Constuctor.
	*/
	public KIntValidator(TQWidget parent, int base, String name) {
		super((Class) null);
		newKIntValidator(parent,base,name);
	}
	private native void newKIntValidator(TQWidget parent, int base, String name);
	public KIntValidator(TQWidget parent, int base) {
		super((Class) null);
		newKIntValidator(parent,base);
	}
	private native void newKIntValidator(TQWidget parent, int base);
	public KIntValidator(TQWidget parent) {
		super((Class) null);
		newKIntValidator(parent);
	}
	private native void newKIntValidator(TQWidget parent);
	/**
		 Constructor.  Also sets the minimum, maximum, and numeric base values.
		     		@short    Constructor.
	*/
	public KIntValidator(int bottom, int top, TQWidget parent, int base, String name) {
		super((Class) null);
		newKIntValidator(bottom,top,parent,base,name);
	}
	private native void newKIntValidator(int bottom, int top, TQWidget parent, int base, String name);
	public KIntValidator(int bottom, int top, TQWidget parent, int base) {
		super((Class) null);
		newKIntValidator(bottom,top,parent,base);
	}
	private native void newKIntValidator(int bottom, int top, TQWidget parent, int base);
	public KIntValidator(int bottom, int top, TQWidget parent) {
		super((Class) null);
		newKIntValidator(bottom,top,parent);
	}
	private native void newKIntValidator(int bottom, int top, 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 values allowed.
		     		@short    Sets the minimum and maximum values allowed.
	*/
	public native void setRange(int bottom, int top);
	/**
		 Sets the numeric base value.
		     		@short    Sets the numeric base value.
	*/
	public native void setBase(int base);
	/**
		 Returns the current minimum value allowed.
		     		@short    Returns the current minimum value allowed.
	*/
	public native int bottom();
	/**
		 Returns the current maximum value allowed.
		     		@short    Returns the current maximum value allowed.
	*/
	public native int top();
	/**
		 Returns the current numeric base.
		     		@short    Returns the current numeric base.
	*/
	public native int base();
	/** 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();
}
