1 // File : InstallWizard.h
2 // Created : Thu Mar 27 12:01:00 2003
3 // Author : Vadim SANDLER
4 // Project : SALOME Professional
5 // Module : InstallWizard
6 // Copyright : 2003 CEA/DEN, EDF R&D
9 #ifndef InstallWizard_h
10 #define InstallWizard_h
15 This is the patched QWizard class
18 class InstallWizardPrivate;
20 class InstallWizard : public QDialog
25 InstallWizard( QWidget* parent=0, const char* name=0, bool modal=FALSE, WFlags f=0 );
30 void setFont( const QFont & font );
32 virtual void addPage( QWidget *, const QString & );
33 virtual void insertPage( QWidget*, const QString&, int );
34 virtual void removePage( QWidget * );
36 QString title( QWidget * ) const;
37 void setTitle( QWidget *, const QString & );
38 QFont titleFont() const;
39 void setTitleFont( const QFont & );
41 virtual void showPage( QWidget * );
43 QWidget * currentPage() const;
45 QWidget* page( int ) const;
46 QWidget* page( const QString& title ) const;
47 int pageCount() const;
48 int indexOf( QWidget* ) const;
50 virtual bool appropriate( QWidget * ) const;
51 virtual void setAppropriate( QWidget *, bool );
53 QPushButton * backButton() const;
54 QPushButton * nextButton() const;
55 QPushButton * finishButton() const;
56 QPushButton * cancelButton() const;
57 QPushButton * helpButton() const;
59 bool eventFilter( QObject *, QEvent * );
62 virtual void setBackEnabled( QWidget *, bool );
63 virtual void setNextEnabled( QWidget *, bool );
64 virtual void setFinishEnabled( QWidget *, bool );
66 virtual void setHelpEnabled( QWidget *, bool );
69 virtual void setFinish( QWidget *, bool ) {}
78 void selected( const QString& );
81 virtual void layOutButtonRow( QHBoxLayout * );
82 virtual void layOutTitleRow( QHBoxLayout *, const QString & );
83 virtual bool acceptData( const QString& );
87 void setBackEnabled( bool );
88 void setNextEnabled( bool );
90 void setHelpEnabled( bool );
92 void setNextPage( QWidget * );
96 InstallWizardPrivate *d;
98 private: // Disabled copy constructor and operator=
99 #if defined(Q_DISABLE_COPY)
100 InstallWizard( const InstallWizard & );
101 InstallWizard& operator=( const InstallWizard & );
105 #endif // InstallWizard_h