Class sh::ui::qt::QtActionExecutionInfoPanel

class sh::ui::qt::QtActionExecutionInfoPanel : public QWidget, public sh::ui::ActionExecutionInfoPanel

Qt status bar info-panel for an action execution.

Public Functions

QtActionExecutionInfoPanel(sh::actions::ActionExecutionInfo *info, QColor color, QWidget *parent = 0)
void setLabel(QString s)

Sets the label text. .

void setWidth(int width)

Sets the panel with (in pixels). .

QSize sizeHint() const
void setProgress(bool isProgressDeterminate, quint64 progressDone, quint64 progressAll)

Sets the progress. .

void setForceForeground(bool v)

Sets if the associated action is currently forced to be visible in foreground. .

void setPanelVisible(bool v)

Sets if the panel is visible. .

void onClicked(std::function<void()> fctQObject *owner = 0, )

Sets a handler for a click on the button (optionally bound to an owner lifetime).

void onDestroyed(std::function<void()> fctQObject *owner = 0, )

Sets a handler for panel removal (optionally bound to an owner lifetime).

void onVisibilityChanged(std::function<void()> fctQObject *owner = 0, )

Sets a handler for panel visibility changes (optionally bound to an owner lifetime).

Private Functions

void _check_indeterminateanimationtimer_enable()

Private Members

QString lbl1
bool _progressDeterminate = false
int _indeterminateAnimationCounter = 0
int _width
QTimer *_indeterminateAnimationTimer
quint64 _progressAll
quint64 _progressDone
bool _isforeground_forced = false
sh::actions::ActionExecutionInfo *info
QPixmap gradient
QColor colorProgress2
QColor colorProgress1
QColor colorBase
QColor colorFrame
QColor colorText
QColor colorTextDark