KDEUI
kassistantdialog.cpp
Go to the documentation of this file.
92 q->setButtons(KDialog::Cancel | KDialog::User1 | KDialog::User2 | KDialog::User3 | KDialog::Help);
105 q->connect(q, SIGNAL(currentPageChanged(KPageWidgetItem*,KPageWidgetItem*)), q, SLOT(_k_slotUpdateButtons()));
152 d->_k_slotUpdateButtons(); //called because last time that function was called is when the first page was added, so the next button show "finish"
This class provides a framework for assistant dialogs.
Definition: kassistantdialog.h:55
bool isValid(KPageWidgetItem *page) const
return if a page is valid
Definition: kassistantdialog.cpp:132
virtual void showEvent(QShowEvent *event)
Definition: kassistantdialog.cpp:150
virtual void next()
Called when the user clicks the Next/Finish button.
Definition: kassistantdialog.cpp:116
bool isAppropriate(KPageWidgetItem *page) const
Check if a page is appropriate for use in the assistant dialog.
Definition: kassistantdialog.cpp:162
void setAppropriate(KPageWidgetItem *page, bool appropriate)
Specify whether a page is appropriate.
Definition: kassistantdialog.cpp:156
void setValid(KPageWidgetItem *page, bool enable)
Specify if the content of the page is valid, and if the next button may be enabled on this page.
Definition: kassistantdialog.cpp:125
KAssistantDialog(QWidget *parent=0, Qt::WindowFlags flags=0)
Construct a new assistant dialog with parent as parent.
Definition: kassistantdialog.cpp:68
void setButtonIcon(ButtonCode id, const KIcon &icon)
Sets the icon of any button.
Definition: kdialog.cpp:742
void setButtonGuiItem(ButtonCode id, const KGuiItem &item)
Sets the KGuiItem directly for the button instead of using 3 methods to set the text,...
Definition: kdialog.cpp:699
void enableButton(ButtonCode id, bool state)
Enable or disable (gray out) a general action button.
Definition: kdialog.cpp:661
void setButtons(ButtonCodes buttonMask)
Creates (or recreates) the button box and all the buttons in it.
Definition: kdialog.cpp:206
@ Cancel
Show Cancel-button. (this button reject()s the dialog; result set to QDialog::Rejected)
Definition: kdialog.h:144
void setButtonText(ButtonCode id, const QString &text)
Sets the text of any button.
Definition: kdialog.cpp:719
void setDefaultButton(ButtonCode id)
Sets the button that will be activated when the Enter key is pressed.
Definition: kdialog.cpp:287
void setCurrentPage(KPageWidgetItem *item)
Sets the page which is associated with the given.
Definition: kpagedialog.cpp:108
KPageWidgetItem is used by KPageWidget and represents a page.
Definition: kpagewidgetmodel.h:51
KPageWidgetItem * item(const QModelIndex &index) const
Returns the.
Definition: kpagewidgetmodel.cpp:520
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: kpagewidgetmodel.cpp:332
QString i18n(const char *text)
QString i18nc(const char *ctxt, const char *text)
KGuiItem back(BidiMode useBidi)
Returns the 'Back' gui item, like Konqueror's back button.
Definition: kstandardguiitem.cpp:206
KGuiItem forward(BidiMode useBidi)
Returns the 'Forward' gui item, like Konqueror's forward button.
Definition: kstandardguiitem.cpp:214
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.