37 #pragma warning( disable:4251 )
62 static QtxSplash* splash(
const QPixmap& = QPixmap() );
64 static void setStatus(
const QString&,
const int = -1 );
65 static void setError(
const QString&,
const QString& = QString(),
const int = -1 );
67 void setSize(
const QSize& );
68 void setSize(
int,
int );
69 QSize fixedSize()
const;
71 void setPixmap(
const QPixmap& );
72 QPixmap pixmap()
const;
74 void setHideOnClick(
const bool );
75 bool hideOnClick()
const;
77 void setProgressVisible(
const bool );
78 bool progressVisible()
const;
80 void setMessageVisible(
const bool );
81 bool messageVisible()
const;
83 void setPercentageVisible(
const bool );
84 bool percentageVisible()
const;
86 void setTotalSteps(
const int );
87 int totalSteps()
const;
89 void setProgress(
const int );
90 void setProgress(
const int,
const int );
93 void setMargin(
const int );
96 void setProgressWidth(
const int );
97 int progressWidth()
const;
99 void setProgressFlags(
const int );
100 int progressFlags()
const;
102 void setProgressColors(
const QColor&,
103 const QColor& = QColor(),
105 void setProgressColors(
const QGradient& );
106 const QGradient* progressColors()
const;
108 void setOpacity(
const double );
109 double opacity()
const;
111 void setTextAlignment(
const int );
112 int textAlignment()
const;
114 void setTextColors(
const QColor&,
const QColor& = QColor() );
115 void textColors( QColor&, QColor& )
const;
117 void setConstantInfo(
const QString& info );
118 QString constantInfo()
const;
120 void setOption(
const QString&,
const QString& );
121 QString option(
const QString& )
const;
123 QString message()
const;
133 void setMessage(
const QString&,
135 const QColor& = QColor() );
136 void setMessage(
const QString& );
140 virtual void mousePressEvent( QMouseEvent* );
141 virtual void customEvent(
QEvent* );
142 virtual void paintEvent( QPaintEvent* );
144 virtual void drawContents( QPainter* );
146 virtual void drawProgressBar( QPainter* );
147 virtual void drawMessage( QPainter* );
151 void setError(
const int );
152 QString fullMessage()
const;
#define QTX_EXPORT
Definition: Qtx.h:36
Orientation
Orientation.
Definition: SalomePyQt.h:138
@ Vertical
Vertical orientation.
Definition: SalomePyQt.h:140
Application resources manager.
Definition: QtxResourceMgr.h:53
The QtxSplash widget provides a splash screen that can be shown during application startup.
Definition: QtxSplash.h:43
bool myShowProgress
'show progress bar' flag
Definition: QtxSplash.h:177
int myProgressFlags
progress bar flags (QtxSplash::ProgressBarFlags)
Definition: QtxSplash.h:172
bool myShowMessage
'show status message' flag
Definition: QtxSplash.h:178
int myMargin
margin (for progress bar and status message)
Definition: QtxSplash.h:173
OptMap myOptions
constant info options
Definition: QtxSplash.h:176
int myProgress
current progress
Definition: QtxSplash.h:168
QGradient myGradient
progress bar custom gradient
Definition: QtxSplash.h:170
bool myHideOnClick
'hide on click' flag
Definition: QtxSplash.h:167
QSize mySize
splash size
Definition: QtxSplash.h:160
int myTotal
total progress steps
Definition: QtxSplash.h:169
int myAlignment
text alignment flags (Qt::Alignment)
Definition: QtxSplash.h:164
QColor myShadowColor
text shadow color
Definition: QtxSplash.h:166
QString myMessage
current status message
Definition: QtxSplash.h:163
int myError
error code
Definition: QtxSplash.h:175
static QtxSplash * mySplash
The only one instance of splash screen.
Definition: QtxSplash.h:158
bool myShowPercent
'show percentage' flag
Definition: QtxSplash.h:179
double myOpacity
progress bar / status message opacity
Definition: QtxSplash.h:174
QPixmap myPixmap
splash pixmap
Definition: QtxSplash.h:161
int myProgressWidth
progress bar width
Definition: QtxSplash.h:171
QColor myColor
text color
Definition: QtxSplash.h:165
QString myInfo
constant info
Definition: QtxSplash.h:162
QMap< QString, QString > OptMap
Definition: QtxSplash.h:155