X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FInstallWizard.h;h=180ccab42b06a2566b5841d536b0444fe99b677d;hb=e70598f51be637f9d2e2c1ebd00523f50f9fb1e3;hp=47dbd38fb198f30dc25ed338db9454efb7662084;hpb=972b20151fc9d1119aeef80cf80dfd5abb90a272;p=tools%2Finstall.git diff --git a/src/InstallWizard.h b/src/InstallWizard.h index 47dbd38..180ccab 100644 --- a/src/InstallWizard.h +++ b/src/InstallWizard.h @@ -1,18 +1,47 @@ -// File : InstallWizard.h -// Created : Thu Mar 27 12:01:00 2003 -// Author : Vadim SANDLER -// Project : PAL/SALOME -// Module : InstallWizard -// Copyright : 2004 CEA -// $Header$ +/**************************************************************************** +** $Id$ +** +** Definition of the QWizard class. +** +** Created : 990101 +** +** Copyright (C) 1999 by Trolltech AS. All rights reserved. +** +** This file is part of the dialogs module of the Qt GUI Toolkit. +** +** This file may be distributed under the terms of the Q Public License +** as defined by Trolltech AS of Norway and appearing in the file +** LICENSE.QPL included in the packaging of this file. +** +** This file may be distributed and/or modified under the terms of the +** GNU General Public License version 2 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. +** +** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition +** licenses may use this file in accordance with the Qt Commercial License +** Agreement provided with the Software. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for +** information about Qt Commercial License Agreements. +** See http://www.trolltech.com/qpl/ for QPL licensing information. +** See http://www.trolltech.com/gpl/ for GPL licensing information. +** +** Contact info@trolltech.com if any conditions of this licensing are +** not clear to you. +** +**********************************************************************/ #ifndef InstallWizard_h #define InstallWizard_h -#include "qdialog.h" +#include /*! - This is the patched QWizard class + This is the patched Qt 3.0.5 QWizard class */ class QHBoxLayout; class InstallWizardPrivate; @@ -24,7 +53,13 @@ class InstallWizard : public QDialog public: InstallWizard( QWidget* parent=0, const char* name=0, bool modal=FALSE, WFlags f=0 ); ~InstallWizard(); + + static void postValidateEvent( InstallWizard* iw, const int val = 0, void* data = 0 ); + virtual void processValidateEvent( const int val, void* data ); + + bool event ( QEvent * e ); + void show(); void setFont( const QFont & font ); @@ -43,13 +78,16 @@ public: QWidget * currentPage() const; QWidget* page( int ) const; - QWidget* page( const QString& title ) const; + QWidget* page( const QString& ) const; int pageCount() const; int indexOf( QWidget* ) const; - void addLogo( const QPixmap& pm ); + void addLogo( const QPixmap& ); void removeLogos(); + void showAboutBtn( bool ); + void setAboutIcon( const QPixmap& ); + virtual bool appropriate( QWidget * ) const; virtual void setAppropriate( QWidget *, bool ); @@ -77,7 +115,10 @@ protected slots: virtual void help(); signals: + void nextClicked(); + void backClicked(); void helpClicked(); + void aboutClicked(); void selected( const QString& ); protected: @@ -85,11 +126,10 @@ protected: virtual void layOutTitleRow( QHBoxLayout *, const QString & ); virtual bool acceptData( const QString& ); void layOut(); - -private: void setBackEnabled( bool ); void setNextEnabled( bool ); +private: void setHelpEnabled( bool ); void setNextPage( QWidget * );