//Auto-generated by kalyptus. DO NOT EDIT. package org.kde.koala; import org.kde.qt.Qt; import org.kde.qt.TQMetaObject; import org.kde.qt.QtSupport; import org.kde.qt.TQObject; import org.kde.qt.TQSize; import org.kde.qt.TQSizePolicy; import org.kde.qt.TQPushButton; import org.kde.qt.TQWidget; import org.kde.qt.TQResizeEvent; import org.kde.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 0 (making it easier to deal with layouts). The space between buttons is now more Motif compliant. @author Mario Weilguni @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 _orientation is Vertical, 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 noexpand is false, the width of the button is adjusted to fit the other buttons (the maximum of all buttons is taken). If noexpand is true, 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 noexpand is false, the width of the button is adjusted to fit the other buttons (the maximum of all buttons is taken). If noexpand true, 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 noexpand is false, the width of the button is adjusted to fit the other buttons (the maximum of all buttons is taken). If noexpand is true, 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 noexpand is false, the width of the button is adjusted to fit the other buttons (the maximum of all buttons is taken). If noexpand true, 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.kde.qt.TQBoxLayout */ public native void addStretch(int scale); public native void addStretch(); /** This function must be called once 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(); }