35 #include <QtGui/QDialog>
140 Default = 0x00000002,
149 Details = 0x00000400,
153 NoDefault = 0x00008000
156 Q_DECLARE_FLAGS(ButtonCodes, ButtonCode)
163 Q_DECLARE_FLAGS(ButtonPopupModes, ButtonPopupMode)
172 explicit
KDialog(
QWidget *parent = 0, Qt::WindowFlags flags = 0 );
192 void setButtons( ButtonCodes buttonMask );
204 void setButtonsOrientation( Qt::Orientation orientation );
216 void setEscapeButton( ButtonCode
id );
226 void setDefaultButton( ButtonCode
id );
232 ButtonCode defaultButton() const;
238 void showButtonSeparator(
bool state );
250 void showButton( ButtonCode
id,
bool state );
258 void setButtonText( ButtonCode
id, const
QString &text );
263 QString buttonText( ButtonCode
id ) const;
271 void setButtonIcon( ButtonCode
id, const
KIcon &icon );
276 KIcon buttonIcon( ButtonCode
id ) const;
284 void setButtonToolTip( ButtonCode
id, const
QString &text );
289 QString buttonToolTip( ButtonCode
id ) const;
297 void setButtonWhatsThis( ButtonCode
id, const
QString &text );
302 QString buttonWhatsThis( ButtonCode
id ) const;
313 void setButtonGuiItem( ButtonCode
id, const
KGuiItem &item );
322 void setButtonMenu( ButtonCode
id,
QMenu *menu, ButtonPopupMode popupmode=InstantPopup);
327 void setButtonFocus( ButtonCode
id );
338 void setInitialSize( const
QSize &size );
348 void incrementInitialSize( const
QSize &size );
388 bool isButtonEnabled( ButtonCode
id ) const;
409 static
int marginHint();
418 static
int spacingHint();
426 static
int groupSpacingHint();
445 HIGCompliantCaption = AppNameCaption
447 Q_DECLARE_FLAGS(CaptionFlags, CaptionFlag)
471 CaptionFlags flags = HIGCompliantCaption );
484 static
void resizeLayout(
QWidget *widget,
int margin,
int spacing );
497 static
void resizeLayout( QLayout *lay,
int margin,
int spacing );
508 static
void centerOnScreen(
QWidget *widget,
int screen = -1 );
518 static
bool avoidArea(
QWidget *widget, const
QRect& area,
int screen = -1 );
523 void setMainWidget(
QWidget *widget );
538 virtual
QSize sizeHint() const;
543 virtual
QSize minimumSizeHint() const;
550 static
void setAllowEmbeddingInGraphicsView(
bool allowEmbedding );
560 virtual
void setCaption( const
QString &caption );
571 virtual
void setCaption( const
QString &caption,
bool modified );
579 virtual
void setPlainCaption( const
QString &caption );
587 void enableButton( ButtonCode
id,
bool state );
594 void enableButtonOk(
bool state );
601 void enableButtonApply(
bool state );
608 void enableButtonCancel(
bool state );
619 void enableLinkedHelp(
bool state );
633 void setHelpLinkText( const
QString &text );
652 bool isDetailsWidgetVisible() const;
657 void setDetailsWidgetVisible(
bool visible );
665 void setDetailsWidget(
QWidget *detailsWidget );
673 void delayedDestruct();
685 void layoutHintChanged();
697 void defaultClicked();
757 void cancelClicked();
770 void buttonClicked(
KDialog::ButtonCode button);
801 void aboutToShowDetails();
808 virtual
void hideEvent( QHideEvent * );
816 virtual
void closeEvent( QCloseEvent *e );
821 virtual
void keyPressEvent( QKeyEvent* );
843 virtual
void slotButtonClicked(
int button);
851 void updateGeometry();
854 KDialog(KDialogPrivate &dd,
QWidget *parent, Qt::WindowFlags flags = 0);
855 KDialogPrivate *const d_ptr;
859 Q_PRIVATE_SLOT(d_ptr,
void queuedLayoutUpdate())
860 Q_PRIVATE_SLOT(d_ptr,
void helpLinkClicked())
863 Q_DECLARE_OPERATORS_FOR_FLAGS(
KDialog::ButtonCodes)
864 Q_DECLARE_OPERATORS_FOR_FLAGS(
KDialog::CaptionFlags)
A dialog base class with standard buttons and predefined layouts.
An abstract class for GUI data such as ToolTip and Icon.
A wrapper around QIcon that provides KDE icon features.