summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KPopupTitle.java
blob: f6bd880d803e0239a01cb787359dd2faa68de402 (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
74
75
76
//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.TQPixmap;
import org.kde.qt.TQPaintEvent;
import org.kde.qt.TQSize;
import org.kde.qt.TQWidget;
import org.kde.qt.TQWidget;

/**

 Title widget for use in KPopupMenu.
 You usually don't have to create this manually since
 KPopupMenu.insertTitle will do it for you, but it is allowed if
 you wish to customize it's look.
		@author Daniel M. Duley <mosfet@kde.org>
 
		@short KPopupMenu title widget.

*/
public class KPopupTitle extends TQWidget  {
	protected KPopupTitle(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a title widget with the user specified gradient, pixmap,
		 and colors.
		     		@short    Constructs a title widget with the user specified gradient, pixmap,  and colors.
	*/
	public KPopupTitle(TQWidget parent, String name) {
		super((Class) null);
		newKPopupTitle(parent,name);
	}
	private native void newKPopupTitle(TQWidget parent, String name);
	public KPopupTitle(TQWidget parent) {
		super((Class) null);
		newKPopupTitle(parent);
	}
	private native void newKPopupTitle(TQWidget parent);
	public KPopupTitle() {
		super((Class) null);
		newKPopupTitle();
	}
	private native void newKPopupTitle();
	/**	
		 Sets the title string and optional icon for the title widget.
			 You will want to call this before inserting into a menu.
		     		@short    Sets the title string and optional icon for the title widget.
	*/
	public native void setTitle(String text, TQPixmap icon);
	public native void setTitle(String text);
	/**	
		 Returns the current title.
		     		@short    Returns the current title.
	*/
	public native String title();
	/**	
		 Returns the current icon.
		     		@short    Returns the current icon.
	*/
	public native TQPixmap icon();
	public native TQSize sizeHint();
	public native void setText(String text);
	public native void setIcon(TQPixmap pix);
	protected native void calcSize();
	protected native void paintEvent(TQPaintEvent ev);
	/** 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();
}