a modern progress indicator widget
More...
#include <jkqtemodernprogress.h>
|
| enum | InnerProgressIndicatorMode {
NoInnerIndicator,
InnerProgressBarHorizontal,
InnerProgressFillVertical,
InnerProgressFillHorizontal
} |
| | mode of percentage display More...
|
| |
| enum | Mode {
Strokes,
Circles,
Ring,
GradientRing,
RoundedStrokeRing,
Pie
} |
| | modes of the progress widget More...
|
| |
| enum | TextDisplayMode {
NoText,
PercentText,
ValueText
} |
| | mode of percentage display More...
|
| |
a modern progress indicator widget
Like QProgressBar this can be used to display a progress value() between rangeMin() and rangeMax(), but there is also a mode where a colored circle/stroke wanders around the widget to indicate that something is going on, but not giving a real progress.
Usage example:
◆ InnerProgressIndicatorMode
mode of percentage display
| Enumerator |
|---|
| NoInnerIndicator | do not display a progress indicator in the center
|
| InnerProgressBarHorizontal | display a progress bar in the center (below the text)
|
| InnerProgressFillVertical | fill the center, depending on the progress, using innerCircleProgressColor() (behind the text)
|
| InnerProgressFillHorizontal | fill the center, depending on the progress, using innerCircleProgressColor() (behind the text)
|
◆ Mode
modes of the progress widget
| Enumerator |
|---|
| Strokes | a ring of rounded strokes
|
| Circles | a ring of circles
|
| Ring | a ring filled with a color
|
| GradientRing | a ring filled with a color gradient
|
| RoundedStrokeRing | a ring filled with a color
|
| Pie | a pie filled with a color
|
◆ TextDisplayMode
mode of percentage display
| Enumerator |
|---|
| NoText | do not display any text
|
| PercentText | display the percentage (value() between minimum() and maximum() )
|
| ValueText | display the value with the given suffix() (suffix() =="/100" in the example image)
|
◆ JKQTEModernProgressWidget()
| JKQTEModernProgressWidget::JKQTEModernProgressWidget |
( |
QWidget * |
parent = NULL | ) |
|
◆ ~JKQTEModernProgressWidget()
| virtual JKQTEModernProgressWidget::~JKQTEModernProgressWidget |
( |
| ) |
|
|
virtual |
◆ doSpin
| void JKQTEModernProgressWidget::doSpin |
( |
| ) |
|
|
protectedslot |
◆ getSmoothItems()
| static int JKQTEModernProgressWidget::getSmoothItems |
( |
int |
items | ) |
|
|
staticprivate |
◆ indicatorBackgroundColor()
| QColor JKQTEModernProgressWidget::indicatorBackgroundColor |
( |
| ) |
const |
color of an indicator, when inactive (usually a bit darker than the widget background color)
◆ indicatorColor()
| QColor JKQTEModernProgressWidget::indicatorColor |
( |
| ) |
const |
color of the current item
◆ innerCircleBackgroundColor()
| QColor JKQTEModernProgressWidget::innerCircleBackgroundColor |
( |
| ) |
const |
backround color of the inner circle
◆ innerCircleProgressColor()
| QColor JKQTEModernProgressWidget::innerCircleProgressColor |
( |
| ) |
const |
backround color of the inner circle progress indicator
◆ innerProgressIndicatorMode()
type of inner progress indicator
◆ innerRadius()
| double JKQTEModernProgressWidget::innerRadius |
( |
| ) |
const |
inner radius (0..1) of the displayed circle/stroke ring
◆ items()
| int JKQTEModernProgressWidget::items |
( |
| ) |
const |
number of indicators making up the circle
◆ maximum()
| double JKQTEModernProgressWidget::maximum |
( |
| ) |
const |
◆ minimum()
| double JKQTEModernProgressWidget::minimum |
( |
| ) |
const |
◆ mode()
| Mode JKQTEModernProgressWidget::mode |
( |
| ) |
const |
type of widget: display a ring of strokes or circles, ...)
◆ nonBackgroundRange()
| double JKQTEModernProgressWidget::nonBackgroundRange |
( |
| ) |
const |
how many of the indicators (fraction 0..1 of items() ) should follow current indicator with a different color than backgroundColor() )
◆ outerRadius()
| double JKQTEModernProgressWidget::outerRadius |
( |
| ) |
const |
outer radius (0..1) of the displayed circle/stroke ring
◆ paintEvent()
| virtual void JKQTEModernProgressWidget::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
protectedvirtual |
◆ precision()
| int JKQTEModernProgressWidget::precision |
( |
| ) |
const |
precision for progress display
◆ resizeEvent()
| virtual void JKQTEModernProgressWidget::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
protectedvirtual |
◆ setBackgroundColor
| void JKQTEModernProgressWidget::setBackgroundColor |
( |
QColor |
col | ) |
|
|
slot |
color of an indicator, when inactive (usually a bit darker than the widget background color)
◆ setIndicatorBackgroundColor
| void JKQTEModernProgressWidget::setIndicatorBackgroundColor |
( |
QColor |
col | ) |
|
|
slot |
background color behind the indicator items
◆ setIndicatorColor
| void JKQTEModernProgressWidget::setIndicatorColor |
( |
QColor |
col | ) |
|
|
slot |
color of the current item
◆ setInnerCircleBackgroundColor
| void JKQTEModernProgressWidget::setInnerCircleBackgroundColor |
( |
QColor |
col | ) |
|
|
slot |
backround color of the inner circle
◆ setInnerCircleProgressColor
| void JKQTEModernProgressWidget::setInnerCircleProgressColor |
( |
QColor |
col | ) |
|
|
slot |
backround color of the inner circle progress indicator
◆ setInnerProgressIndicatorMode
type of inner progress indicator
◆ setInnerRadius
| void JKQTEModernProgressWidget::setInnerRadius |
( |
int |
val | ) |
|
|
slot |
inner radius (0..1) of the displayed circle/stroke ring
◆ setItems
| void JKQTEModernProgressWidget::setItems |
( |
int |
i | ) |
|
|
slot |
number of indicators making up the circle
◆ setMaximum
| void JKQTEModernProgressWidget::setMaximum |
( |
double |
val | ) |
|
|
slot |
◆ setMinimum
| void JKQTEModernProgressWidget::setMinimum |
( |
double |
val | ) |
|
|
slot |
◆ setMode
| void JKQTEModernProgressWidget::setMode |
( |
Mode |
m | ) |
|
|
slot |
type of widget: display a ring of strokes or circles, ...)
◆ setNonBackgroundRange
| void JKQTEModernProgressWidget::setNonBackgroundRange |
( |
double |
val | ) |
|
|
slot |
how many of the indicators (fraction 0..1 of items() ) should follow current indicator with a different color than backgroundColor() )
◆ setOuterRadius
| void JKQTEModernProgressWidget::setOuterRadius |
( |
int |
val | ) |
|
|
slot |
outer radius (0..1) of the displayed circle/stroke ring
◆ setPrecision
| void JKQTEModernProgressWidget::setPrecision |
( |
int |
p | ) |
|
|
slot |
precision for progress display
◆ setRange
| void JKQTEModernProgressWidget::setRange |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
|
slot |
◆ setSpin
| void JKQTEModernProgressWidget::setSpin |
( |
bool |
enabled | ) |
|
|
slot |
is an automatic spin going on?
◆ setSpinInterval
| void JKQTEModernProgressWidget::setSpinInterval |
( |
int |
msec | ) |
|
|
slot |
interval (milliseconds) of the movement if spin() is true
◆ setStartColor
| void JKQTEModernProgressWidget::setStartColor |
( |
QColor |
col | ) |
|
|
slot |
color of the indicator the furthest away from the main indicator (usually the same as backgroundColor() )
◆ setStopColor
| void JKQTEModernProgressWidget::setStopColor |
( |
QColor |
col | ) |
|
|
slot |
color just before the current indicator (usually darker than startColor() )
◆ setSuffix
| void JKQTEModernProgressWidget::setSuffix |
( |
QString |
s | ) |
|
|
slot |
suffix for progress display
◆ setTextColor
| void JKQTEModernProgressWidget::setTextColor |
( |
QColor |
col | ) |
|
|
slot |
color of the progress text
◆ setTextDisplayMode
type of text display mode
◆ setValue
| void JKQTEModernProgressWidget::setValue |
( |
double |
val | ) |
|
|
slot |
◆ spin()
| bool JKQTEModernProgressWidget::spin |
( |
| ) |
const |
is an automatic spin going on?
◆ spinInterval()
| int JKQTEModernProgressWidget::spinInterval |
( |
| ) |
const |
interval (milliseconds) of the movement if spin() is true
◆ startColor()
| QColor JKQTEModernProgressWidget::startColor |
( |
| ) |
const |
color of the indicator the furthest away from the main indicator (usually the same as backgroundColor() )
◆ stopColor()
| QColor JKQTEModernProgressWidget::stopColor |
( |
| ) |
const |
color just before the current indicator (usually darker than startColor() )
◆ suffix()
| QString JKQTEModernProgressWidget::suffix |
( |
| ) |
const |
suffix for progress display
◆ textColor()
| QColor JKQTEModernProgressWidget::textColor |
( |
| ) |
const |
color of the progress text
◆ textDisplayMode()
type of text display mode
◆ updateWidget
| void JKQTEModernProgressWidget::updateWidget |
( |
| ) |
|
|
protectedslot |
◆ value()
| double JKQTEModernProgressWidget::value |
( |
| ) |
const |
◆ m_darkCircleBorder
| bool JKQTEModernProgressWidget::m_darkCircleBorder |
|
private |
◆ m_doRepaint
| bool JKQTEModernProgressWidget::m_doRepaint |
|
private |
◆ m_indicatorBackgroundColor
| QColor JKQTEModernProgressWidget::m_indicatorBackgroundColor |
|
private |
◆ m_indicatorColor
| QColor JKQTEModernProgressWidget::m_indicatorColor |
|
private |
◆ m_innerCircleBackgroundColor
| QColor JKQTEModernProgressWidget::m_innerCircleBackgroundColor |
|
private |
backround color of the inner circle
◆ m_innerCircleProgressColor
| QColor JKQTEModernProgressWidget::m_innerCircleProgressColor |
|
private |
◆ m_innerProgressMode
◆ m_innerRadius
| double JKQTEModernProgressWidget::m_innerRadius |
|
private |
◆ m_items
| int JKQTEModernProgressWidget::m_items |
|
private |
◆ m_mode
| Mode JKQTEModernProgressWidget::m_mode |
|
private |
◆ m_nonBackgroundRange
| double JKQTEModernProgressWidget::m_nonBackgroundRange |
|
private |
◆ m_outerRadius
| double JKQTEModernProgressWidget::m_outerRadius |
|
private |
◆ m_precision
| int JKQTEModernProgressWidget::m_precision |
|
private |
◆ m_rangeMax
| double JKQTEModernProgressWidget::m_rangeMax |
|
private |
◆ m_rangeMin
| double JKQTEModernProgressWidget::m_rangeMin |
|
private |
◆ m_smoothItems
| int JKQTEModernProgressWidget::m_smoothItems |
|
private |
◆ m_smoothSpinItem
| int JKQTEModernProgressWidget::m_smoothSpinItem |
|
private |
◆ m_spin
| bool JKQTEModernProgressWidget::m_spin |
|
private |
◆ m_spinInterval
| int JKQTEModernProgressWidget::m_spinInterval |
|
private |
◆ m_spinItem
| int JKQTEModernProgressWidget::m_spinItem |
|
private |
◆ m_startColor
| QColor JKQTEModernProgressWidget::m_startColor |
|
private |
◆ m_stopColor
| QColor JKQTEModernProgressWidget::m_stopColor |
|
private |
◆ m_suffix
| QString JKQTEModernProgressWidget::m_suffix |
|
private |
◆ m_textColor
| QColor JKQTEModernProgressWidget::m_textColor |
|
private |
◆ m_textDisplayMode
◆ m_value
| double JKQTEModernProgressWidget::m_value |
|
private |
◆ timer
| QTimer JKQTEModernProgressWidget::timer |
|
private |
◆ indicatorBackgroundColor
| QColor JKQTEModernProgressWidget::indicatorBackgroundColor |
|
readwrite |
◆ indicatorColor
| QColor JKQTEModernProgressWidget::indicatorColor |
|
readwrite |
◆ innerCircleBackgroundColor
| QColor JKQTEModernProgressWidget::innerCircleBackgroundColor |
|
readwrite |
◆ innerCircleProgressColor
| QColor JKQTEModernProgressWidget::innerCircleProgressColor |
|
readwrite |
◆ innerProgressIndicatorMode
◆ innerRadius
| double JKQTEModernProgressWidget::innerRadius |
|
readwrite |
◆ items
| int JKQTEModernProgressWidget::items |
|
readwrite |
◆ maximum
| double JKQTEModernProgressWidget::maximum |
|
readwrite |
◆ minimum
| double JKQTEModernProgressWidget::minimum |
|
readwrite |
◆ mode
| Mode JKQTEModernProgressWidget::mode |
|
readwrite |
◆ nonBackgroundRange
| double JKQTEModernProgressWidget::nonBackgroundRange |
|
readwrite |
◆ outerRadius
| double JKQTEModernProgressWidget::outerRadius |
|
readwrite |
◆ precision
| int JKQTEModernProgressWidget::precision |
|
readwrite |
◆ spin
| bool JKQTEModernProgressWidget::spin |
|
readwrite |
◆ spinInterval
| int JKQTEModernProgressWidget::spinInterval |
|
readwrite |
◆ startColor
| QColor JKQTEModernProgressWidget::startColor |
|
readwrite |
◆ stopColor
| QColor JKQTEModernProgressWidget::stopColor |
|
readwrite |
◆ suffix
| QString JKQTEModernProgressWidget::suffix |
|
readwrite |
◆ textDisplayMode
◆ value
| double JKQTEModernProgressWidget::value |
|
readwrite |
The documentation for this class was generated from the following file: