This class defines a progress bar in a general sense: a possibly non-contiguous bar. The interest lies in the fact that some actions can be on/off, so non-contiguous. This progress bar also supports coloring that corresponds to different action's states, zoom-in/out and mouse hovering above the bars that shows in a tooltip the precise time at the mouse pointer location.
#include <Workspace/Widgets/generalprogressbarwidget.h>
Inherits QWidget.
|
| GeneralProgressBarWidget (QWidget *parent=nullptr) |
|
| ~GeneralProgressBarWidget () override |
|
void | addItem (const QUuid &uuid, qint64 timeStamp, const QString &label=QString(), ItemStatus=Normal) |
|
qint64 | getStartTime () const |
|
qint64 | getStopTime () const |
|
bool | pauseItem (const QUuid &uuid, qint64 timeStamp) |
|
bool | resumeItem (const QUuid &uuid, qint64 timeStamp) |
|
bool | setItemParentStartTime (const QUuid &uuid, qint64 parentStartTime) |
|
bool | setItemStatus (const QUuid &uuid, ItemStatus itemStatus) |
|
void | setItemVisible (const QUuid &uuid, bool visible) |
|
void | setStartTime (qint64 startTime) |
|
void | setStopTime (qint64 stopTime) |
|
void | setViewableItems (const QSet< QUuid > &items) |
|
bool | startItem (const QUuid &uuid, qint64 timeStamp) |
|
bool | stopItem (const QUuid &uuid, qint64 timeStamp) |
|
◆ ItemStatus
Enumerator |
---|
Inactive | |
Normal | |
Warning | |
Alert | |
◆ GeneralProgressBarWidget()
◆ ~GeneralProgressBarWidget()
◆ addItem()
void addItem |
( |
const QUuid & |
uuid, |
|
|
qint64 |
timeStamp, |
|
|
const QString & |
label = QString() , |
|
|
ItemStatus |
itemStatus = Normal |
|
) |
| |
◆ event()
bool event |
( |
QEvent * |
event | ) |
|
|
overrideprotected |
◆ getStartTime()
qint64 getStartTime |
( |
| ) |
const |
◆ getStopTime()
qint64 getStopTime |
( |
| ) |
const |
◆ mouseDoubleClickEvent()
void mouseDoubleClickEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mouseMoveEvent()
void mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ notifyShowOperation
void notifyShowOperation |
( |
QUuid |
uuid | ) |
|
|
signal |
◆ paintEvent()
void paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotected |
◆ pauseItem()
bool pauseItem |
( |
const QUuid & |
uuid, |
|
|
qint64 |
timeStamp |
|
) |
| |
◆ requestShowOperation()
void requestShowOperation |
( |
const QUuid & |
uuid | ) |
|
|
protected |
◆ resumeItem()
bool resumeItem |
( |
const QUuid & |
uuid, |
|
|
qint64 |
timeStamp |
|
) |
| |
◆ setItemParentStartTime()
bool setItemParentStartTime |
( |
const QUuid & |
uuid, |
|
|
qint64 |
parentStartTime |
|
) |
| |
◆ setItemStatus()
◆ setItemVisible()
void setItemVisible |
( |
const QUuid & |
uuid, |
|
|
bool |
visible |
|
) |
| |
◆ setStartTime()
void setStartTime |
( |
qint64 |
startTime | ) |
|
◆ setStopTime()
void setStopTime |
( |
qint64 |
stopTime | ) |
|
◆ setViewableItems()
void setViewableItems |
( |
const QSet< QUuid > & |
items | ) |
|
◆ startItem()
bool startItem |
( |
const QUuid & |
uuid, |
|
|
qint64 |
timeStamp |
|
) |
| |
◆ stopItem()
bool stopItem |
( |
const QUuid & |
uuid, |
|
|
qint64 |
timeStamp |
|
) |
| |