org.kde.koala

Class KTipDialog

public class KTipDialog extends KDialog

A Tip-of-the-Day dialog. This dialog class presents a tip-of-the-day.

Author: Matthias Hoelzer-Kluepfel

UNKNOWN: A Tip-of-the-Day dialog.

Constructor Summary
protected KTipDialog(Class dummy)
KTipDialog(KTipDatabase db, QWidget parent, String name)
Construct a tip dialog.
KTipDialog(KTipDatabase db, QWidget parent)
KTipDialog(KTipDatabase db)
Method Summary
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
booleaneventFilter(QObject arg1, QEvent arg2)
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
static voidsetShowOnStart(boolean show)
Toggles the start behavior.
static voidshowMultiTip(QWidget parent, String[] tipFiles, boolean force)
Shows a tip This method behaves essentially as the one above, but expects a list of tips
static voidshowMultiTip(QWidget parent, String[] tipFiles)
static voidshowTip(QWidget parent, String tipFile, boolean force)
Shows a tip.
static voidshowTip(QWidget parent, String tipFile)
static voidshowTip(QWidget parent)
static voidshowTip(String tipFile, boolean force)
Shows a tip.
static voidshowTip(String tipFile)
static voidshowTip()

Constructor Detail

KTipDialog

protected KTipDialog(Class dummy)

KTipDialog

public KTipDialog(KTipDatabase db, QWidget parent, String name)
Construct a tip dialog.

Parameters: db TipDatabase that should be used by the TipDialog. parent Parent widget of TipDialog. name The object name.

UNKNOWN: Construct a tip dialog.

KTipDialog

public KTipDialog(KTipDatabase db, QWidget parent)

KTipDialog

public KTipDialog(KTipDatabase db)

Method Detail

className

public String className()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

eventFilter

public boolean eventFilter(QObject arg1, QEvent arg2)

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

metaObject

public QMetaObject metaObject()

setShowOnStart

public static void setShowOnStart(boolean show)
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.

UNKNOWN: Toggles the start behavior.

showMultiTip

public static void showMultiTip(QWidget parent, String[] tipFiles, boolean force)
Shows a tip This method behaves essentially as the one above, but expects a list of tips

Parameters: parent Parent widget of TipDialog. tipFiles A List of tip files. Each has be relative to the "data" resource of KStandardDirs force If true, the dialog is show, even when the users disabled it.

UNKNOWN: Shows a tip

showMultiTip

public static void showMultiTip(QWidget parent, String[] tipFiles)

showTip

public static void showTip(QWidget parent, String tipFile, boolean force)
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.

Parameters: parent Parent widget of TipDialog. tipFile The name of the tip file. It has be relative to the "data" resource of KStandardDirs force If true, the dialog is show, even when the users disabled it.

UNKNOWN: Shows a tip.

showTip

public static void showTip(QWidget parent, String tipFile)

showTip

public static void showTip(QWidget parent)

showTip

public static void showTip(String tipFile, boolean force)
Shows a tip. This methods calls showTip() with the applications main window as parent.

UNKNOWN: Shows a tip.

showTip

public static void showTip(String tipFile)

showTip

public static void showTip()