You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.5 KiB
74 lines
2.5 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
package org.trinitydesktop.koala;
|
|
|
|
import org.trinitydesktop.qt.Qt;
|
|
import org.trinitydesktop.qt.TQMetaObject;
|
|
import org.trinitydesktop.qt.QtSupport;
|
|
import org.trinitydesktop.qt.TQPainter;
|
|
import org.trinitydesktop.qt.TQWidget;
|
|
import org.trinitydesktop.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 <donohoe@kde.org>
|
|
|
|
@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(TDEShortcut cut, boolean bQtShortcut);
|
|
public native TDEShortcut 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();
|
|
}
|