diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KTipDialog.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KTipDialog.java | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KTipDialog.java b/kdejava/koala/org/kde/koala/KTipDialog.java new file mode 100644 index 00000000..f2df501f --- /dev/null +++ b/kdejava/koala/org/kde/koala/KTipDialog.java @@ -0,0 +1,97 @@ +//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.QObject; +import org.kde.qt.QEvent; +import org.kde.qt.QWidget; + +/** + + 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 QMetaObject 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, QWidget parent, String name) { + super((Class) null); + newKTipDialog(db,parent,name); + } + private native void newKTipDialog(KTipDatabase db, QWidget parent, String name); + public KTipDialog(KTipDatabase db, QWidget parent) { + super((Class) null); + newKTipDialog(db,parent); + } + private native void newKTipDialog(KTipDatabase db, QWidget 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(QWidget parent, String tipFile, boolean force); + public static native void showTip(QWidget parent, String tipFile); + public static native void showTip(QWidget 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(QWidget parent, String[] tipFiles, boolean force); + public static native void showMultiTip(QWidget 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(QObject arg1, QEvent 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(); +} |