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

import org.trinitydesktop.qt.TQt;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQObject;
import org.trinitydesktop.qt.TQSize;
import org.trinitydesktop.qt.TQSizePolicy;
import org.trinitydesktop.qt.TQPushButton;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQResizeEvent;
import org.trinitydesktop.qt.TQWidget;

/**

 Container widget for buttons.
 This class uses Qt layout control to place the buttons; can handle
 both vertical and horizontal button placement.  The default border
 is now <code>0</code> (making it easier to deal with layouts). The space
 between buttons is now more Motif compliant.
		@author Mario Weilguni <mweilguni@sime.com>

		@version $Id$

		@short    Container widget for buttons.

*/
public class KButtonBox extends TQWidget  {
	protected KButtonBox(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**
		 Create an empty container for buttons.
			 If <code>_orientation</code> is <code>Vertical</code>, the buttons inserted with
		 addButton() are laid out from top to bottom, otherwise they
		 are laid out from left to right.
		    		@short    Create an empty container for buttons.
	*/
	public KButtonBox(TQWidget parent, int _orientation, int border, int _autoborder) {
		super((Class) null);
		newKButtonBox(parent,_orientation,border,_autoborder);
	}
	private native void newKButtonBox(TQWidget parent, int _orientation, int border, int _autoborder);
	public KButtonBox(TQWidget parent, int _orientation, int border) {
		super((Class) null);
		newKButtonBox(parent,_orientation,border);
	}
	private native void newKButtonBox(TQWidget parent, int _orientation, int border);
	public KButtonBox(TQWidget parent, int _orientation) {
		super((Class) null);
		newKButtonBox(parent,_orientation);
	}
	private native void newKButtonBox(TQWidget parent, int _orientation);
	public KButtonBox(TQWidget parent) {
		super((Class) null);
		newKButtonBox(parent);
	}
	private native void newKButtonBox(TQWidget parent);
	/**
			 This size is
		 calculated by the width/height of all buttons plus border/autoborder.
		    		@return The minimum size needed to fit all buttons.

		@short
	*/
	public native TQSize sizeHint();
	public native TQSizePolicy sizePolicy();
	public native void resizeEvent(TQResizeEvent arg1);
	/**
		 Add a new TQPushButton.
			@param text the text of the button to add
			@param noexpand If <code>noexpand</code> is <code>false</code>, the width
		 of the button is adjusted to fit the other buttons (the maximum
		 of all buttons is taken). If <code>noexpand</code> is <code>true</code>, the width of this
		 button will be set to the minimum width needed for the given text).
				@return A pointer to the new button.

		@short    Add a new TQPushButton.
	*/
	public native TQPushButton addButton(String text, boolean noexpand);
	public native TQPushButton addButton(String text);
	/**
		 Add a new TQPushButton.
			@param text the text of the button to add.
			@param receiver An object to connect to.
			@param slot A Qt slot to connect the 'clicked()' signal to.
			@param noexpand If <code>noexpand</code> is <code>false</code>, the width
		 of the button is adjusted to fit the other buttons (the maximum
		 of all buttons is taken). If <code>noexpand</code> <code>true</code>, the width of this
		 button will be set to the minimum width needed for the given text).
				@return A pointer to the new button.

		@short    Add a new TQPushButton.
	*/
	public native TQPushButton addButton(String text, TQObject receiver, String slot, boolean noexpand);
	public native TQPushButton addButton(String text, TQObject receiver, String slot);
	/**
		 Add a new TQPushButton.
			@param guiitem text and icon on the button
			@param noexpand If <code>noexpand</code> is <code>false</code>, the width
		 of the button is adjusted to fit the other buttons (the maximum
		 of all buttons is taken). If <code>noexpand</code> is <code>true</code>, the width of this
		 button will be set to the minimum width needed for the given text).
				@return A pointer to the new button.

		@short    Add a new TQPushButton.
	*/
	public native TQPushButton addButton(KGuiItem guiitem, boolean noexpand);
	public native TQPushButton addButton(KGuiItem guiitem);
	/**
		 Add a new TQPushButton.
			@param guiitem text and icon on the button
			@param receiver An object to connect to.
			@param slot A Qt slot to connect the 'clicked()' signal to.
			@param noexpand If <code>noexpand</code> is <code>false</code>, the width
		 of the button is adjusted to fit the other buttons (the maximum
		 of all buttons is taken). If <code>noexpand</code> <code>true</code>, the width of this
		 button will be set to the minimum width needed for the given text).
				@return A pointer to the new button.

		@short    Add a new TQPushButton.
	*/
	public native TQPushButton addButton(KGuiItem guiitem, TQObject receiver, String slot, boolean noexpand);
	public native TQPushButton addButton(KGuiItem guiitem, TQObject receiver, String slot);
	/**
		 Add a stretch to the buttonbox.
			 Can be used to separate buttons.  That is, if you add the
		 buttons OK and Cancel, add a stretch, and then add the button Help,
		 the buttons OK and Cancel will be left-aligned (or top-aligned
		 for vertical) whereas Help will be right-aligned (or
		 bottom-aligned for vertical).
				@short    Add a stretch to the buttonbox.
		@see org.trinitydesktop.qt.TQBoxLayout
	*/
	public native void addStretch(int scale);
	public native void addStretch();
	/**
		 This function must be called <b>once</b> after all buttons have been
		 inserted.
			 It will start layout control.
		    		@short    This function must be called @em once after all buttons have been  inserted.
	*/
	public native void updateLayout();
	/**
				@return the best size for a button. Checks all buttons and takes
 the maximum width/height.

		@short
	*/
	protected native TQSize bestButtonSize();
	protected native void placeButtons();
	protected native TQSize buttonSizeHint(TQPushButton 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();
}
