KVIrc  4.9.2
DeveloperAPIs
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
KviTalWizard Class Reference

Provides a wizard-style dialog with steps. More...

#include <KviTalWizard.h>

+ Inheritance diagram for KviTalWizard:

Signals

void helpClicked ()
 
void pageChanged (QString title)
 

Public Member Functions

void addPage (QWidget *pWidget, const QString &szTitle)
 
QPushButton * backButton ()
 
QPushButton * cancelButton ()
 
QWidget * currentPage ()
 
QPushButton * finishButton ()
 
QPushButton * helpButton ()
 
void insertPage (QWidget *pWidget, const QString &szTitle, int iIndex)
 
 KviTalWizard (QWidget *pParent)
 
QPushButton * nextButton ()
 
void setBackEnabled (QWidget *pWidget, bool bEnabled)
 
void setCancelEnabled (QWidget *pWidget, bool bEnabled)
 
bool setCurrentPage (QWidget *pWidget)
 
void setFinishEnabled (QWidget *pWidget, bool bEnabled)
 
void setHelpEnabled (QWidget *pWidget, bool bEnabled)
 
void setNextEnabled (QWidget *pWidget, bool bEnabled)
 
bool setPageEnabled (QWidget *pWidget, bool bEnabled)
 
bool setPageTitle (QWidget *pWidget, const QString &szTitle)
 
 ~KviTalWizard ()
 

Protected Slots

void backButtonClicked ()
 
void cancelButtonClicked ()
 
void finishButtonClicked ()
 
void helpButtonClicked ()
 
void nextButtonClicked ()
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *e)
 
void setCurrentPage (KviTalWizardPageData *pData)
 
virtual void showEvent (QShowEvent *e)
 

Protected Attributes

KviTalWizardPrivatem_p
 

Detailed Description

Provides a wizard-style dialog with steps.

Constructor & Destructor Documentation

KviTalWizard::KviTalWizard ( QWidget *  pParent)
KviTalWizard::~KviTalWizard ( )

Member Function Documentation

void KviTalWizard::addPage ( QWidget *  pWidget,
const QString &  szTitle 
)

Adds a page to the wizard with the specified title. The pages are displayed in order they're added. Adding a page a second time is equivalent to calling setPageTitle() and enabling the page.

References insertPage().

Referenced by KviRemoteMircServerImportWizard::KviRemoteMircServerImportWizard(), RegistrationWizard::RegistrationWizard(), SaveThemeDialog::SaveThemeDialog(), and SetupWizard::SetupWizard().

QPushButton * KviTalWizard::backButton ( )

Returns a pointer to the back button displayed in the dialog.

References m_p, and KviTalWizardPrivate::pBackButton.

Referenced by KviKvsMdmWizard::KviKvsMdmWizard(), and KVSO_CLASS_FUNCTION().

void KviTalWizard::backButtonClicked ( )
protectedslot
QPushButton * KviTalWizard::cancelButton ( )

Returns a pointer to the cancel button displayed in the dialog.

References m_p, and KviTalWizardPrivate::pCancelButton.

Referenced by KviRemoteMircServerImportWizard::getListTerminated().

void KviTalWizard::cancelButtonClicked ( )
protectedslot

Referenced by closeEvent(), and KviTalWizard().

void KviTalWizard::closeEvent ( QCloseEvent *  e)
protectedvirtual

Handles redirects the close button to the "cancel" operation.

Reimplemented in KviRemoteMircServerImportWizard.

References cancelButtonClicked().

QWidget * KviTalWizard::currentPage ( )

Returns a pointer to the current page

References m_p, KviTalWizardPrivate::pCurrentPage, and KviTalWizardPageData::pWidget.

QPushButton * KviTalWizard::finishButton ( )

Returns a pointer to the finish button displayed in the dialog.

References m_p, and KviTalWizardPrivate::pFinishButton.

Referenced by KviRemoteMircServerImportWizard::getListTerminated(), KVSO_CLASS_FUNCTION(), and KviRemoteMircServerImportWizard::start().

void KviTalWizard::finishButtonClicked ( )
protectedslot

Referenced by KviTalWizard().

QPushButton * KviTalWizard::helpButton ( )

Returns a pointer to the help button displayed in the dialog.

References m_p, and KviTalWizardPrivate::pHelpButton.

Referenced by KVSO_CLASS_FUNCTION().

void KviTalWizard::helpButtonClicked ( )
protectedslot

References helpClicked().

Referenced by KviTalWizard().

void KviTalWizard::helpClicked ( )
signal

Emitted when the help button is clicked.

Referenced by helpButtonClicked().

void KviTalWizard::insertPage ( QWidget *  pWidget,
const QString &  szTitle,
int  iIndex 
)
QPushButton * KviTalWizard::nextButton ( )

Returns a pointer to the next button displayed in the dialog.

References m_p, and KviTalWizardPrivate::pNextButton.

Referenced by KviKvsMdmWizard::KviKvsMdmWizard(), and KVSO_CLASS_FUNCTION().

void KviTalWizard::nextButtonClicked ( )
protectedslot
void KviTalWizard::pageChanged ( QString  title)
signal
void KviTalWizard::setBackEnabled ( QWidget *  pWidget,
bool  bEnabled 
)
void KviTalWizard::setCancelEnabled ( QWidget *  pWidget,
bool  bEnabled 
)

Enables or disables the cancel button for the specified page. By default the cancel button is always enabled.

References KviTalWizardPageData::EnableCancel, KviTalWizardPrivate::findPage(), KviTalWizardPageData::iEnableFlags, m_p, KviTalWizardPrivate::pCurrentPage, and setCurrentPage().

bool KviTalWizard::setCurrentPage ( QWidget *  pWidget)

Switches the wizard to the specified page. Please note that this class handles page switching automatically so you usually don't need to call this function.

Returns true on success or false if the pWidget does not identify a page that has been added to this wizard.

References KviTalWizardPrivate::findPage(), and m_p.

Referenced by SetupWizard::accept(), backButtonClicked(), nextButtonClicked(), SaveThemeDialog::saveTheme(), setBackEnabled(), setCancelEnabled(), setFinishEnabled(), setHelpEnabled(), setNextEnabled(), setPageEnabled(), and showEvent().

void KviTalWizard::setCurrentPage ( KviTalWizardPageData pData)
protected
void KviTalWizard::setFinishEnabled ( QWidget *  pWidget,
bool  bEnabled 
)
void KviTalWizard::setHelpEnabled ( QWidget *  pWidget,
bool  bEnabled 
)

Enables or disables the help button for the specified page. By default the help button is always disabled.

References KviTalWizardPageData::EnableHelp, KviTalWizardPrivate::findPage(), KviTalWizardPageData::iEnableFlags, m_p, KviTalWizardPrivate::pCurrentPage, and setCurrentPage().

Referenced by SaveThemeDialog::SaveThemeDialog(), and SetupWizard::SetupWizard().

void KviTalWizard::setNextEnabled ( QWidget *  pWidget,
bool  bEnabled 
)
bool KviTalWizard::setPageEnabled ( QWidget *  pWidget,
bool  bEnabled 
)

Enables or disables a page. A disabled page is skipped when the user presses "Next" in the previous page or "Back" in the page after. Disabling the current page has no effect.

Returns true on success or false if the pWidget does not identify a page that has been added to this wizard.

References KviTalWizardPageData::bEnabled, KviTalWizardPrivate::findPage(), KviTalWizardPrivate::iEnabledPageCount, m_p, KviTalWizardPrivate::pCurrentPage, KviTalWizardPrivate::reindexPages(), and setCurrentPage().

Referenced by SetupWizard::newDirClicked(), SetupWizard::oldDirClicked(), SetupWizard::portableClicked(), and SetupWizard::SetupWizard().

bool KviTalWizard::setPageTitle ( QWidget *  pWidget,
const QString &  szTitle 
)

Changes a page title.

Returns true on success or false if the pWidget does not identify a page that has been added to this wizard.

References KviTalWizardPrivate::findPage(), m_p, and KviTalWizardPageData::szTitle.

void KviTalWizard::showEvent ( QShowEvent *  e)
protectedvirtual

Member Data Documentation

KviTalWizardPrivate* KviTalWizard::m_p
protected

The documentation for this class was generated from the following files: