summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KTipDialog.java
blob: 5f3fc706b3b435f8ccd0c40bedbb1529ef7620bc (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
//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.TQObject;
import org.kde.qt.TQEvent;
import org.kde.qt.TQWidget;

/**

 A Tip-of-the-Day dialog.
 This dialog class presents a tip-of-the-day.
		@author Matthias Hoelzer-Kluepfel <mhk@caldera.de>
 
		@short    A Tip-of-the-Day dialog.

*/
public class KTipDialog extends KDialog  {
	protected KTipDialog(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Construct a tip dialog.
			@param db TipDatabase that should be used by the TipDialog.
			@param parent Parent widget of TipDialog.
			@param name The object name.
		     		@short    Construct a tip dialog.
	*/
	public KTipDialog(KTipDatabase db, TQWidget parent, String name) {
		super((Class) null);
		newKTipDialog(db,parent,name);
	}
	private native void newKTipDialog(KTipDatabase db, TQWidget parent, String name);
	public KTipDialog(KTipDatabase db, TQWidget parent) {
		super((Class) null);
		newKTipDialog(db,parent);
	}
	private native void newKTipDialog(KTipDatabase db, TQWidget parent);
	public KTipDialog(KTipDatabase db) {
		super((Class) null);
		newKTipDialog(db);
	}
	private native void newKTipDialog(KTipDatabase db);
	/**	
		 Shows a tip.
			 This static method is all that is needed to add a tip-of-the-day
		 dialog to an application. It will pop up the dialog, unless the
		 user has asked that the dialog does not pop up on startup.
			 Note that you probably want an item in the help menu calling
		 this method with force=true.
			@param parent Parent widget of TipDialog.
			@param tipFile The name of the tip file. It has be relative to the "data"
		                resource of KStandardDirs
			@param force If true, the dialog is show, even when the users
		              disabled it.
		     		@short    Shows a tip.
	*/
	public static native void showTip(TQWidget parent, String tipFile, boolean force);
	public static native void showTip(TQWidget parent, String tipFile);
	public static native void showTip(TQWidget parent);
	/**	
		 Shows a tip
			 This method behaves essentially as the one above, but expects a list of tips
			@param parent Parent widget of TipDialog.
			@param tipFiles A List of tip files. Each has be relative to the "data"
		                resource of KStandardDirs
			@param force If true, the dialog is show, even when the users
		              disabled it.
		     		@short    Shows a tip
	*/
	public static native void showMultiTip(TQWidget parent, String[] tipFiles, boolean force);
	public static native void showMultiTip(TQWidget parent, String[] tipFiles);
	/**	
		 Shows a tip.
			 This methods calls showTip() with the applications main window as parent.
			     		@short    Shows a tip.
	*/
	public static native void showTip(String tipFile, boolean force);
	public static native void showTip(String tipFile);
	public static native void showTip();
	/**	
		 Toggles the start behavior.
			 Normally, the user can disable the display of the tip in the dialog.
		 This is just a way to change this setting from outside.
		     		@short    Toggles the start behavior.
	*/
	public static native void setShowOnStart(boolean show);
	public native boolean eventFilter(TQObject arg1, TQEvent arg2);
	/** 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();
}