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

import org.trinitydesktop.qt.Qt;

/**
 See {@link TQButtonSignals} for signals emitted by TQButton
*/
public class TQButton extends TQWidget  {
	protected TQButton(Class dummy){super((Class) null);}
	public static final int SingleShot = 0;
	public static final int Toggle = 1;
	public static final int Tristate = 2;

	public static final int Off = 0;
	public static final int NoChange = 1;
	public static final int On = 2;

	public native TQMetaObject metaObject();
	public native String className();
	public TQButton(TQWidget parent, String name, int f) {
		super((Class) null);
		newTQButton(parent,name,f);
	}
	private native void newTQButton(TQWidget parent, String name, int f);
	public TQButton(TQWidget parent, String name) {
		super((Class) null);
		newTQButton(parent,name);
	}
	private native void newTQButton(TQWidget parent, String name);
	public TQButton(TQWidget parent) {
		super((Class) null);
		newTQButton(parent);
	}
	private native void newTQButton(TQWidget parent);
	public TQButton() {
		super((Class) null);
		newTQButton();
	}
	private native void newTQButton();
	public native String text();
	public native void setText(String arg1);
	public native TQPixmap pixmap();
	public native void setPixmap(TQPixmap arg1);
	public native TQKeySequence accel();
	public native void setAccel(TQKeySequence arg1);
	public native boolean isToggleButton();
	public native int toggleType();
	public native void setDown(boolean arg1);
	public native boolean isDown();
	public native boolean isOn();
	public native int state();
	public native boolean autoResize();
	public native void setAutoResize(boolean arg1);
	public native boolean autoRepeat();
	public native void setAutoRepeat(boolean arg1);
	public native boolean isExclusiveToggle();
	public native TQButtonGroup group();
	public native void animateClick();
	public native void toggle();
	public static native String tr(String arg1, String arg2);
	public static native String tr(String arg1);
	protected native void setToggleButton(boolean arg1);
	protected native void setToggleType(int arg1);
	protected native void setOn(boolean arg1);
	public native void setState(int arg1);
	protected native boolean hitButton(TQPoint pos);
	protected native void drawButton(TQPainter arg1);
	protected native void drawButtonLabel(TQPainter arg1);
	protected native void keyPressEvent(TQKeyEvent arg1);
	protected native void keyReleaseEvent(TQKeyEvent arg1);
	protected native void mousePressEvent(TQMouseEvent arg1);
	protected native void mouseReleaseEvent(TQMouseEvent arg1);
	protected native void mouseMoveEvent(TQMouseEvent arg1);
	protected native void paintEvent(TQPaintEvent arg1);
	protected native void focusInEvent(TQFocusEvent arg1);
	protected native void focusOutEvent(TQFocusEvent arg1);
	protected native void enabledChange(boolean arg1);
	/** 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();
}
