.TH "KTipDialog" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KTipDialog \- A Tip-of-the-Day dialog.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <ktip.h>\fP
.PP
Inherits \fBKDialog\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKTipDialog\fP (\fBKTipDatabase\fP *db, \fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIConstruct a tip dialog. \fP"
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "void \fBshowTip\fP (\fBQWidget\fP *parent, const  \fBQString\fP &tipFile=QString::null, bool force=false)"
.br
.RI "\fIShows a tip. \fP"
.ti -1c
.RI "void \fBshowTip\fP (const  \fBQString\fP &tipFile=QString::null, bool force=false)"
.br
.RI "\fIShows a tip. \fP"
.ti -1c
.RI "void \fBsetShowOnStart\fP (bool \fBshow\fP)"
.br
.RI "\fIToggles the start behaviour. \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "bool \fBeventFilter\fP (\fBQObject\fP *, \fBQEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
A Tip-of-the-Day dialog. 

This dialog class presents a tip-of-the-day.
.PP
\fBAuthor:\fP
.RS 4
Matthias Hoelzer-Kluepfel <mhk@caldera.de> 
.RE
.PP

.PP
Definition at line 99 of file ktip.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KTipDialog::KTipDialog (\fBKTipDatabase\fP * db, \fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
Construct a tip dialog. \fBParameters:\fP
.RS 4
\fIdb\fP TipDatabase that should be used by the TipDialog. 
.br
\fIparent\fP Parent widget of TipDialog. 
.br
\fIname\fP The object name. 
.RE
.PP
Definition at line 130 of file ktip.cpp.
.PP
References QDialog::accept(), KGlobalSettings::activeTitleColor(), KGlobalSettings::alternateBackgroundColor(), KIconEffect::colorize(), QApplication::desktop(), KGlobal::dirs(), KGlobalSettings::generalFont(), QSize::height(), QRect::height(), KGlobal::iconLoader(), QStyleSheet::item(), locate(), KDialog::marginHint(), KIO::move(), KStdAccel::name(), KStdAccel::next(), QImage::pixel(), KStandardDirs::resourceDirs(), QLabel::setAlignment(), KDialog::setCaption(), QCheckBox::setChecked(), QPalette::setColor(), QPushButton::setDefault(), QLabel::setFont(), QStyleSheetItem::setFontWeight(), QColor::setHsv(), QLabel::setPixmap(), QHBox::setSpacing(), QPushButton::setText(), QLabel::setText(), KDialog::spacingHint(), KGlobalSettings::textColor(), QSize::width(), QRect::width(), QRect::x(), and QRect::y().
.PP
Referenced by showTip().
.SH "Member Function Documentation"
.PP 
.SS "void KTipDialog::showTip (\fBQWidget\fP * parent, const \fBQString\fP & tipFile = QString::null, bool force = false)\fC [static]\fP"
.PP
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.
.PP
Note that you probably want an item in the help menu calling this method with force=true.
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP Parent widget of TipDialog. 
.br
\fItipFile\fP The name of the tip file. 
.br
\fIforce\fP If true, the dialog is show, even when the users disabled it. 
.RE
.PP
Definition at line 283 of file ktip.cpp.
.PP
References KTipDialog(), nextTip(), and QDialog::show().
.PP
Referenced by showTip().
.SS "void KTipDialog::showTip (const \fBQString\fP & tipFile = QString::null, bool force = false)\fC [static]\fP"
.PP
Shows a tip. This methods calls \fBshowTip()\fP with the applications main window as parent. Definition at line 278 of file ktip.cpp.
.PP
References showTip().
.SS "void KTipDialog::setShowOnStart (bool show)\fC [static]\fP"
.PP
Toggles the start behaviour. Normally, the user can disable the display of the tip in the dialog. This is just a way to change this setting from outside. Definition at line 324 of file ktip.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
