summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KKeyButton.java
blob: 88a2307307023e72b69221b6863851a0b41d2d0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//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();
}