summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KWindowInfo.java
blob: 575462e3c94a1f250460d21c5d6503cc1cdd9171 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
//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.TQWidget;
import org.kde.qt.TQObject;

/**

 Displays messages in the window icon and title. The message is usually
 transient with the original title and icon being restored automatically
 after a specified time. The simplest use displays a text message in the
 window title:
 <pre>
    KWindowInfo.showMessage( this, &quot;Message Body&quot; );
 </pre>
 This more complex example changes the window icon, as well as
 displaying the text. In addition, this example overrides the
 default timeout to ensure the message is only displayed for 1
 second.
 <pre>
    TQPixmap px;
    px.load( &quot;lo16-app-logtracker.png&quot; );
    KWindowInfo.showMessage( this, &quot;Message Body&quot;, px, 1000 );
 </pre>
 If the parent window inherits KSystemTray then KWindowInfo changes the
 pixmap and tooltip of the system window to display the message.
		@author Richard Moore, rich@kde.org

		@short    Displays messages in the window icon and title.

*/
public class KWindowInfo extends TQObject  {
	protected KWindowInfo(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Creates a KWindowInfo with the specified parent.
		     		@short    Creates a KWindowInfo with the specified parent.
	*/
	public KWindowInfo(TQWidget parent, String name) {
		super((Class) null);
		newKWindowInfo(parent,name);
	}
	private native void newKWindowInfo(TQWidget parent, String name);
	public KWindowInfo(TQWidget parent) {
		super((Class) null);
		newKWindowInfo(parent);
	}
	private native void newKWindowInfo(TQWidget parent);
	/**	
		 Returns true iff the object should delete itself when it resets.
		     		@short    Returns true iff the object should delete itself when it resets.
	*/
	public native boolean autoDelete();
	/**	
		 Set to true if you want the object to delete itself when the message
		 timeout occurs.
		     		@short    Set to true if you want the object to delete itself when the message  timeout occurs.
	*/
	public native void setAutoDelete(boolean enable);
	/**	
		 Shows the specified text in the window title.
		     		@short    Shows the specified text in the window title.
	*/
	public native void message(String text);
	/**	
		 Shows the specified text in the window title, and sets the window icon.
		     		@short    Shows the specified text in the window title, and sets the window icon.
	*/
	public native void message(String text, TQPixmap pix);
	/**	
		 Shows the specified text in the window title for the specified time.
		     		@short    Shows the specified text in the window title for the specified time.
	*/
	public native void message(String text, int timeout);
	/**	
		 Shows the specified icon and text in the window title and WM
		 icon, for the specified time. The time is a delay specified in
		 milliseconds, or one of the two special values. The special
		 values are -1 which means the default timeout should be used,
		 and 0 which means the message is permanent.
		     		@short    Shows the specified icon and text in the window title and WM  icon, for the specified time.
	*/
	public native void message(String text, TQPixmap pix, int timeout);
	/**	
		 Shows the specified text in the window title with no timeout.
		     		@short    Shows the specified text in the window title with no timeout.
	*/
	public native void permanent(String text);
	/**	
		 Shows the specified text and icon in the window title with no timeout.
		     		@short    Shows the specified text and icon in the window title with no timeout.
	*/
	public native void permanent(String text, TQPixmap pix);
	/**	
		 Utility method to display a title bar message for the specified
		 window.
		     		@short    Utility method to display a title bar message for the specified  window.
	*/
	public static native void showMessage(TQWidget window, String text, int timeout);
	public static native void showMessage(TQWidget window, String text);
	/**	
		 Utility method to display a title bar message and icon for the
		 specified window.
		     		@short    Utility method to display a title bar message and icon for the  specified window.
	*/
	public static native void showMessage(TQWidget window, String text, TQPixmap pix, int timeout);
	public static native void showMessage(TQWidget window, String text, TQPixmap pix);
	/**	
		 Displays the message in the titlebar/icon.
		     		@short    Displays the message in the titlebar/icon.
	*/
	protected native void display(String text, TQPixmap pix);
	/**	
		 Saves the window title and icon.
		     		@short    Saves the window title and icon.
	*/
	protected native void save();
	/**	
		 Resets the window title and icon to the saved values. If
		 auto-delete is enabled then the object is deleted.
		     		@short    Resets the window title and icon to the saved values.
	*/
	protected native void restore();
	/** 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();
}