.TH "KDialogBase" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KDialogBase \- A dialog base class with standard buttons and predefined layouts.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kdialogbase.h>\fP
.PP
Inherits \fBKDialog\fP.
.PP
Inherited by \fBKAboutDialog\fP, \fBKBugReport\fP, \fBKCMultiDialog\fP, \fBKColorDialog\fP, \fBKConfigDialog\fP, \fBKDirSelectDialog\fP, KEdFind, KEdGotoLine, \fBKEditToolbar\fP, KEdReplace, \fBKFileDialog\fP, \fBKFindDialog\fP, \fBKFontDialog\fP, \fBKIconDialog\fP, \fBKInputDialog\fP, \fBKIO::PasswordDialog\fP, \fBKKeyDialog\fP, \fBKLineEditDlg\fP, \fBKMimeTypeChooserDialog\fP, \fBKNotifyDialog\fP, \fBKOCRDialog\fP, \fBKPasswordDialog\fP, \fBKPixmapRegionSelectorDialog\fP, \fBKProgressDialog\fP, \fBKPropertiesDialog\fP, \fBKScanDialog\fP, \fBKSettings::ComponentsDialog\fP, \fBKShortcutDialog\fP, KSpellDlg, \fBKURLBarItemDialog\fP, and \fBKURLRequesterDlg\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBButtonCode\fP { \fBHelp\fP =  0x00000001, \fBDefault\fP =  0x00000002, \fBOk\fP =  0x00000004, \fBApply\fP =  0x00000008, \fBTry\fP =  0x00000010, \fBCancel\fP =  0x00000020, \fBClose\fP =  0x00000040, \fBUser1\fP =  0x00000080, \fBUser2\fP =  0x00000100, \fBUser3\fP =  0x00000200, \fBNo\fP =  0x00000080, \fBYes\fP =  0x00000100, \fBDetails\fP =  0x00000400, \fBFiller\fP =  0x40000000, \fBStretch\fP =  0x80000000, \fBNoDefault\fP }"
.br
.ti -1c
.RI "enum \fBActionButtonStyle\fP { \fBActionStyle0\fP = 0, \fBActionStyle1\fP, \fBActionStyle2\fP, \fBActionStyle3\fP, \fBActionStyle4\fP, \fBActionStyleMAX\fP }"
.br
.ti -1c
.RI "enum \fBDialogType\fP { \fBTreeList\fP =  KJanusWidget::TreeList, \fBTabbed\fP =  KJanusWidget::Tabbed, \fBPlain\fP =  KJanusWidget::Plain, \fBSwallow\fP =  KJanusWidget::Swallow, \fBIconList\fP =  KJanusWidget::IconList }"
.br
.in -1c
.SS "Public Slots"

.in +1c
.ti -1c
.RI "void \fBenableButton\fP (\fBButtonCode\fP id, bool state)"
.br
.ti -1c
.RI "void \fBenableButtonOK\fP (bool state)"
.br
.ti -1c
.RI "void \fBenableButtonApply\fP (bool state)"
.br
.ti -1c
.RI "void \fBenableButtonCancel\fP (bool state)"
.br
.ti -1c
.RI "void \fBenableLinkedHelp\fP (bool state)"
.br
.ti -1c
.RI "void \fBdelayedDestruct\fP ()"
.br
.ti -1c
.RI "void \fBsetHelpLinkText\fP (const \fBQString\fP &text)"
.br
.ti -1c
.RI "void \fBsetHelp\fP (const \fBQString\fP &anchor, const \fBQString\fP &appname=QString::null)"
.br
.ti -1c
.RI "void \fBhelpClickedSlot\fP (const \fBQString\fP &)"
.br
.ti -1c
.RI "void \fBsetDetails\fP (bool showDetails)"
.br
.ti -1c
.RI "void \fBsetDetailsWidget\fP (\fBQWidget\fP *detailsWidget)"
.br
.ti -1c
.RI "void \fBupdateBackground\fP ()"
.br
.ti -1c
.RI "void \fBcancel\fP ()"
.br
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBhelpClicked\fP ()"
.br
.ti -1c
.RI "void \fBdefaultClicked\fP ()"
.br
.ti -1c
.RI "void \fBuser3Clicked\fP ()"
.br
.ti -1c
.RI "void \fBuser2Clicked\fP ()"
.br
.ti -1c
.RI "void \fBuser1Clicked\fP ()"
.br
.ti -1c
.RI "void \fBapplyClicked\fP ()"
.br
.ti -1c
.RI "void \fBtryClicked\fP ()"
.br
.ti -1c
.RI "void \fBokClicked\fP ()"
.br
.ti -1c
.RI "void \fByesClicked\fP ()"
.br
.ti -1c
.RI "void \fBnoClicked\fP ()"
.br
.ti -1c
.RI "void \fBcancelClicked\fP ()"
.br
.ti -1c
.RI "void \fBcloseClicked\fP ()"
.br
.ti -1c
.RI "void \fBapply\fP ()"
.br
.ti -1c
.RI "void \fBbackgroundChanged\fP ()"
.br
.ti -1c
.RI "void \fBhidden\fP ()"
.br
.ti -1c
.RI "void \fBfinished\fP ()"
.br
.ti -1c
.RI "void \fBaboutToShowDetails\fP ()"
.br
.ti -1c
.RI "void \fBaboutToShowPage\fP (\fBQWidget\fP *page)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKDialogBase\fP (\fBQWidget\fP *parent=0, const char *name=0, bool modal=true, const \fBQString\fP &caption=QString::null, int buttonMask=Ok|Apply|Cancel, \fBButtonCode\fP defaultButton=Ok, bool separator=false, const \fBKGuiItem\fP &user1=\fBKGuiItem\fP(), const \fBKGuiItem\fP &user2=\fBKGuiItem\fP(), const \fBKGuiItem\fP &user3=\fBKGuiItem\fP())"
.br
.ti -1c
.RI "\fBKDialogBase\fP (int dialogFace, const \fBQString\fP &caption, int buttonMask, \fBButtonCode\fP defaultButton, \fBQWidget\fP *parent=0, const char *name=0, bool modal=true, bool separator=false, const \fBKGuiItem\fP &user1=\fBKGuiItem\fP(), const \fBKGuiItem\fP &user2=\fBKGuiItem\fP(), const \fBKGuiItem\fP &user3=\fBKGuiItem\fP())"
.br
.ti -1c
.RI "\fBKDialogBase\fP (\fBKDialogBase::DialogType\fP dialogFace, WFlags f, \fBQWidget\fP *parent=0, const char *name=0, bool modal=true, const \fBQString\fP &caption=QString::null, int buttonMask=Ok|Apply|Cancel, \fBButtonCode\fP defaultButton=Ok, bool separator=false, const \fBKGuiItem\fP &user1=\fBKGuiItem\fP(), const \fBKGuiItem\fP &user2=\fBKGuiItem\fP(), const \fBKGuiItem\fP &user3=\fBKGuiItem\fP())"
.br
.ti -1c
.RI "\fBKDialogBase\fP (const \fBQString\fP &caption, int buttonMask=Yes|No|Cancel, \fBButtonCode\fP defaultButton=Yes, \fBButtonCode\fP escapeButton=Cancel, \fBQWidget\fP *parent=0, const char *name=0, bool modal=true, bool separator=false, const \fBKGuiItem\fP &yes=KStdGuiItem::yes(), const \fBKGuiItem\fP &no=KStdGuiItem::no(), const \fBKGuiItem\fP &cancel=KStdGuiItem::cancel())"
.br
.ti -1c
.RI "\fB~KDialogBase\fP ()"
.br
.ti -1c
.RI "void \fBsetButtonBoxOrientation\fP (int \fBorientation\fP)"
.br
.ti -1c
.RI "void \fBsetEscapeButton\fP (\fBButtonCode\fP id)"
.br
.ti -1c
.RI "virtual void \fBadjustSize\fP ()"
.br
.ti -1c
.RI "virtual \fBQSize\fP \fBsizeHint\fP () const "
.br
.ti -1c
.RI "virtual \fBQSize\fP \fBminimumSizeHint\fP () const "
.br
.ti -1c
.RI "\fBQFrame\fP * \fBplainPage\fP ()"
.br
.ti -1c
.RI "\fBQFrame\fP * \fBaddPage\fP (const \fBQString\fP &itemName, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "\fBQFrame\fP * \fBaddPage\fP (const \fBQStringList\fP &items, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "\fBQVBox\fP * \fBaddVBoxPage\fP (const \fBQString\fP &itemName, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "\fBQVBox\fP * \fBaddVBoxPage\fP (const \fBQStringList\fP &items, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "\fBQHBox\fP * \fBaddHBoxPage\fP (const \fBQString\fP &itemName, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "\fBQHBox\fP * \fBaddHBoxPage\fP (const \fBQStringList\fP &items, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "\fBQGrid\fP * \fBaddGridPage\fP (int n, Orientation dir, const \fBQString\fP &itemName, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "\fBQGrid\fP * \fBaddGridPage\fP (int n, Orientation dir, const \fBQStringList\fP &items, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "void \fBsetFolderIcon\fP (const \fBQStringList\fP &path, const \fBQPixmap\fP &pixmap)"
.br
.ti -1c
.RI "\fBQFrame\fP * \fBmakeMainWidget\fP ()"
.br
.ti -1c
.RI "\fBQVBox\fP * \fBmakeVBoxMainWidget\fP ()"
.br
.ti -1c
.RI "\fBQHBox\fP * \fBmakeHBoxMainWidget\fP ()"
.br
.ti -1c
.RI "\fBQGrid\fP * \fBmakeGridMainWidget\fP (int n, Orientation dir)"
.br
.ti -1c
.RI "void \fBenableButtonSeparator\fP (bool state)"
.br
.ti -1c
.RI "void \fBshowButton\fP (\fBButtonCode\fP id, bool state)"
.br
.ti -1c
.RI "void \fBshowButtonOK\fP (bool state)"
.br
.ti -1c
.RI "void \fBshowButtonApply\fP (bool state)"
.br
.ti -1c
.RI "void \fBshowButtonCancel\fP (bool state)"
.br
.ti -1c
.RI "bool \fBshowPage\fP (int index)"
.br
.ti -1c
.RI "int \fBactivePageIndex\fP () const "
.br
.ti -1c
.RI "int \fBpageIndex\fP (\fBQWidget\fP *widget) const "
.br
.ti -1c
.RI "void \fBsetMainWidget\fP (\fBQWidget\fP *widget)"
.br
.ti -1c
.RI "\fBQWidget\fP * \fBmainWidget\fP ()"
.br
.ti -1c
.RI "void \fBdisableResize\fP ()"
.br
.ti -1c
.RI "void \fBsetInitialSize\fP (const \fBQSize\fP &s, bool noResize=false)"
.br
.ti -1c
.RI "void \fBincInitialSize\fP (const \fBQSize\fP &s, bool noResize=false)"
.br
.ti -1c
.RI "\fBQSize\fP \fBconfigDialogSize\fP (const \fBQString\fP &groupName) const "
.br
.ti -1c
.RI "\fBQSize\fP \fBconfigDialogSize\fP (\fBKConfig\fP &config, const \fBQString\fP &groupName) const "
.br
.ti -1c
.RI "void \fBsaveDialogSize\fP (const \fBQString\fP &groupName, bool global=false)"
.br
.ti -1c
.RI "void \fBsaveDialogSize\fP (\fBKConfig\fP &config, const \fBQString\fP &groupName, bool global=false) const "
.br
.ti -1c
.RI "void \fBsetButtonOK\fP (const \fBKGuiItem\fP &item=KStdGuiItem::ok())"
.br
.ti -1c
.RI "void \fBsetButtonOKText\fP (const \fBQString\fP &text=QString::null, const \fBQString\fP &tooltip=QString::null, const \fBQString\fP &quickhelp=QString::null) KDE_DEPRECATED"
.br
.ti -1c
.RI "void \fBsetButtonApply\fP (const \fBKGuiItem\fP &item=KStdGuiItem::apply())"
.br
.ti -1c
.RI "void \fBsetButtonApplyText\fP (const \fBQString\fP &text=QString::null, const \fBQString\fP &tooltip=QString::null, const \fBQString\fP &quickhelp=QString::null) KDE_DEPRECATED"
.br
.ti -1c
.RI "void \fBsetButtonCancel\fP (const \fBKGuiItem\fP &item=KStdGuiItem::cancel())"
.br
.ti -1c
.RI "void \fBsetButtonCancelText\fP (const \fBQString\fP &text=QString::null, const \fBQString\fP &tooltip=QString::null, const \fBQString\fP &quickhelp=QString::null) KDE_DEPRECATED"
.br
.ti -1c
.RI "void \fBsetButtonText\fP (\fBButtonCode\fP id, const \fBQString\fP &text)"
.br
.ti -1c
.RI "void \fBsetButtonTip\fP (\fBButtonCode\fP id, const \fBQString\fP &text)"
.br
.ti -1c
.RI "void \fBsetButtonWhatsThis\fP (\fBButtonCode\fP id, const \fBQString\fP &text)"
.br
.ti -1c
.RI "void \fBsetButtonGuiItem\fP (\fBButtonCode\fP id, const \fBKGuiItem\fP &item)"
.br
.ti -1c
.RI "void \fBsetTreeListAutoResize\fP (bool state)"
.br
.ti -1c
.RI "void \fBsetShowIconsInTreeList\fP (bool state)"
.br
.ti -1c
.RI "void \fBsetRootIsDecorated\fP (bool state)"
.br
.ti -1c
.RI "void \fBunfoldTreeList\fP (bool persist=false)"
.br
.ti -1c
.RI "void \fBaddWidgetBelowList\fP (\fBQWidget\fP *widget)"
.br
.ti -1c
.RI "void \fBaddButtonBelowList\fP (const \fBQString\fP &text, \fBQObject\fP *recv, const char *slot)"
.br
.ti -1c
.RI "void \fBaddButtonBelowList\fP (const \fBKGuiItem\fP &guiitem, \fBQObject\fP *recv, const char *slot)"
.br
.ti -1c
.RI "void \fBsetIconListAllVisible\fP (bool state)"
.br
.ti -1c
.RI "void \fBshowTile\fP (bool state)"
.br
.ti -1c
.RI "void \fBgetBorderWidths\fP (int &ulx, int &uly, int &lrx, int &lry) const KDE_DEPRECATED"
.br
.ti -1c
.RI "\fBQRect\fP \fBgetContentsRect\fP () const KDE_DEPRECATED"
.br
.ti -1c
.RI "\fBQSize\fP \fBcalculateSize\fP (int w, int h) const "
.br
.ti -1c
.RI "\fBQString\fP \fBhelpLinkText\fP () const "
.br
.ti -1c
.RI "\fBQPushButton\fP * \fBactionButton\fP (\fBButtonCode\fP id)"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static bool \fBhaveBackgroundTile\fP ()"
.br
.ti -1c
.RI "static const \fBQPixmap\fP * \fBbackgroundTile\fP ()"
.br
.ti -1c
.RI "static const \fBQPixmap\fP * \fBgetBackgroundTile\fP () KDE_DEPRECATED"
.br
.ti -1c
.RI "static void \fBsetBackgroundTile\fP (const \fBQPixmap\fP *pix)"
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "virtual void \fBslotHelp\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotDefault\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotDetails\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotUser3\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotUser2\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotUser1\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotOk\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotApply\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotTry\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotYes\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotNo\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotCancel\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotClose\fP ()"
.br
.ti -1c
.RI "virtual void \fBapplyPressed\fP ()"
.br
.ti -1c
.RI "void \fBupdateGeometry\fP ()"
.br
.ti -1c
.RI "void \fBslotDelayedDestruct\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBkeyPressEvent\fP (\fBQKeyEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBhideEvent\fP (\fBQHideEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBcloseEvent\fP (\fBQCloseEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
A dialog base class with standard buttons and predefined layouts. 

Provides basic functionality needed by nearly all dialogs.
.PP
It offers the standard action buttons you'd expect to find in a dialog as well as the capability to define at most three configurable buttons. You can define a main widget that contains your specific dialog layout or you can use a predefined layout. Currently, \fCTreeList/Paged\fP, \fCTabbed\fP, \fCPlain\fP, \fCSwallow\fP and \fCIconList\fP mode layouts (faces) are available.
.PP
The class takes care of the geometry management. You only need to define a minimum size for the widget you want to use as the main widget.
.PP
You can set a background tile (pixmap) for parts of the dialog. The tile you select is shared by all instances of this class in your application so that they all get the same look and feel.
.PP
There is a tutorial available on http://developer.kde.org/ (NOT YET) that contains copy/paste examples as well a screenshots on how to use this class.
.PP
\fBStandard buttons (action buttons):\fP
.br
.PP
You select which buttons should be displayed, but you do not choose the order in which they are displayed. This ensures a standard interface in \fBKDE\fP. The button order can be changed, but this ability is only available for a central \fBKDE\fP control tool. The following buttons are available: OK, Cancel/Close, Apply/Try, Default, Help and three user definable buttons: User1, User2 and User3. You must specify the text of the UserN buttons. Each button has a virtual slot so you can overload the method when required. The default slots emit a signal as well, so you can choose to connect a signal instead of overriding the slot. The default implementation of \fBslotHelp()\fP will automatically enable the help system if you have provided a path to the help text. \fBslotCancel()\fP and \fBslotClose()\fP will run \fBQDialog::reject()\fP while \fBslotOk()\fP will run \fBQDialog::accept()\fP. You define a default button in the constructor.
.PP
If you don't want any buttons at all because your dialog is special in some way, then set the buttonMask argument in the constructor to zero (0). The optional button box separator line should not be enabled in this case. Note that the KDialogBase will animate a button press when the user press Escape. The button that is enabled is either Cancel, Close or the button that is defined by \fBsetEscapeButton()\fP The animation will not take place when the buttonMask is zero. Your custom dialog code should reimplement the keyPressEvent and animate the cancel button so that the dialog behaves like regular dialogs. NOTE: None of the regular slots (like \fBslotOk()\fP ) or signals that are related to the standard action buttons will be used when you don't use these buttons.
.PP
\fBsect Dialog shapes:\fP
.br
.PP
You can either use one of the prebuilt, easy to use, faces or define your own main widget. The dialog provides ready to use TreeList, Tabbed, Plain, Swallow and IconList faces. KDialogBase uses the \fBKJanusWidget\fP class internally to accomplish this. If you use TreeList, Tabbed or IconList mode, then add pages with \fBaddPage()\fP.
.PP
Pages that have been added can be removed again by simply deleting the page.
.PP
If you want complete control of how the dialog contents should look, then you can define a main widget by using \fBsetMainWidget()\fP. You only need to set the minimum size of that widget and the dialog will resize itself to fit this minimum size. The dialog is resizeable, but cannot be made smaller than its minimum size.
.PP
\fBLayout:\fP
.br
.PP
The dialog consists of a help area on top (becomes visible if you define a help path and use \fBenableLinkedHelp()\fP), the main area which is the built-in dialog face or your own widget in the middle and by default a button box at the bottom. The button box can also be placed at the right edge (to the right of the main widget). Use \fBsetButtonBoxOrientation()\fP to control this behavior. A separator can be placed above the button box (or to the left when the button box is at the right edge). Normally you specify that you want a separator in the constructor, but you can use \fBenableButtonSeparator()\fP as well.
.PP
\fBStandard compliance:\fP
.br
.PP
The class is derived from \fBKDialog\fP, so you get automatic access to the \fBKDialog::marginHint()\fP, \fBKDialog::spacingHint()\fP and the extended \fBKDialog::setCaption()\fP method. NOTE: The main widget you use will be positioned inside the dialog using a margin (or border) equal to \fBKDialog::marginHint()\fP. You should not add a margin yourself, since one will be added automatically. The example below (from kedit) shows how you use the top level widget and its layout. The second argument (the border) to \fBQVBoxLayout\fP is 0. This situation is valid for addPage , addVBoxPage , addHBoxPage , addGridPage , makeMainWidget , makeVBoxMainWidget , makeHBoxMainWidget and makeGridMainWidget as well.
.PP
Example:
.PP
.PP
.nf
 UrlDlg::UrlDlg( QWidget *parent, const QString& caption,
                 const QString& urltext)
   : KDialogBase( parent, 'urldialog', true, caption,
                  KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true )
 {
   QWidget *page = new QWidget( this );
   setMainWidget(page);
   QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );

   QLabel *label = new QLabel( caption, page, 'caption' );
   topLayout->addWidget( label );

   lineedit = new QLineEdit( urltext, page, 'lineedit' );
   lineedit->setMinimumWidth(fontMetrics().maxWidth()*20);
   topLayout->addWidget( lineedit );

   topLayout->addStretch(10);
 }
.fi
.PP
.PP
If you use \fBmakeVBoxMainWidget()\fP, then the dialog above can be made simpler but you lose the ability to add a stretchable area:
.PP
.PP
.nf
 UrlDlg::UrlDlg( QWidget *parent, const QString& caption,
                 const QString& urltext)
 : KDialogBase( parent, 'urldialog', true, caption,
                KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true )
 {
   QVBox *page = makeVBoxMainWidget();
   QLabel *label = new QLabel( caption, page, 'caption' );

   lineedit = new QLineEdit( urltext, page, 'lineedit' );
   lineedit->setMinimumWidth(fontMetrics().maxWidth()*20);
 }
.fi
.PP
.PP
This class can be used in many ways. Note that most \fBKDE\fP ui widgets and many of \fBKDE\fP core applications use the KDialogBase so for more inspiration you should study the code for these.
.PP
\fBAuthor:\fP
.RS 4
Mirko Boehm (mirko@kde.org) and Espen Sand (espen@kde.org) 
.RE
.PP

.PP
Definition at line 193 of file kdialogbase.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "\fBenum\fP \fBKDialogBase::ButtonCode\fP"
.PP
.PD 0
.IP "\(bu" 2
\fCHelp\fP - Show Help button. 
.PP

.PP
.PD 0
.IP "\(bu" 2
\fCDefault\fP - Show Default button. 
.IP "\(bu" 2
\fCDetails\fP - Show Details button. 
.IP "\(bu" 2
\fCOk\fP - Show Ok button. 
.IP "\(bu" 2
\fCApply\fP - Show Apply button. 
.IP "\(bu" 2
\fCTry\fP - Show Try button. 
.IP "\(bu" 2
\fCCancel\fP - Show Cancel button. 
.IP "\(bu" 2
\fCClose\fP - Show Close button. 
.IP "\(bu" 2
\fCUser1\fP - Show User-defined button 1. 
.IP "\(bu" 2
\fCUser2\fP - Show User-defined button 2. 
.IP "\(bu" 2
\fCUser3\fP - Show User-defined button 3. 
.IP "\(bu" 2
\fCNo\fP - Show No button. 
.IP "\(bu" 2
\fCYes\fP - Show Yes button. 
.IP "\(bu" 2
\fCStretch\fP - Used internally. Ignored when used in a constructor. 
.IP "\(bu" 2
\fCFiller\fP - Used internally. Ignored when used in a constructor. 
.IP "\(bu" 2
\fCNoDefault\fP - Used when specifying a default button; indicates that no button should be marked by default. 
.PP

.PP
\fBEnumeration values: \fP
.in +1c
.TP
\fB\fINoDefault \fP\fP
\fBSince:\fP
.RS 4
3.3 
.RE
.PP

.PP
Definition at line 218 of file kdialogbase.h.
.SS "\fBenum\fP \fBKDialogBase::DialogType\fP"
.PP
.PD 0
.IP "\(bu" 2
\fCTreeList\fP - A dialog with a tree on the left side and a representation of the contents on the right side. 
.PP

.PP
.PD 0
.IP "\(bu" 2
\fCTabbed\fP - A dialog using a \fBQTabWidget\fP. 
.IP "\(bu" 2
\fCPlain\fP - A normal dialog. Use \fBplainPage()\fP as parent for widgets. 
.IP "\(bu" 2
\fCSwallow\fP - Simplifes the usage of existing widgets. You specify the widget to be displayed by \fBsetMainWidget()\fP. 
.IP "\(bu" 2
\fCIconList\fP - A dialog with an iconlist on the left side and a representation of the contents on the right side. 
.PP

.PP
Definition at line 258 of file kdialogbase.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KDialogBase::KDialogBase (\fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP, bool modal = \fCtrue\fP, const \fBQString\fP & caption = \fCQString::null\fP, int buttonMask = \fCOk|Apply|Cancel\fP, \fBButtonCode\fP defaultButton = \fCOk\fP, bool separator = \fCfalse\fP, const \fBKGuiItem\fP & user1 = \fC\fBKGuiItem\fP()\fP, const \fBKGuiItem\fP & user2 = \fC\fBKGuiItem\fP()\fP, const \fBKGuiItem\fP & user3 = \fC\fBKGuiItem\fP()\fP)"
.PP
Constructor for the standard mode where you must specify the main widget with \fBsetMainWidget()\fP . 
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP Parent of the dialog. 
.br
\fIname\fP Dialog name (for internal use only) 
.br
\fImodal\fP Controls dialog modality. If \fCfalse\fP, the rest of the program interface (example: other dialogs) is accessible while the dialog is open. 
.br
\fIcaption\fP The dialog caption. Do not specify the application name here. The class will take care of that. 
.br
\fIbuttonMask\fP Specifies which buttons will be visible. If zero (0) no button box will be made. 
.br
\fIdefaultButton\fP Specifies which button will be marked as the default. Use ButtonCode::NoDefault to indicate that no button should be marked as the default button. 
.br
\fIseparator\fP If \fCtrue\fP, a separator line is drawn between the action buttons and the main widget. 
.br
\fIuser1\fP User button1 item. 
.br
\fIuser2\fP User button2 item. 
.br
\fIuser3\fP User button3 item. 
.RE
.PP

.PP
Definition at line 99 of file kdialogbase.cpp.
.PP
References enableButtonSeparator(), KDialog::layoutHintChanged(), KDialog::setCaption(), and updateGeometry().
.SS "KDialogBase::KDialogBase (int dialogFace, const \fBQString\fP & caption, int buttonMask, \fBButtonCode\fP defaultButton, \fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP, bool modal = \fCtrue\fP, bool separator = \fCfalse\fP, const \fBKGuiItem\fP & user1 = \fC\fBKGuiItem\fP()\fP, const \fBKGuiItem\fP & user2 = \fC\fBKGuiItem\fP()\fP, const \fBKGuiItem\fP & user3 = \fC\fBKGuiItem\fP()\fP)"
.PP
In KDE4 a WFlag paramater should be added after modal and next function can be removed. 
.PP
Constructor for the predefined layout mode where you specify the kind of layout (face).
.PP
\fBParameters:\fP
.RS 4
\fIdialogFace\fP You can use TreeList, Tabbed, Plain, Swallow or IconList. 
.br
\fIcaption\fP The dialog caption. Do not specify the application name here. The class will take care of that. 
.br
\fIbuttonMask\fP Specifies which buttons will be visible. If zero (0) no button box will be made. 
.br
\fIdefaultButton\fP Specifies which button will be marked as the default. Use ButtonCode::NoDefault to indicate that no button should be marked as the default button. 
.br
\fIparent\fP Parent of the dialog. 
.br
\fIname\fP Dialog name (for internal use only). 
.br
\fImodal\fP Controls dialog modality. If \fCfalse\fP, the rest of the program interface (example: other dialogs) is accessible while the dialog is open. 
.br
\fIseparator\fP If \fCtrue\fP, a separator line is drawn between the action buttons and the main widget. 
.br
\fIuser1\fP User button1 text item. 
.br
\fIuser2\fP User button2 text item. 
.br
\fIuser3\fP User button3 text item. 
.RE
.PP

.PP
Definition at line 121 of file kdialogbase.cpp.
.PP
References aboutToShowPage(), enableButtonSeparator(), KJanusWidget::isValid(), KDialog::layoutHintChanged(), KDialog::setCaption(), and updateGeometry().
.SS "KDialogBase::KDialogBase (\fBKDialogBase::DialogType\fP dialogFace, WFlags f, \fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP, bool modal = \fCtrue\fP, const \fBQString\fP & caption = \fCQString::null\fP, int buttonMask = \fCOk|Apply|Cancel\fP, \fBButtonCode\fP defaultButton = \fCOk\fP, bool separator = \fCfalse\fP, const \fBKGuiItem\fP & user1 = \fC\fBKGuiItem\fP()\fP, const \fBKGuiItem\fP & user2 = \fC\fBKGuiItem\fP()\fP, const \fBKGuiItem\fP & user3 = \fC\fBKGuiItem\fP()\fP)"
.PP
Constructor for the predefined layout mode where you specify the kind of layout (face). 
.PP
\fBParameters:\fP
.RS 4
\fIdialogFace\fP You can use TreeList, Tabbed, Plain, Swallow or IconList. 
.br
\fIf\fP widget flags, by default it is just set to WStyle_DialogBorder. 
.br
\fIcaption\fP The dialog caption. Do not specify the application name here. The class will take care of that. 
.br
\fIparent\fP Parent of the dialog. 
.br
\fIname\fP Dialog name (for internal use only). 
.br
\fImodal\fP Controls dialog modality. If \fCfalse\fP, the rest of the program interface (example: other dialogs) is accessible while the dialog is open. 
.br
\fIbuttonMask\fP Specifies which buttons will be visible. If zero (0) no button box will be made. 
.br
\fIdefaultButton\fP Specifies which button will be marked as the default. Use ButtonCode::NoDefault to indicate that no button should be marked as the default button. 
.br
\fIseparator\fP If \fCtrue\fP, a separator line is drawn between the action buttons and the main widget. 
.br
\fIuser1\fP User button1 text item. 
.br
\fIuser2\fP User button2 text item. 
.br
\fIuser3\fP User button3 text item. 
.RE
.PP
\fBSince:\fP
.RS 4
: 3.2 
.RE
.PP

.PP
Definition at line 149 of file kdialogbase.cpp.
.PP
References aboutToShowPage(), enableButtonSeparator(), KJanusWidget::isValid(), KDialog::layoutHintChanged(), KDialog::setCaption(), and updateGeometry().
.SS "KDialogBase::KDialogBase (const \fBQString\fP & caption, int buttonMask = \fCYes|No|Cancel\fP, \fBButtonCode\fP defaultButton = \fCYes\fP, \fBButtonCode\fP escapeButton = \fCCancel\fP, \fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP, bool modal = \fCtrue\fP, bool separator = \fCfalse\fP, const \fBKGuiItem\fP & yes = \fCKStdGuiItem::yes()\fP, const \fBKGuiItem\fP & no = \fCKStdGuiItem::no()\fP, const \fBKGuiItem\fP & cancel = \fCKStdGuiItem::cancel()\fP)"
.PP
Constructor for a message box mode where the \fCbuttonMask\fP can only contain Yes, No, or Cancel. 
.PP
If you need other names you can rename the buttons with \fBsetButtonText()\fP. The dialog box is not resizable by default but this can be changed by \fBsetInitialSize()\fP. If you select 'modal' to be true, the dialog will return Yes, No, or Cancel when closed otherwise you can use the signals \fByesClicked()\fP, \fBnoClicked()\fP, or \fBcancelClicked()\fP to determine the state.
.PP
\fBParameters:\fP
.RS 4
\fIcaption\fP The dialog caption. Do not specify the application name here. The class will take care of that. 
.br
\fIbuttonMask\fP Specifies which buttons will be visible. If zero (0) no button box will be made. 
.br
\fIdefaultButton\fP Specifies which button will be marked as the default. Use ButtonCode::NoDefault to indicate that no button should be marked as the default button. 
.br
\fIescapeButton\fP Specifies which button will be activated by when the dialog receives a \fCKey_Escape\fP keypress. 
.br
\fIparent\fP Parent of the dialog. 
.br
\fIname\fP Dialog name (for internal use only). 
.br
\fImodal\fP Controls dialog modality. If \fCfalse\fP, the rest of the program interface (example: other dialogs) is accessible while the dialog is open. 
.br
\fIseparator\fP If \fCtrue\fP, a separator line is drawn between the action buttons and the main widget. 
.br
\fIyes\fP Text to use for the first button (defaults to i18n('Yes')) 
.br
\fIno\fP Text to use for the second button (defaults to i18n('No')) 
.br
\fIcancel\fP Text to use for the third button (defaults to i18n('Cancel')) 
.RE
.PP

.PP
Definition at line 178 of file kdialogbase.cpp.
.PP
References cancel(), enableButtonSeparator(), QString::isEmpty(), KDialog::layoutHintChanged(), setButtonCancel(), KDialog::setCaption(), KGuiItem::text(), and updateGeometry().
.SS "KDialogBase::~\fBKDialogBase\fP ()"
.PP
Destructor. 
.PP
Definition at line 211 of file kdialogbase.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KDialogBase::setButtonBoxOrientation (int orientation)"
.PP
Sets the orientation of the button box. 
.PP
It can be \fCVertical\fP or \fCHorizontal\fP. If \fCHorizontal\fP (default), the button box is positioned at the bottom of the dialog. If \fCVertical\fP it will be placed at the right edge of the dialog.
.PP
\fBParameters:\fP
.RS 4
\fIorientation\fP The button box orientation. 
.RE
.PP

.PP
Definition at line 345 of file kdialogbase.cpp.
.PP
References enableLinkedHelp(), and KSeparator::setOrientation().
.SS "void KDialogBase::setEscapeButton (\fBButtonCode\fP id)"
.PP
Sets the button that will be activated when the Escape key is pressed. 
.PP
Normally you should not use this function. By default, the Escape key is mapped to either the Cancel or the Close button if one of these buttons are defined. The user expects that Escape will cancel an operation so use this function with caution.
.PP
\fBParameters:\fP
.RS 4
\fIid\fP The button code. 
.RE
.PP

.PP
Definition at line 365 of file kdialogbase.cpp.
.SS "void KDialogBase::adjustSize ()\fC [virtual]\fP"
.PP
Adjust the size of the dialog to fit the contents just before \fBQDialog::exec()\fP or \fBQDialog::show()\fP is called. 
.PP
This method will not be called if the dialog has been explicitly resized before showing it. 
.PP
Definition at line 427 of file kdialogbase.cpp.
.PP
Referenced by incInitialSize(), setDetails(), and setInitialSize().
.SS "\fBQFrame\fP * KDialogBase::plainPage ()"
.PP
Retrieve the empty page when the predefined layout is used in \fCPlain\fP mode. 
.PP
This widget must be used as the toplevel widget of your dialog code.
.PP
\fBReturns:\fP
.RS 4
The widget or 0 if the predefined layout mode is not \fCPlain\fP or if you don't use any predefined layout. 
.RE
.PP

.PP
Definition at line 420 of file kdialogbase.cpp.
.PP
References KJanusWidget::plainPage().
.PP
Referenced by KBugReport::KBugReport(), KLineEditDlg::KLineEditDlg(), and KProgressDialog::KProgressDialog().
.SS "\fBQFrame\fP * KDialogBase::addPage (const \fBQString\fP & itemName, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)"
.PP
Add a page to the dialog when the class is used in \fCTreeList\fP , \fCIconList\fP or \fCTabbed\fP mode. 
.PP
The returned widget must be used as the toplevel widget for this particular page. Note: The returned frame widget has no layout manager associated with it. In order to use it you must create a layout yourself as the example below illustrates:
.PP
.PP
.nf
 QFrame *page = addPage( i18n('Layout') );
 QVBoxLayout *topLayout = new QVBoxLayout( page, 0, KDialog::spacingHint() );
 QLabel *label = new QLabel( i18n('Layout type'), page );
 topLayout->addWidget( label );
 ..
.fi
.PP
.PP
\fBParameters:\fP
.RS 4
\fIitemName\fP String used in the list or as tab item name. 
.br
\fIheader\fP Header text use in the list modes. Ignored in \fCTabbed\fP mode. If empty, the item text is used instead. 
.br
\fIpixmap\fP Used in \fCIconList\fP mode. You should prefer a pixmap with size 32x32 pixels.
.RE
.PP
\fBReturns:\fP
.RS 4
The page widget which must be used as the toplevel widget for the page. 
.RE
.PP

.PP
Definition at line 1296 of file kdialogbase.cpp.
.PP
References KJanusWidget::addPage().
.SS "\fBQFrame\fP * KDialogBase::addPage (const \fBQStringList\fP & items, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)"
.PP
This is like \fBaddPage()\fP just above, with the difference that the first element is a list of strings. 
.PP
These strings are used to form a path of folders down to the given page. The initial elements are names for the folders, while the last element is the name of the page. Note: This does yet only work for the \fCTreeList\fP face. Later this may be added for the \fCIconList\fP face too. In other faces than the \fCTreeList\fP, all the strings except the last one is ignored. 
.PP
Definition at line 1302 of file kdialogbase.cpp.
.PP
References KJanusWidget::addPage().
.SS "\fBQVBox\fP * KDialogBase::addVBoxPage (const \fBQString\fP & itemName, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)"
.PP
Add a page to the dialog when the class is used in \fCTreeList\fP, \fCIconList\fP or \fCTabbed\fP mode. 
.PP
The returned widget must be used as the toplevel widget for this particular page. The widget contains a \fBQVBoxLayout\fP layout so the widget children are lined up vertically. You can use it as follows:
.PP
.PP
.nf
 QVBox *page = addVBoxPage( i18n('Layout') );
 QLabel *label = new QLabel( i18n('Layout type'), page );
 ..
.fi
.PP
.PP
\fBParameters:\fP
.RS 4
\fIitemName\fP String used in the list or as tab item name. 
.br
\fIheader\fP Header text use in the list modes. Ignored in \fCTabbed\fP mode. If empty, the item text is used instead. 
.br
\fIpixmap\fP Used in \fCIconList\fP mode. You should prefer a pixmap with size 32x32 pixels.
.RE
.PP
\fBReturns:\fP
.RS 4
The page widget which must be used as the toplevel widget for the page. 
.RE
.PP

.PP
Definition at line 1309 of file kdialogbase.cpp.
.PP
References KJanusWidget::addVBoxPage().
.SS "\fBQVBox\fP * KDialogBase::addVBoxPage (const \fBQStringList\fP & items, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)"
.PP
This is like \fBaddVBoxPage()\fP just above, with the difference that the first element is a list of strings. 
.PP
These strings are used to form a path of folders down to the given page. The initial elements are names for the folders, while the last element is the name of the page. Note: This does yet only work for the \fCTreeList\fP face. Later this may be added for the \fCIconList\fP face too. In other faces than the \fCTreeList\fP, all the strings except the last one is ignored. 
.PP
Definition at line 1315 of file kdialogbase.cpp.
.PP
References KJanusWidget::addVBoxPage().
.SS "\fBQHBox\fP * KDialogBase::addHBoxPage (const \fBQString\fP & itemName, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)"
.PP
Add a page to the dialog when the class is used in \fCTreeList\fP, \fCIconList\fP or \fCTabbed\fP mode. 
.PP
The returned widget must be used as the toplevel widget for this particular page. The widget contains a \fBQHBoxLayout\fP layout so the widget children are lined up horizontally. You can use it as follows:
.PP
\fBParameters:\fP
.RS 4
\fIitemName\fP String used in the list or as tab item name. 
.br
\fIheader\fP Header text use in the list modes. Ignored in Tabbed mode. If empty, the item text is used instead. 
.br
\fIpixmap\fP Used in IconList mode. You should prefer a pixmap with size 32x32 pixels.
.RE
.PP
\fBReturns:\fP
.RS 4
The page widget which must be used as the toplevel widget for the page. 
.RE
.PP

.PP
Definition at line 1322 of file kdialogbase.cpp.
.PP
References KJanusWidget::addHBoxPage().
.SS "\fBQHBox\fP * KDialogBase::addHBoxPage (const \fBQStringList\fP & items, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)"
.PP
This is like \fBaddHBoxPage()\fP just above, with the difference that the first element is a list of strings. 
.PP
These strings are used to form a path of folders down to the given page. The initial elements are names for the folders, while the last element is the name of the page. Note: This does yet only work for the \fCTreeList\fP face. Later this may be added for the \fCIconList\fP face too. In other faces than the \fCTreeList\fP, all the strings except the last one is ignored. 
.PP
Definition at line 1329 of file kdialogbase.cpp.
.PP
References KJanusWidget::addHBoxPage().
.SS "\fBQGrid\fP * KDialogBase::addGridPage (int n, Orientation dir, const \fBQString\fP & itemName, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)"
.PP
Add a page to the dialog when the class is used in \fCTreeList\fP, \fCIconList\fP or \fCTabbed\fP mode. 
.PP
The returned widget must be used as the toplevel widget for this particular page. The widget contains a \fBQGridLayout\fP layout so the widget children are positioned in a grid.
.PP
\fBParameters:\fP
.RS 4
\fIn\fP Specifies the number of columns if \fCdir\fP is Qt::Horizontal or the number of rows if \fCdir\fP is Qt::Vertical. 
.br
\fIdir\fP Can be Qt::Horizontal or Qt::Vertical. 
.br
\fIitemName\fP String used in the list or as tab item name. 
.br
\fIheader\fP Header text use in the list modes \fCIgnored\fP in \fCTabbed\fP mode. If empty, the item text is used instead. 
.br
\fIpixmap\fP Used in \fCIconList\fP mode. You should prefer a pixmap with size 32x32 pixels.
.RE
.PP
\fBReturns:\fP
.RS 4
The page widget which must be used as the toplevel widget for the page. 
.RE
.PP

.PP
Definition at line 1337 of file kdialogbase.cpp.
.PP
References KJanusWidget::addGridPage().
.SS "\fBQGrid\fP * KDialogBase::addGridPage (int n, Orientation dir, const \fBQStringList\fP & items, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)"
.PP
This is like \fBaddGridPage()\fP just above, with the difference that the first element is a list of strings. 
.PP
These strings are used to form a path of folders down to the given page. The initial elements are names for the folders, while the last element is the name of the page. Note: This does yet only work for the \fCTreeList\fP face. Later this may be added for the \fCIconList\fP face too. In other faces than the \fCTreeList\fP, all the strings except the last one is ignored. 
.PP
Definition at line 1344 of file kdialogbase.cpp.
.PP
References KJanusWidget::addGridPage().
.SS "void KDialogBase::setFolderIcon (const \fBQStringList\fP & path, const \fBQPixmap\fP & pixmap)"
.PP
Sets the icon used in \fCTreeList\fP Mode for the given path. 
.PP
\fBParameters:\fP
.RS 4
\fIpath\fP The path for which this icon should be shown. 
.br
\fIpixmap\fP The icon used. 
.RE
.PP

.PP
Definition at line 1351 of file kdialogbase.cpp.
.PP
References KJanusWidget::setFolderIcon().
.SS "\fBQFrame\fP * KDialogBase::makeMainWidget ()"
.PP
Make a main widget. 
.PP
The function will make a \fBQFrame\fP widget and use \fBsetMainWidget()\fP to register it. You can \fInot\fP use this function more than once, \fInot\fP if you have already defined a main widget with \fBsetMainWidget()\fP and \fInot\fP if you have used the constructor where you define the face (\fCPlain\fP, \fCSwallow\fP, \fCTabbed\fP, \fCTreeList\fP).
.PP
\fBReturns:\fP
.RS 4
The main widget or 0 if any of the rules described above were broken. 
.RE
.PP

.PP
Definition at line 1359 of file kdialogbase.cpp.
.PP
References mainWidget(), and setMainWidget().
.SS "\fBQVBox\fP * KDialogBase::makeVBoxMainWidget ()"
.PP
Make a main widget. 
.PP
The function will make a \fBQVBox\fP widget and use \fBsetMainWidget()\fP to register it. You \fIcan\fP use this function more than once, but \fInot\fP if you have already defined a main widget with \fBsetMainWidget()\fP and \fInot\fP if you have used the constructor where you define the face (\fCPlain\fP, \fCSwallow\fP, \fCTabbed\fP, \fCTreeList\fP, \fCIconList\fP).
.PP
\fBReturns:\fP
.RS 4
The main widget or 0 if any of the rules described above were broken. 
.RE
.PP

.PP
Definition at line 1373 of file kdialogbase.cpp.
.PP
References mainWidget(), setMainWidget(), and KDialog::spacingHint().
.SS "\fBQHBox\fP * KDialogBase::makeHBoxMainWidget ()"
.PP
Make a main widget. 
.PP
The function will make a \fBQHBox\fP widget and use \fBsetMainWidget()\fP to register it. You can \fInot\fP use this function more than once, \fInot\fP if you have already defined a main widget with \fBsetMainWidget()\fP and \fCnot\fP if you have used the constructor where you define the face (\fCPlain\fP, \fCSwallow\fP, \fCTabbed\fP, \fCTreeList\fP, \fCIconList\fP).
.PP
\fBReturns:\fP
.RS 4
The main widget or 0 if any of the rules described above were broken. 
.RE
.PP

.PP
Definition at line 1388 of file kdialogbase.cpp.
.PP
References mainWidget(), setMainWidget(), QHBox::setSpacing(), and KDialog::spacingHint().
.SS "\fBQGrid\fP * KDialogBase::makeGridMainWidget (int n, Orientation dir)"
.PP
Make a main widget. 
.PP
The function will make a \fBQGrid\fP widget and use \fBsetMainWidget()\fP to register it. You can \fInot\fP use this function more than once, \fInot\fP if you have already defined a main widget with setMainWidget and \fInot\fP if you have used the constructor where you define the face (Plain, Swallow, Tabbed, TreeList, IconList).
.PP
\fBParameters:\fP
.RS 4
\fIn\fP Specifies the number of columns if 'dir' is Qt::Horizontal or the number of rows if 'dir' is Qt::Vertical. 
.br
\fIdir\fP Can be Qt::Horizontal or Qt::Vertical.
.RE
.PP
\fBReturns:\fP
.RS 4
The main widget or 0 if any of the rules described above were broken. 
.RE
.PP

.PP
Definition at line 1403 of file kdialogbase.cpp.
.PP
References mainWidget(), setMainWidget(), QGrid::setSpacing(), and KDialog::spacingHint().
.SS "void KDialogBase::enableButtonSeparator (bool state)"
.PP
Hide or display the a separator line drawn between the action buttons an the main widget. 
.PP
Definition at line 389 of file kdialogbase.cpp.
.PP
References KSeparator::setOrientation().
.PP
Referenced by KDialogBase().
.SS "void KDialogBase::showButton (\fBButtonCode\fP id, bool state)"
.PP
Hide or display a general action button. 
.PP
Only buttons that have been created in the constructor can be displayed. This method will not create a new button.
.PP
\fBParameters:\fP
.RS 4
\fIid\fP Button identifier. 
.br
\fIstate\fP true display the button(s). 
.RE
.PP

.PP
Definition at line 866 of file kdialogbase.cpp.
.PP
References actionButton().
.PP
Referenced by KProgressDialog::KProgressDialog(), showButtonApply(), showButtonCancel(), and showButtonOK().
.SS "void KDialogBase::showButtonOK (bool state)"
.PP
Hide or display the OK button. 
.PP
The OK button must have been created in the constructor to be displayed.
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP If \fCtrue\fP, display the button(s). 
.RE
.PP

.PP
Definition at line 876 of file kdialogbase.cpp.
.PP
References showButton().
.PP
Referenced by KBugReport::KBugReport().
.SS "void KDialogBase::showButtonApply (bool state)"
.PP
Hide or display the Apply button. 
.PP
The Apply button must have been created in the constructor to be displayed.
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP true display the button(s). 
.RE
.PP

.PP
Definition at line 882 of file kdialogbase.cpp.
.PP
References showButton().
.SS "void KDialogBase::showButtonCancel (bool state)"
.PP
Hide or display the Cancel button. 
.PP
The Cancel button must have been created in the constructor to be displayed.
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP \fCtrue\fP display the button(s). 
.RE
.PP

.PP
Definition at line 888 of file kdialogbase.cpp.
.PP
References showButton().
.PP
Referenced by KProgressDialog::showCancelButton().
.SS "bool KDialogBase::showPage (int index)"
.PP
Sets the page with \fCindex\fP to be displayed. 
.PP
This method will only work when the dialog is using the predefined shape of TreeList, IconList or Tabbed.
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP Index of the page to be shown. 
.RE
.PP
\fBReturns:\fP
.RS 4
\fCtrue\fP if the page is shown, \fCfalse\fP otherwise. 
.RE
.PP

.PP
Definition at line 1470 of file kdialogbase.cpp.
.PP
References KJanusWidget::showPage().
.SS "int KDialogBase::activePageIndex () const"
.PP
Returns the index of the active page. 
.PP
This method will only work when the dialog is using the predefined shape of Tabbed, TreeList or IconList.
.PP
\fBReturns:\fP
.RS 4
The page index or -1 if there is no active page. 
.RE
.PP

.PP
Definition at line 1476 of file kdialogbase.cpp.
.PP
References KJanusWidget::activePageIndex().
.SS "int KDialogBase::pageIndex (\fBQWidget\fP * widget) const"
.PP
Returns the index of a page created with \fBaddPage()\fP, \fBaddVBoxPage()\fP, \fBaddHBoxPage()\fP or \fBaddGridPage()\fP. 
.PP
You can can compare this index with the value returned from \fBactivePageIndex()\fP if you need to do some page specific actions in your code.
.PP
The returned index will never change so you can safely use this function once and save the value.
.PP
\fBParameters:\fP
.RS 4
\fIwidget\fP The widget returned by \fBaddPage()\fP, \fBaddVBoxPage()\fP, \fBaddHBoxPage()\fP or \fBaddGridPage()\fP.
.RE
.PP
\fBReturns:\fP
.RS 4
The index or -1 if the face is not Tabbed, TreeList or IconList 
.RE
.PP

.PP
Definition at line 1482 of file kdialogbase.cpp.
.PP
References KJanusWidget::pageIndex().
.SS "void KDialogBase::setMainWidget (\fBQWidget\fP * widget)"
.PP
Sets the main user definable widget. 
.PP
If the dialog is using the predefined Swallow mode, the widget will be reparented to the internal swallow control widget. If the dialog is being used in the standard mode then the \fCwidget\fP must have the dialog as parent.
.PP
\fBParameters:\fP
.RS 4
\fIwidget\fP The widget to be displayed as main widget. If it is 0, then the dialog will show an empty space of 100x100 pixels instead. 
.RE
.PP

.PP
Definition at line 1431 of file kdialogbase.cpp.
.PP
References QFocusData::last(), and KJanusWidget::setSwallowedWidget().
.PP
Referenced by KHelpMenu::aboutApplication(), KAboutDialog::KAboutDialog(), KColorDialog::KColorDialog(), KFontDialog::KFontDialog(), KKeyDialog::KKeyDialog(), KPixmapRegionSelectorDialog::KPixmapRegionSelectorDialog(), makeGridMainWidget(), makeHBoxMainWidget(), makeMainWidget(), and makeVBoxMainWidget().
.SS "\fBQWidget\fP * KDialogBase::mainWidget ()"
.PP
Returns the main widget if any. 
.PP
\fBReturns:\fP
.RS 4
The current main widget. Can be 0 if no widget has been defined. 
.RE
.PP

.PP
Definition at line 1464 of file kdialogbase.cpp.
.PP
Referenced by makeGridMainWidget(), makeHBoxMainWidget(), makeMainWidget(), makeVBoxMainWidget(), and KColorDialog::setDefaultColor().
.SS "void KDialogBase::disableResize ()"
.PP
Convenience method. 
.PP
Freezes the dialog size using the minimum size of the dialog. This method should only be called right before \fBshow()\fP or \fBexec()\fP. 
.PP
Definition at line 531 of file kdialogbase.cpp.
.PP
Referenced by KHelpMenu::aboutApplication(), KColorDialog::KColorDialog(), and KColorDialog::setDefaultColor().
.SS "void KDialogBase::setInitialSize (const \fBQSize\fP & s, bool noResize = \fCfalse\fP)"
.PP
Convenience method. 
.PP
Sets the initial dialog size.
.PP
This method should only be called right before \fBshow()\fP or \fBexec()\fP. The initial size will be ignored if smaller than the dialog's minimum size.
.PP
\fBParameters:\fP
.RS 4
\fIs\fP Startup size. 
.br
\fInoResize\fP If \fCtrue\fP the dialog cannot be resized. 
.RE
.PP

.PP
Definition at line 537 of file kdialogbase.cpp.
.PP
References adjustSize().
.SS "void KDialogBase::incInitialSize (const \fBQSize\fP & s, bool noResize = \fCfalse\fP)"
.PP
Convenience method. 
.PP
Add a size to the default minimum size of a dialog.
.PP
This method should only be called right before \fBshow()\fP or \fBexec()\fP.
.PP
\fBParameters:\fP
.RS 4
\fIs\fP Size added to minimum size. 
.br
\fInoResize\fP If \fCtrue\fP the dialog cannot be resized. 
.RE
.PP

.PP
Definition at line 545 of file kdialogbase.cpp.
.PP
References adjustSize().
.SS "\fBQSize\fP KDialogBase::configDialogSize (const \fBQString\fP & groupName) const"
.PP
read the dialogs size from the configuration according to the screen size. 
.PP
If no size is saved for one dimension of the screen, sizeHint() is returned.
.PP
\fBParameters:\fP
.RS 4
\fIgroupName\fP Name of the group to read from. The old group of \fBKGlobal::config\fP is preserved. 
.RE
.PP

.PP
Definition at line 1741 of file kdialogbase.cpp.
.SS "\fBQSize\fP KDialogBase::configDialogSize (\fBKConfig\fP & config, const \fBQString\fP & groupName) const"
.PP
read the dialogs size from the configuration according to the screen size. 
.PP
If no size is saved for one dimension of the screen, sizeHint() is returned.
.PP
\fBParameters:\fP
.RS 4
\fIconfig\fP The \fBKConfig\fP object to read from 
.br
\fIgroupName\fP Name of the group to read from. The old group of \fBKGlobal::config\fP is preserved. 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 1747 of file kdialogbase.cpp.
.PP
References QApplication::desktop(), QRect::height(), QSize::height(), QRect::width(), and QSize::width().
.SS "void KDialogBase::saveDialogSize (const \fBQString\fP & groupName, bool global = \fCfalse\fP)"
.PP
save the dialogs size dependant on the screen dimension either to the global or application config file. 
.PP
\fBParameters:\fP
.RS 4
\fIgroupName\fP The group to which the dialogs size is saved. See configDialogSize to read the size. 
.br
\fIglobal\fP Set to true if the entry should go to the global config rather than to the applications config. Default is false. 
.RE
.PP

.PP
Definition at line 1765 of file kdialogbase.cpp.
.SS "void KDialogBase::saveDialogSize (\fBKConfig\fP & config, const \fBQString\fP & groupName, bool global = \fCfalse\fP) const"
.PP
save the dialogs size dependant on the screen dimension. 
.PP
\fBParameters:\fP
.RS 4
\fIconfig\fP The \fBKConfig\fP object to write to. 
.br
\fIgroupName\fP The group to which the dialogs size is saved. See configDialogSize to read the size. 
.br
\fIglobal\fP Set to true if the entry should go to the global config. Default is false. 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 1771 of file kdialogbase.cpp.
.PP
References QApplication::desktop(), QSize::height(), QRect::height(), QString::number(), QSize::width(), and QRect::width().
.SS "void KDialogBase::setButtonOK (const \fBKGuiItem\fP & item = \fCKStdGuiItem::ok()\fP)"
.PP
Sets the appearance of the OK button. 
.PP
If the default parameters are used (that is, if no \fBKGuiItem\fP is given) KStdGuiItem::ok() is used.
.PP
\fBParameters:\fP
.RS 4
\fIitem\fP \fBKGuiItem\fP. 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 916 of file kdialogbase.cpp.
.PP
References setButtonGuiItem().
.PP
Referenced by KBugReport::KBugReport().
.SS "void KDialogBase::setButtonOKText (const \fBQString\fP & text = \fCQString::null\fP, const \fBQString\fP & tooltip = \fCQString::null\fP, const \fBQString\fP & quickhelp = \fCQString::null\fP)"
.PP
\fBDeprecated\fP
.RS 4
. Use setButtonOk() instead. 
.RE
.PP
Sets the text of the OK button.
.PP
If the default parameters are used (that is, if no parameters are given) the standard texts are set: The button shows 'OK', the tooltip contains 'Accept settings.' (internationalized) and the quickhelp text explains the standard behavior of the OK button in settings dialogs.
.PP
\fBParameters:\fP
.RS 4
\fItext\fP Button text. 
.br
\fItooltip\fP Tooltip text. 
.br
\fIquickhelp\fP Quick help text. 
.RE
.PP

.PP
Definition at line 894 of file kdialogbase.cpp.
.PP
References actionButton(), QWhatsThis::add(), QToolTip::add(), QPushButton::setText(), and KDialog::spacingHint().
.SS "void KDialogBase::setButtonApply (const \fBKGuiItem\fP & item = \fCKStdGuiItem::apply()\fP)"
.PP
Sets the appearance of the Apply button. 
.PP
If the default parameters are used (that is, if no \fBKGuiItem\fP is given) KStdGuiItem::apply() is used.
.PP
\fBParameters:\fP
.RS 4
\fIitem\fP \fBKGuiItem\fP. 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 946 of file kdialogbase.cpp.
.PP
References setButtonGuiItem().
.SS "void KDialogBase::setButtonApplyText (const \fBQString\fP & text = \fCQString::null\fP, const \fBQString\fP & tooltip = \fCQString::null\fP, const \fBQString\fP & quickhelp = \fCQString::null\fP)"
.PP
\fBDeprecated\fP
.RS 4
. Use \fBsetButtonApply()\fP instead. 
.RE
.PP
Sets the text of the Apply button.
.PP
If the default parameters are used (that is, if no parameters are given) the standard texts are set: The button shows 'Apply', the tooltip contains 'Apply settings.' (internationalized) and the quickhelp text explains the standard behavior of the apply button in settings dialogs.
.PP
\fBParameters:\fP
.RS 4
\fItext\fP Button text. 
.br
\fItooltip\fP Tooltip text. 
.br
\fIquickhelp\fP Quick help text. 
.RE
.PP

.PP
Definition at line 922 of file kdialogbase.cpp.
.PP
References actionButton(), QWhatsThis::add(), QToolTip::add(), QPushButton::setText(), and KDialog::spacingHint().
.SS "void KDialogBase::setButtonCancel (const \fBKGuiItem\fP & item = \fCKStdGuiItem::cancel()\fP)"
.PP
Sets the appearance of the Cancel button. 
.PP
If the default parameters are used (that is, if no \fBKGuiItem\fP is given) KStdGuiItem::cancel() is used.
.PP
\fBParameters:\fP
.RS 4
\fIitem\fP \fBKGuiItem\fP. 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 970 of file kdialogbase.cpp.
.PP
References setButtonGuiItem().
.PP
Referenced by KBugReport::KBugReport(), KDialogBase(), and KProgressDialog::setButtonText().
.SS "void KDialogBase::setButtonCancelText (const \fBQString\fP & text = \fCQString::null\fP, const \fBQString\fP & tooltip = \fCQString::null\fP, const \fBQString\fP & quickhelp = \fCQString::null\fP)"
.PP
\fBDeprecated\fP
.RS 4
. Use \fBsetButtonCancel()\fP instead. 
.RE
.PP
Sets the text of the Cancel button.
.PP
If the default parameters are used (that is, if no parameters are given) the standard texts are set: The button shows 'Cancel', everything else will not be set.
.PP
\fBParameters:\fP
.RS 4
\fItext\fP Button text. 
.br
\fItooltip\fP Tooltip text. 
.br
\fIquickhelp\fP Quick help text. 
.RE
.PP

.PP
Definition at line 952 of file kdialogbase.cpp.
.PP
References actionButton(), QWhatsThis::add(), QToolTip::add(), QPushButton::setText(), and KDialog::spacingHint().
.SS "void KDialogBase::setButtonText (\fBButtonCode\fP id, const \fBQString\fP & text)"
.PP
Sets the text of any button. 
.PP
\fBParameters:\fP
.RS 4
\fIid\fP The button identifier. 
.br
\fItext\fP Button text. 
.RE
.PP

.PP
Definition at line 986 of file kdialogbase.cpp.
.PP
References actionButton(), setDetails(), QPushButton::setText(), and KDialog::spacingHint().
.PP
Referenced by setDetails().
.SS "void KDialogBase::setButtonTip (\fBButtonCode\fP id, const \fBQString\fP & text)"
.PP
Sets the tooltip text of any button. 
.PP
\fBParameters:\fP
.RS 4
\fIid\fP The button identifier. 
.br
\fItext\fP Button text. 
.RE
.PP

.PP
Definition at line 1003 of file kdialogbase.cpp.
.PP
References actionButton(), QToolTip::add(), and QToolTip::remove().
.SS "void KDialogBase::setButtonWhatsThis (\fBButtonCode\fP id, const \fBQString\fP & text)"
.PP
Sets the 'What's this?' text of any button. 
.PP
\fBParameters:\fP
.RS 4
\fIid\fP The button identifier. 
.br
\fItext\fP Button text. 
.RE
.PP

.PP
Definition at line 1016 of file kdialogbase.cpp.
.PP
References actionButton(), QWhatsThis::add(), and QWhatsThis::remove().
.SS "void KDialogBase::setButtonGuiItem (\fBButtonCode\fP id, const \fBKGuiItem\fP & item)"
.PP
Sets the \fBKGuiItem\fP directly for the button instead of using 3 methods to set the text, tooltip and whatsthis strings. 
.PP
This also allows to set an icon for the button which is otherwise not possible for the extra buttons beside Ok, Cancel and Apply.
.PP
\fBParameters:\fP
.RS 4
\fIid\fP The button identifier. 
.br
\fIitem\fP The \fBKGuiItem\fP for the button.
.RE
.PP
\fBSince:\fP
.RS 4
3.3 
.RE
.PP

.PP
Definition at line 975 of file kdialogbase.cpp.
.PP
References actionButton(), KPushButton::setGuiItem(), and KDialog::spacingHint().
.PP
Referenced by setButtonApply(), setButtonCancel(), and setButtonOK().
.SS "void KDialogBase::setTreeListAutoResize (bool state)"
.PP
This function has only effect in TreeList mode. 
.PP
Defines how the tree list widget is resized when the dialog is resized horizontally. By default the tree list keeps its width when the dialog becomes wider.
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP The resize mode. If false (default) the tree list keeps its current width when the dialog becomes wider. 
.RE
.PP

.PP
Definition at line 1037 of file kdialogbase.cpp.
.PP
References KJanusWidget::setTreeListAutoResize().
.SS "void KDialogBase::setShowIconsInTreeList (bool state)"
.PP
This function has only effect in TreeList mode. 
.PP
This tells the widgets whether the icons given in the addPage, addVBoxPage, addHBoxPage, or addGridPage methods should be shown in the TreeList.
.PP
Note: This method must be called before calling any of the methods which add icons to the page.
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP If true the icons are shown. 
.RE
.PP

.PP
Definition at line 1045 of file kdialogbase.cpp.
.PP
References KJanusWidget::setShowIconsInTreeList().
.SS "void KDialogBase::setRootIsDecorated (bool state)"
.PP
This function has only effect in TreeList mode. 
.PP
This tells the widgets whether the root should be decorated. For details see \fBQListView::setRootIsDecorated\fP
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP Root will be decorated if true. 
.RE
.PP

.PP
Definition at line 1053 of file kdialogbase.cpp.
.PP
References KJanusWidget::setRootIsDecorated().
.SS "void KDialogBase::unfoldTreeList (bool persist = \fCfalse\fP)"
.PP
This function has only effect in TreeList mode. 
.PP
This tells the TreeList to unfold the whole tree so that all entries are visible.
.PP
If the list is empty when you call this method newly created entries will not automatically be opened. If the \fCpersist\fP flag is set opened entries cannot be closed again, though.
.PP
\fBParameters:\fP
.RS 4
\fIpersist\fP If true the tree always stays unfolded. 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 1061 of file kdialogbase.cpp.
.PP
References KJanusWidget::unfoldTreeList().
.SS "void KDialogBase::addWidgetBelowList (\fBQWidget\fP * widget)"
.PP
Add a widget at the bottom of the TreeList/IconList. 
.PP
\fBParameters:\fP
.RS 4
\fIwidget\fP The widget to be added. It will be reparented into the \fBKJanusWidget\fP, therefor it will be deleted with the \fBKJanusWidget\fP, too. To be on the save side just don't keep the pointer to this widget. 
.RE
.PP

.PP
Definition at line 1067 of file kdialogbase.cpp.
.PP
References KJanusWidget::addWidgetBelowList().
.SS "void KDialogBase::addButtonBelowList (const \fBQString\fP & text, \fBQObject\fP * recv, const char * slot)"
.PP
Add a button at the bottom of the TreeList/IconList. 
.PP
\fBParameters:\fP
.RS 4
\fItext\fP The text on the PushButton. 
.br
\fIrecv\fP The object that is to receive the signal when the button is clicked. 
.br
\fIslot\fP The slot to connect to the clicked signal of the button.
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 1073 of file kdialogbase.cpp.
.PP
References KJanusWidget::addButtonBelowList().
.SS "void KDialogBase::addButtonBelowList (const \fBKGuiItem\fP & guiitem, \fBQObject\fP * recv, const char * slot)"
.PP
The same as the above function, but with a \fBKGuiItem\fP providing the text and icon for the button at the bottom of the TreeList/IconList. 
.PP
\fBParameters:\fP
.RS 4
\fIguiitem\fP The text and icon on the PushButton. 
.br
\fIrecv\fP The object that is to receive the signal when the button is clicked. 
.br
\fIslot\fP The slot to connect to the clicked signal of the button.
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 1079 of file kdialogbase.cpp.
.PP
References KJanusWidget::addButtonBelowList().
.SS "void KDialogBase::setIconListAllVisible (bool state)"
.PP
This function has only effect in IconList mode. 
.PP
Defines how the icon list widget is displayed. By default it is the widgets in the dialog pages that decide the minimum height of the dialog. A vertical scrollbar can be used in the icon list area.
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP The visibility mode. If true, the minimum height is adjusted so that every icon in the list is visible at the same time. The vertical scrollbar will never be visible. 
.RE
.PP

.PP
Definition at line 1085 of file kdialogbase.cpp.
.PP
References KJanusWidget::setIconListAllVisible().
.SS "bool KDialogBase::haveBackgroundTile ()\fC [static]\fP"
.PP
Check whether the background tile is set or not. 
.PP
\fBReturns:\fP
.RS 4
\fCtrue\fP if there is defined a background tile. 
.RE
.PP

.PP
Definition at line 1662 of file kdialogbase.cpp.
.PP
References KDialogBaseTile::get().
.SS "const \fBQPixmap\fP * KDialogBase::backgroundTile ()\fC [static]\fP"
.PP
Returns a pointer to the background tile if there is one. 
.PP
\fBReturns:\fP
.RS 4
The tile pointer or 0 if no tile is defined. 
.RE
.PP

.PP
Definition at line 1670 of file kdialogbase.cpp.
.PP
References KDialogBaseTile::get().
.PP
Referenced by getBackgroundTile().
.SS "const \fBQPixmap\fP * KDialogBase::getBackgroundTile ()\fC [static]\fP"
.PP
\fBDeprecated\fP
.RS 4
Use \fBbackgroundTile()\fP instead. 
.RE
.PP

.PP
Definition at line 1668 of file kdialogbase.cpp.
.PP
References backgroundTile().
.SS "void KDialogBase::setBackgroundTile (const \fBQPixmap\fP * pix)\fC [static]\fP"
.PP
Sets the background tile. 
.PP
If it is Null (0), the background image is deleted.
.PP
\fBParameters:\fP
.RS 4
\fIpix\fP The background tile. 
.RE
.PP

.PP
Definition at line 1676 of file kdialogbase.cpp.
.PP
References KDialogBaseTile::set().
.SS "void KDialogBase::showTile (bool state)"
.PP
Enable hiding of the background tile (if any). 
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP \fCtrue\fP will make the tile visible. 
.RE
.PP

.PP
Definition at line 1711 of file kdialogbase.cpp.
.PP
References KDialogBaseTile::get().
.PP
Referenced by updateBackground().
.SS "void KDialogBase::getBorderWidths (int & ulx, int & uly, int & lrx, int & lry) const"
.PP
\fBDeprecated\fP
.RS 4
Do not use this method. It is included for compatibility reasons. 
.RE
.PP
This method returns the border widths in all directions the dialog needs for itself. Respect this, or get bad looking results. The references are upper left x (\fCulx\fP), upper left y (\fCuly\fP), lower right x (\fClrx\fP), and lower left y (\fClly\fP). The results are differences in pixels from the dialogs corners. 
.PP
Definition at line 1510 of file kdialogbase.cpp.
.PP
References KDialog::marginHint().
.PP
Referenced by calculateSize().
.SS "\fBQRect\fP KDialogBase::getContentsRect () const"
.PP
\fBDeprecated\fP
.RS 4
Do not use this method. It is included for compatibility reasons. 
.RE
.PP
This method returns the contents rectangle of the work area. Place your widgets inside this rectangle, and use it to set up their geometry. Be careful: The rectangle is only valid after resizing the dialog, as it is a result of the resizing process. If you need the 'overhead' the dialog needs for its elements, use \fBgetBorderWidths()\fP. 
.PP
Definition at line 1489 of file kdialogbase.cpp.
.PP
References KDialog::marginHint(), QRect::setBottom(), QRect::setLeft(), QRect::setRight(), and QRect::setTop().
.SS "\fBQSize\fP KDialogBase::calculateSize (int w, int h) const"
.PP
Calculate the size hint for the dialog. 
.PP
With this method it is easy to calculate a size hint for a dialog derived from KDialogBase if you know the width and height of the elements you add to the widget. The rectangle returned is calculated so that all elements exactly fit into it. Thus, you may set it as a minimum size for the resulting dialog.
.PP
You should not need to use this method and never if you use one of the predefined shapes.
.PP
\fBParameters:\fP
.RS 4
\fIw\fP The width of you special widget. 
.br
\fIh\fP The height of you special widget. 
.RE
.PP
\fBReturns:\fP
.RS 4
The minimum width and height of the dialog using \fCw\fP and \fCh\fP as the size of the main widget. 
.RE
.PP

.PP
Definition at line 1528 of file kdialogbase.cpp.
.PP
References getBorderWidths().
.SS "\fBQString\fP KDialogBase::helpLinkText () const"
.PP
Returns the help link text. 
.PP
If no text has been defined, 'Get help...' (internationalized) is returned.
.PP
\fBReturns:\fP
.RS 4
The help link text. 
.RE
.PP

.PP
Definition at line 1536 of file kdialogbase.cpp.
.PP
References QString::isNull().
.PP
Referenced by enableLinkedHelp(), and setHelpLinkText().
.SS "\fBQPushButton\fP * KDialogBase::actionButton (\fBButtonCode\fP id)"
.PP
Returns the action button that corresponds to the \fCid\fP. 
.PP
Normally you should not use this function. \fINever\fP delete the object returned by this function. See also \fBenableButton()\fP, \fBshowButton()\fP, \fBsetButtonTip()\fP, \fBsetButtonWhatsThis()\fP, and \fBsetButtonText()\fP.
.PP
\fBParameters:\fP
.RS 4
\fIid\fP Integer identifier of the button. 
.RE
.PP
\fBReturns:\fP
.RS 4
The action button or 0 if the button does not exists.
.RE
.PP
FIXME \fBKDE\fP 4: Return the actual \fBKPushButton\fP instead of \fBQPushButton\fP (Martijn) 
.PP
Definition at line 832 of file kdialogbase.cpp.
.PP
Referenced by closeEvent(), enableButton(), keyPressEvent(), KProgressDialog::KProgressDialog(), setButtonApplyText(), setButtonCancelText(), setButtonGuiItem(), setButtonOKText(), setButtonText(), setButtonTip(), setButtonWhatsThis(), and showButton().
.SS "void KDialogBase::enableButton (\fBButtonCode\fP id, bool state)\fC [slot]\fP"
.PP
Enable or disable (gray out) a general action button. 
.PP
\fBParameters:\fP
.RS 4
\fIid\fP Button identifier. 
.br
\fIstate\fP \fCtrue\fP enables the button(s). 
.RE
.PP

.PP
Definition at line 838 of file kdialogbase.cpp.
.PP
References actionButton().
.PP
Referenced by enableButtonApply(), enableButtonCancel(), enableButtonOK(), KConfigDialog::KConfigDialog(), KKeyDialog::KKeyDialog(), KLineEditDlg::KLineEditDlg(), KConfigDialog::show(), KLineEditDlg::slotTextChanged(), and KConfigDialog::updateButtons().
.SS "void KDialogBase::enableButtonOK (bool state)\fC [slot]\fP"
.PP
Enable or disable (gray out) the OK button. 
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP \fCtrue\fP enables the button. 
.RE
.PP

.PP
Definition at line 848 of file kdialogbase.cpp.
.PP
References enableButton().
.PP
Referenced by KEditToolbar::acceptOK(), KLineEditDlg::KLineEditDlg(), and KLineEditDlg::slotTextChanged().
.SS "void KDialogBase::enableButtonApply (bool state)\fC [slot]\fP"
.PP
Enable or disable (gray out) the Apply button. 
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP true enables the button. 
.RE
.PP

.PP
Definition at line 854 of file kdialogbase.cpp.
.PP
References enableButton().
.PP
Referenced by KEditToolbar::slotApply().
.SS "void KDialogBase::enableButtonCancel (bool state)\fC [slot]\fP"
.PP
Enable or disable (gray out) the Cancel button. 
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP true enables the button. 
.RE
.PP

.PP
Definition at line 860 of file kdialogbase.cpp.
.PP
References enableButton().
.SS "void KDialogBase::enableLinkedHelp (bool state)\fC [slot]\fP"
.PP
Display or hide the help link area on the top of the dialog. 
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP \fCtrue\fP will display the area. 
.RE
.PP

.PP
Definition at line 1241 of file kdialogbase.cpp.
.PP
References KDialogBaseTile::get(), helpClickedSlot(), helpLinkText(), KDialog::marginHint(), KURLLabel::setFloat(), QLabel::setText(), and KURLLabel::setUnderline().
.PP
Referenced by setButtonBoxOrientation().
.SS "void KDialogBase::delayedDestruct ()\fC [slot]\fP"
.PP
Destruct the Dialog delayed. 
.PP
You can call this function from slots like \fBcloseClicked()\fP and \fBhidden()\fP. You should not use the dialog any more after calling this function. 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 280 of file kdialogbase.cpp.
.PP
References QTimer::singleShot(), and slotDelayedDestruct().
.SS "void KDialogBase::setHelpLinkText (const \fBQString\fP & text)\fC [slot]\fP"
.PP
Sets the text that is shown as the linked text. 
.PP
If text is empty, the text 'Get help...' (internationalized) is used instead.
.PP
\fBParameters:\fP
.RS 4
\fItext\fP The link text. 
.RE
.PP

.PP
Definition at line 1286 of file kdialogbase.cpp.
.PP
References helpLinkText(), and QLabel::setText().
.SS "void KDialogBase::setHelp (const \fBQString\fP & anchor, const \fBQString\fP & appname = \fCQString::null\fP)\fC [slot]\fP"
.PP
Sets the help path and topic. 
.PP
\fBParameters:\fP
.RS 4
\fIanchor\fP Defined anchor in your docbook sources 
.br
\fIappname\fP Defines the appname the help belongs to If empty it's the current one
.RE
.PP
\fBNote:\fP
.RS 4
The help button works differently for the class \fBKCMultiDialog\fP, so it does not make sense to call this function for Dialogs of that type. See \fBKCMultiDialog::slotHelp()\fP for more information. 
.RE
.PP

.PP
Definition at line 1279 of file kdialogbase.cpp.
.PP
Referenced by KAboutKDE::KAboutKDE(), and KColorDialog::KColorDialog().
.SS "void KDialogBase::helpClickedSlot (const \fBQString\fP &)\fC [slot]\fP"
.PP
Connected to help link label. 
.PP
Definition at line 1229 of file kdialogbase.cpp.
.PP
References slotHelp().
.PP
Referenced by enableLinkedHelp().
.SS "void KDialogBase::setDetails (bool showDetails)\fC [slot]\fP"
.PP
Sets the status of the Details button. 
.PP
Definition at line 1127 of file kdialogbase.cpp.
.PP
References aboutToShowDetails(), adjustSize(), QWidget::hide(), setButtonText(), QWidget::setEnabled(), and QWidget::show().
.PP
Referenced by setButtonText(), setDetailsWidget(), and slotDetails().
.SS "void KDialogBase::setDetailsWidget (\fBQWidget\fP * detailsWidget)\fC [slot]\fP"
.PP
Sets the widget that gets shown when 'Details' is enabled. 
.PP
The dialog takes over ownership of the widget. Any previously set widget gets deleted. 
.PP
Definition at line 1112 of file kdialogbase.cpp.
.PP
References QWidget::hide(), QWidget::reparent(), and setDetails().
.SS "void KDialogBase::updateBackground ()\fC [slot]\fP"
.PP
This method is called automatically whenever the background has changed. 
.PP
You do not need to use this method. 
.PP
Definition at line 1685 of file kdialogbase.cpp.
.PP
References KDialogBaseTile::get(), and showTile().
.SS "void KDialogBase::cancel ()\fC [slot]\fP"
.PP
Force closing the dialog, setting its result code to the one Esc would set. 
.PP
You shouldn't use this, generally (let the user make his choice!) but it can be useful when you need to make a choice after a timeout has happened, or when the parent widget has to go somewhere else (e.g. html redirections). 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 1632 of file kdialogbase.cpp.
.PP
References slotCancel(), slotClose(), slotNo(), slotOk(), slotUser1(), slotUser2(), slotUser3(), and slotYes().
.PP
Referenced by KDialogBase().
.SS "void KDialogBase::helpClicked ()\fC [signal]\fP"
.PP
The Help button was pressed. 
.PP
This signal is only emitted if \fBslotHelp()\fP is not replaced. 
.PP
Referenced by slotHelp().
.SS "void KDialogBase::defaultClicked ()\fC [signal]\fP"
.PP
The Default button was pressed. 
.PP
This signal is only emitted if \fBslotDefault()\fP is not replaced. 
.PP
Referenced by KConfigDialog::KConfigDialog(), KKeyDialog::KKeyDialog(), and slotDefault().
.SS "void KDialogBase::user3Clicked ()\fC [signal]\fP"
.PP
The User3 button was pressed. 
.PP
This signal is only emitted if \fBslotUser3()\fP is not replaced. 
.PP
Referenced by slotUser3().
.SS "void KDialogBase::user2Clicked ()\fC [signal]\fP"
.PP
The User2 button was pressed. 
.PP
This signal is only emitted if \fBslotUser2()\fP is not replaced. 
.PP
Referenced by slotUser2().
.SS "void KDialogBase::user1Clicked ()\fC [signal]\fP"
.PP
The User1 button was pressed. 
.PP
This signal is only emitted if \fBslotUser1()\fP is not replaced. 
.PP
Referenced by KLineEditDlg::KLineEditDlg(), and slotUser1().
.SS "void KDialogBase::applyClicked ()\fC [signal]\fP"
.PP
The Apply button was pressed. 
.PP
This signal is only emitted if \fBslotApply()\fP is not replaced. 
.PP
Referenced by KConfigDialog::KConfigDialog(), and slotApply().
.SS "void KDialogBase::tryClicked ()\fC [signal]\fP"
.PP
The Try button was pressed. 
.PP
This signal is only emitted if \fBslotTry()\fP is not replaced. 
.PP
Referenced by slotTry().
.SS "void KDialogBase::okClicked ()\fC [signal]\fP"
.PP
The OK button was pressed. 
.PP
This signal is only emitted if \fBslotOk()\fP is not replaced. 
.PP
Referenced by KColorDialog::KColorDialog(), KConfigDialog::KConfigDialog(), and slotOk().
.SS "void KDialogBase::yesClicked ()\fC [signal]\fP"
.PP
The Yes button was pressed. 
.PP
This signal is only emitted if \fBslotYes()\fP is not replaced. 
.PP
Referenced by slotYes().
.SS "void KDialogBase::noClicked ()\fC [signal]\fP"
.PP
The No button was pressed. 
.PP
This signal is only emitted if \fBslotNo()\fP is not replaced. 
.PP
Referenced by slotNo().
.SS "void KDialogBase::cancelClicked ()\fC [signal]\fP"
.PP
The Cancel button was pressed. 
.PP
This signal is only emitted if \fBslotCancel()\fP is not replaced. 
.PP
Referenced by slotCancel().
.SS "void KDialogBase::closeClicked ()\fC [signal]\fP"
.PP
The Close button was pressed. 
.PP
This signal is only emitted if \fBslotClose()\fP is not replaced. 
.PP
Referenced by KColorDialog::KColorDialog(), and slotClose().
.SS "void KDialogBase::apply ()\fC [signal]\fP"
.PP
Do not use this signal. 
.PP
Is is kept for compatibility reasons. 
.PP
\fBDeprecated\fP
.RS 4
Use \fBapplyClicked()\fP instead. 
.RE
.PP

.PP
Referenced by applyPressed().
.SS "void KDialogBase::backgroundChanged ()\fC [signal]\fP"
.PP
The background tile has changed. 
.PP
.SS "void KDialogBase::hidden ()\fC [signal]\fP"
.PP
The dialog is about to be hidden. 
.PP
A dialog is hidden after a user clicks a button that ends the dialog or when the user switches to another desktop or minimizes the dialog. 
.PP
Referenced by hideEvent().
.SS "void KDialogBase::finished ()\fC [signal]\fP"
.PP
The dialog has finished. 
.PP
A dialog emits finished after a user clicks a button that ends the dialog.
.PP
This signal is also emitted when you call hide()
.PP
If you have stored a pointer to the dialog do \fInot\fP try to delete the pointer in the slot that is connected to this signal.
.PP
You should use \fBdelayedDestruct()\fP instead. 
.PP
Referenced by hideEvent().
.SS "void KDialogBase::aboutToShowDetails ()\fC [signal]\fP"
.PP
The detailsWidget is about to get shown. 
.PP
This is your last chance to call setDetailsWidget if you haven't done so yet. 
.PP
Referenced by setDetails().
.SS "void KDialogBase::aboutToShowPage (\fBQWidget\fP * page)\fC [signal]\fP"
.PP
A page is about to be shown. 
.PP
This signal is only emitted for the TreeList and IconList faces. 
.PP
Referenced by KDialogBase().
.SS "void KDialogBase::keyPressEvent (\fBQKeyEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Maps some keys to the actions buttons. 
.PP
F1 is mapped to the Help button if present and Escape to the Cancel or Close if present. The button action event is animated. 
.PP
Reimplemented from \fBKDialog\fP.
.PP
Reimplemented in \fBKFileDialog\fP, and \fBKColorDialog\fP.
.PP
Definition at line 1553 of file kdialogbase.cpp.
.PP
References actionButton(), and QWhatsThis::enterWhatsThisMode().
.PP
Referenced by KColorDialog::keyPressEvent().
.SS "void KDialogBase::hideEvent (\fBQHideEvent\fP *)\fC [protected, virtual]\fP"
.PP
Emits the \fBhidden\fP signal. 
.PP
You can connect to that signal to detect when a dialog has been closed. 
.PP
Definition at line 1611 of file kdialogbase.cpp.
.PP
References finished(), and hidden().
.SS "void KDialogBase::closeEvent (\fBQCloseEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Detects when a dialog is being closed from the window manager controls. 
.PP
If the Cancel or Close button is present then the button is activated. Otherwise standard \fBQDialog\fP behavior will take place. 
.PP
Definition at line 1622 of file kdialogbase.cpp.
.PP
References actionButton().
.SS "void KDialogBase::slotHelp ()\fC [protected, virtual, slot]\fP"
.PP
Activated when the Help button has been clicked. 
.PP
If a help text has been defined, the help system will be activated. 
.PP
Reimplemented in \fBKCMultiDialog\fP.
.PP
Definition at line 1094 of file kdialogbase.cpp.
.PP
References helpClicked().
.PP
Referenced by helpClickedSlot().
.SS "void KDialogBase::slotDefault ()\fC [protected, virtual, slot]\fP"
.PP
Activated when the Default button has been clicked. 
.PP
Reimplemented in \fBKCMultiDialog\fP.
.PP
Definition at line 1102 of file kdialogbase.cpp.
.PP
References defaultClicked().
.SS "void KDialogBase::slotDetails ()\fC [protected, virtual, slot]\fP"
.PP
Activated when the Details button has been clicked. 
.PP
\fBSee also:\fP
.RS 4
detailsClicked(bool) 
.RE
.PP

.PP
Reimplemented in \fBKShortcutDialog\fP.
.PP
Definition at line 1107 of file kdialogbase.cpp.
.PP
References setDetails().
.SS "void KDialogBase::slotUser3 ()\fC [protected, virtual, slot]\fP"
.PP
Activated when the User3 button has been clicked. 
.PP
Definition at line 1183 of file kdialogbase.cpp.
.PP
References user3Clicked().
.PP
Referenced by cancel().
.SS "void KDialogBase::slotUser2 ()\fC [protected, virtual, slot]\fP"
.PP
Activated when the User2 button has been clicked. 
.PP
Definition at line 1189 of file kdialogbase.cpp.
.PP
References user2Clicked().
.PP
Referenced by cancel().
.SS "void KDialogBase::slotUser1 ()\fC [protected, virtual, slot]\fP"
.PP
Activated when the User1 button has been clicked. 
.PP
Reimplemented in \fBKCMultiDialog\fP.
.PP
Definition at line 1195 of file kdialogbase.cpp.
.PP
References user1Clicked().
.PP
Referenced by cancel().
.SS "void KDialogBase::slotOk ()\fC [protected, virtual, slot]\fP"
.PP
Activated when the Ok button has been clicked. 
.PP
The \fBQDialog::accept()\fP is activated. 
.PP
Reimplemented in \fBKFileDialog\fP, \fBKIconDialog\fP, \fBKPropertiesDialog\fP, \fBKCMultiDialog\fP, \fBKFindDialog\fP, \fBKReplaceDialog\fP, \fBKSettings::ComponentsDialog\fP, \fBKBugReport\fP, \fBKEditToolbar\fP, and \fBKPasswordDialog\fP.
.PP
Definition at line 1164 of file kdialogbase.cpp.
.PP
References QDialog::accept(), and okClicked().
.PP
Referenced by cancel(), and KInputDialog::getItem().
.SS "void KDialogBase::slotApply ()\fC [protected, virtual, slot]\fP"
.PP
Activated when the Apply button has been clicked. 
.PP
Reimplemented in \fBKCMultiDialog\fP, \fBKSettings::ComponentsDialog\fP, and \fBKEditToolbar\fP.
.PP
Definition at line 1171 of file kdialogbase.cpp.
.PP
References applyClicked().
.SS "void KDialogBase::slotTry ()\fC [protected, virtual, slot]\fP"
.PP
Activated when the Try button has been clicked. 
.PP
Definition at line 1177 of file kdialogbase.cpp.
.PP
References tryClicked().
.SS "void KDialogBase::slotYes ()\fC [protected, virtual, slot]\fP"
.PP
Activated when the Yes button has been clicked. 
.PP
The QDialog::done( Yes ) is activated. 
.PP
Definition at line 1201 of file kdialogbase.cpp.
.PP
References QDialog::done(), and yesClicked().
.PP
Referenced by cancel().
.SS "void KDialogBase::slotNo ()\fC [protected, virtual, slot]\fP"
.PP
Activated when the Yes button has been clicked. 
.PP
The QDialog::done( No ) is activated. 
.PP
Definition at line 1208 of file kdialogbase.cpp.
.PP
References QDialog::done(), and noClicked().
.PP
Referenced by cancel().
.SS "void KDialogBase::slotCancel ()\fC [protected, virtual, slot]\fP"
.PP
Activated when the Cancel button has been clicked. 
.PP
The \fBQDialog::reject()\fP is activated in regular mode and QDialog::done( Cancel ) when in message box mode. 
.PP
Reimplemented in \fBKFileDialog\fP, \fBKPropertiesDialog\fP, \fBKBugReport\fP, \fBKPasswordDialog\fP, and \fBKProgressDialog\fP.
.PP
Definition at line 1215 of file kdialogbase.cpp.
.PP
References cancelClicked(), and QDialog::done().
.PP
Referenced by cancel(), KProgressDialog::slotCancel(), KBugReport::slotCancel(), and KBugReport::slotUrlClicked().
.SS "void KDialogBase::slotClose ()\fC [protected, virtual, slot]\fP"
.PP
Activated when the Close button has been clicked. 
.PP
The \fBQDialog::reject()\fP is activated. 
.PP
Definition at line 1222 of file kdialogbase.cpp.
.PP
References closeClicked(), and QDialog::reject().
.PP
Referenced by cancel().
.SS "void KDialogBase::applyPressed ()\fC [protected, virtual, slot]\fP"
.PP
\fBDeprecated\fP
.RS 4
Do not use this slot. Is is kept for compatibility reasons. Activated when the Apply button has been clicked 
.RE
.PP

.PP
Definition at line 1235 of file kdialogbase.cpp.
.PP
References apply().
.SS "void KDialogBase::updateGeometry ()\fC [protected, slot]\fP"
.PP
Updates the margins and spacings. 
.PP
Definition at line 1542 of file kdialogbase.cpp.
.PP
References KDialog::marginHint(), QBoxLayout::setMargin(), QBoxLayout::setSpacing(), and KDialog::spacingHint().
.PP
Referenced by KDialogBase().
.SS "void KDialogBase::slotDelayedDestruct ()\fC [protected, slot]\fP"
.PP
Deletes the dialog immediately. 
.PP
If you want to delete the dialog delayed use \fBdelayedDestruct()\fP or \fBQObject::deleteLater()\fP.
.PP
Attention: Do no use connect this slot to signals from user actions! 
.PP
Definition at line 288 of file kdialogbase.cpp.
.PP
Referenced by delayedDestruct().

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