Eneboo - Documentación para desarrolladores
src/qt/include/qwizard.h
Ir a la documentación de este archivo.
00001 /****************************************************************************
00002 ** $Id: qt/qwizard.h   3.3.8   edited Jan 11 14:46 $
00003 **
00004 ** Definition of the QWizard class.
00005 **
00006 ** Created : 990101
00007 **
00008 ** Copyright (C) 1999-2007 Trolltech ASA.  All rights reserved.
00009 **
00010 ** This file is part of the dialogs module of the Qt GUI Toolkit.
00011 **
00012 ** This file may be distributed under the terms of the Q Public License
00013 ** as defined by Trolltech ASA of Norway and appearing in the file
00014 ** LICENSE.QPL included in the packaging of this file.
00015 **
00016 ** This file may be distributed and/or modified under the terms of the
00017 ** GNU General Public License version 2 as published by the Free Software
00018 ** Foundation and appearing in the file LICENSE.GPL included in the
00019 ** packaging of this file.
00020 **
00021 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
00022 ** licenses may use this file in accordance with the Qt Commercial License
00023 ** Agreement provided with the Software.
00024 **
00025 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00026 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00027 **
00028 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00029 **   information about Qt Commercial License Agreements.
00030 ** See http://www.trolltech.com/qpl/ for QPL licensing information.
00031 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00032 **
00033 ** Contact info@trolltech.com if any conditions of this licensing are
00034 ** not clear to you.
00035 **
00036 **********************************************************************/
00037 
00038 #ifndef QWIZARDDIALOG_H
00039 #define QWIZARDDIALOG_H
00040 
00041 
00042 #ifndef QT_H
00043 #include "qdialog.h"
00044 #endif // QT_H
00045 
00046 #ifndef QT_NO_WIZARD
00047 
00048 class QHBoxLayout;
00049 class QWizardPrivate;
00050 
00051 class Q_EXPORT QWizard : public QDialog
00052 {
00053     Q_OBJECT
00054     Q_PROPERTY( QFont titleFont READ titleFont WRITE setTitleFont )
00055 
00056 public:
00057     QWizard( QWidget* parent=0, const char* name=0, bool modal=FALSE,
00058              WFlags f=0 );
00059     ~QWizard();
00060 
00061     void show();
00062 
00063     void setFont( const QFont & font );
00064 
00065     virtual void addPage( QWidget *, const QString & );
00066     virtual void insertPage( QWidget*, const QString&, int );
00067     virtual void removePage( QWidget * );
00068 
00069     QString title( QWidget * ) const;
00070     void setTitle( QWidget *, const QString & );
00071     QFont titleFont() const;
00072     void setTitleFont( const QFont & );
00073 
00074     virtual void showPage( QWidget * );
00075 
00076     QWidget * currentPage() const;
00077 
00078     QWidget* page( int ) const;
00079     int pageCount() const;
00080     int indexOf( QWidget* ) const;
00081 
00082     virtual bool appropriate( QWidget * ) const;
00083     virtual void setAppropriate( QWidget *, bool );
00084 
00085     QPushButton * backButton() const;
00086     QPushButton * nextButton() const;
00087     QPushButton * finishButton() const;
00088     QPushButton * cancelButton() const;
00089     QPushButton * helpButton() const;
00090 
00091     bool eventFilter( QObject *, QEvent * );
00092 
00093 public slots:
00094     virtual void setBackEnabled( QWidget *, bool );
00095     virtual void setNextEnabled( QWidget *, bool );
00096     virtual void setFinishEnabled( QWidget *, bool );
00097 
00098     virtual void setHelpEnabled( QWidget *, bool );
00099 
00100     // obsolete
00101     virtual void setFinish(  QWidget *, bool ) {}
00102 
00103 protected slots:
00104     virtual void back();
00105     virtual void next();
00106     virtual void help();
00107 
00108 signals:
00109     void helpClicked();
00110     void selected( const QString& );
00111 
00112 protected:
00113     virtual void layOutButtonRow( QHBoxLayout * );
00114     virtual void layOutTitleRow( QHBoxLayout *, const QString & );
00115 
00116 private:
00117     void setBackEnabled( bool );
00118     void setNextEnabled( bool );
00119 
00120     void setHelpEnabled( bool );
00121 
00122     void setNextPage( QWidget * );
00123 
00124     void updateButtons();
00125 
00126     void layOut();
00127 
00128     QWizardPrivate *d;
00129 
00130 private:        // Disabled copy constructor and operator=
00131 #if defined(Q_DISABLE_COPY)
00132     QWizard( const QWizard & );
00133     QWizard& operator=( const QWizard & );
00134 #endif
00135 };
00136 
00137 #endif // QT_NO_WIZARD
00138 
00139 #endif // QWIZARD_H
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'