1 // Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // Author: Vadim SANDLER
31 #pragma warning( disable:4251 )
34 class QTX_EXPORT QtxSplash : public QWidget
39 QtxSplash( const QPixmap& = QPixmap() );
42 enum { Horizontal, Vertical };
46 static QtxSplash* splash( const QPixmap& = QPixmap() );
47 static void setStatus( const QString&, const int = 0 );
48 static void error( const QString&, const QString& = QString::null, const int = -1 );
50 void setPixmap( const QPixmap& );
51 QPixmap pixmap() const;
53 void setHideOnClick( const bool );
54 bool hideOnClick() const;
56 void setTotalSteps( const int );
57 int totalSteps() const;
58 void setProgress( const int );
60 void setProgress( const int, const int );
61 void setProgressColors( const QColor&,
62 const QColor& = QColor(),
63 const int = Vertical );
64 int progressColors( QColor&, QColor& );
66 void setTextAlignment( const int );
67 int textAlignment() const;
69 void setTextColor( const QColor& );
70 QColor textColor() const;
71 void setTextColors( const QColor&, const QColor& = QColor() );
72 void textColors( QColor&, QColor& ) const;
74 QString message() const;
78 void finish( QWidget* );
82 void message( const QString&,
84 const QColor& = white );
85 void message( const QString& );
89 virtual void mousePressEvent( QMouseEvent* );
90 virtual void customEvent( QCustomEvent* );
91 virtual void drawContents( QPainter* );
95 void setError( const int );
98 static QtxSplash* mySplash;
104 QColor myShadowColor;