Source Code (Use browser search to find items of interest.)
Class Index
qt'QWizardPrivate (./qt-2.1.0/src/dialogs/qwizard.cpp:53)
class QWizardPrivate
{
public:
struct Page {
Page( QWidget * widget, const QString & title ):
w( widget ), t( title ), back( 0 ),
backEnabled( TRUE ), nextEnabled( TRUE ), finishEnabled( FALSE ),
helpEnabled( TRUE ),
appropriate( TRUE )
{}
QWidget * w;
QString t;
QWidget * back;
bool backEnabled;
bool nextEnabled;
bool finishEnabled;
bool helpEnabled;
bool appropriate;
};
QVBoxLayout * v;
Page * current;
QWidgetStack * ws;
QVector<Page> pages;
QLabel * title;
QPushButton * backButton;
QPushButton * nextButton;
QPushButton * finishButton;
QPushButton * cancelButton;
QPushButton * helpButton;
QFrame * hbar1, * hbar2;
QAccel * accel;
int backAccel;
int nextAccel;
Page * page( const QWidget * w )
{
if ( !w )
return 0;
int i = pages.size();
while( --i >= 0 && pages[i] && pages[i]->w != w )
;
return i >= 0 ? pages[i] : 0;
}
};
/*! Constructs an empty wizard dialog. */
qt'QWizardPrivate::page() (./qt-2.1.0/src/dialogs/qwizard.cpp:90)
Page * page( const QWidget * w )
{
if ( !w )
return 0;
int i = pages.size();
while( --i >= 0 && pages[i] && pages[i]->w != w )
;
return i >= 0 ? pages[i] : 0;
}
};
/*! Constructs an empty wizard dialog. */