//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.TQPainter; import org.kde.qt.TQWidget; import org.kde.qt.TQPushButton; /** You must call setShortcut() to set the widget's currently displayed key. You can call captureShortcut() to get a new shortcut from the user. If captureShortcut() succeeds, then the capturedShortcut() signal will be emitted with the value of the new shortcut. The widget containing a KKeyButton widget must connect to this signal and check if the shortcut is valid. If it is, you will need to call setShortcut() with the new value in order make it the key currently displayed. See {@link KKeyButtonSignals} for signals emitted by KKeyButton @author Mark Donohoe @short A push button that looks like a keyboard key. */ public class KKeyButton extends TQPushButton { protected KKeyButton(Class dummy){super((Class) null);} public native TQMetaObject metaObject(); public native String className(); /** Constructs key button widget. @short Constructs key button widget. */ public KKeyButton(TQWidget parent, String name) { super((Class) null); newKKeyButton(parent,name); } private native void newKKeyButton(TQWidget parent, String name); public KKeyButton(TQWidget parent) { super((Class) null); newKKeyButton(parent); } private native void newKKeyButton(TQWidget parent); public KKeyButton() { super((Class) null); newKKeyButton(); } private native void newKKeyButton(); public native void setShortcut(KShortcut cut, boolean bQtShortcut); public native KShortcut shortcut(); /** Reimplemented for internal purposes. @short Reimplemented for internal purposes. */ public native void setText(String text); /** Call this method to capture a shortcut from the keyboard. If it succeeds, the capturedShortcut() signal will be emitted. @short Call this method to capture a shortcut from the keyboard. */ public native void captureShortcut(); /** Reimplemented for internal reasons. @short Reimplemented for internal reasons. */ protected native void drawButton(TQPainter _painter); /** 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(); }