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.
tdebindings/kdejava/koala/org/kde/koala/KKeyButton.java

74 lines
2.5 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QPainter;
import org.kde.qt.QWidget;
import org.kde.qt.QPushButton;
/**
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 QPushButton {
protected KKeyButton(Class dummy){super((Class) null);}
public native QMetaObject metaObject();
public native String className();
/**
Constructs key button widget.
@short Constructs key button widget.
*/
public KKeyButton(QWidget parent, String name) {
super((Class) null);
newKKeyButton(parent,name);
}
private native void newKKeyButton(QWidget parent, String name);
public KKeyButton(QWidget parent) {
super((Class) null);
newKKeyButton(parent);
}
private native void newKKeyButton(QWidget 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(QPainter _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();
}