#include <StatusWidget.h>
Public Types | |
enum | Role { Okay, Error, Busy } |
Signals | |
void | currentRoleChanged (Role role) |
Public Member Functions | |
Role | getCurrentRole () const |
double | getFrameRate (Role role) const |
const QList< QPixmap > & | getFrames (Role role) const |
const QPixmap & | getIcon (Role role) const |
bool | popCurrentRole () |
void | pushCurrentRole () |
void | setCurrentRole (Role role, const QString &toolTip=QString()) |
void | setFrameRate (Role role, double frameRate) |
void | setFrames (Role role, const QPixmap &frames, size_t numFrames, double frameRate=10.0) |
void | setFrames (Role role, const QList< QPixmap > &frameList, double frameRate=10.0) |
void | setIcon (Role role, const QPixmap &icon) |
StatusWidget (QWidget *parent=0, Role role=Okay) | |
virtual | ~StatusWidget () |
Private Slots | |
void | timerTimeout () |
Private Member Functions | |
void | start () |
void | step () |
void | stop () |
Private Attributes | |
size_t | currentFrame_ |
Role | currentRole_ |
QMap< Role, double > | frameRates_ |
QMap< Role, QList< QPixmap > > | frames_ |
QLabel * | labelIcon_ |
QGridLayout * | layout_ |
QList< Role > | roleStack_ |
QTimer * | timer_ |
QList< QString > | toolTipStack_ |
Definition at line 32 of file StatusWidget.h.
Definition at line 36 of file StatusWidget.h.
rqt_multiplot::StatusWidget::StatusWidget | ( | QWidget * | parent = 0 , |
Role | role = Okay |
||
) |
Definition at line 27 of file StatusWidget.cpp.
rqt_multiplot::StatusWidget::~StatusWidget | ( | ) | [virtual] |
Definition at line 50 of file StatusWidget.cpp.
void rqt_multiplot::StatusWidget::currentRoleChanged | ( | Role | role | ) | [signal] |
Definition at line 143 of file StatusWidget.cpp.
double rqt_multiplot::StatusWidget::getFrameRate | ( | Role | role | ) | const |
Definition at line 124 of file StatusWidget.cpp.
const QList< QPixmap > & rqt_multiplot::StatusWidget::getFrames | ( | Role | role | ) | const |
Definition at line 100 of file StatusWidget.cpp.
const QPixmap & rqt_multiplot::StatusWidget::getIcon | ( | Role | role | ) | const |
Definition at line 61 of file StatusWidget.cpp.
Definition at line 156 of file StatusWidget.cpp.
Definition at line 151 of file StatusWidget.cpp.
void rqt_multiplot::StatusWidget::setCurrentRole | ( | Role | role, |
const QString & | toolTip = QString() |
||
) |
Definition at line 128 of file StatusWidget.cpp.
void rqt_multiplot::StatusWidget::setFrameRate | ( | Role | role, |
double | frameRate | ||
) |
Definition at line 111 of file StatusWidget.cpp.
void rqt_multiplot::StatusWidget::setFrames | ( | Role | role, |
const QPixmap & | frames, | ||
size_t | numFrames, | ||
double | frameRate = 10.0 |
||
) |
Definition at line 70 of file StatusWidget.cpp.
void rqt_multiplot::StatusWidget::setFrames | ( | Role | role, |
const QList< QPixmap > & | frameList, | ||
double | frameRate = 10.0 |
||
) |
Definition at line 84 of file StatusWidget.cpp.
void rqt_multiplot::StatusWidget::setIcon | ( | Role | role, |
const QPixmap & | icon | ||
) |
Definition at line 57 of file StatusWidget.cpp.
void rqt_multiplot::StatusWidget::start | ( | ) | [private] |
Definition at line 169 of file StatusWidget.cpp.
void rqt_multiplot::StatusWidget::step | ( | ) | [private] |
Definition at line 183 of file StatusWidget.cpp.
void rqt_multiplot::StatusWidget::stop | ( | ) | [private] |
Definition at line 193 of file StatusWidget.cpp.
void rqt_multiplot::StatusWidget::timerTimeout | ( | ) | [private, slot] |
Definition at line 202 of file StatusWidget.cpp.
size_t rqt_multiplot::StatusWidget::currentFrame_ [private] |
Definition at line 74 of file StatusWidget.h.
Definition at line 73 of file StatusWidget.h.
QMap<Role, double> rqt_multiplot::StatusWidget::frameRates_ [private] |
Definition at line 69 of file StatusWidget.h.
QMap<Role, QList<QPixmap> > rqt_multiplot::StatusWidget::frames_ [private] |
Definition at line 68 of file StatusWidget.h.
QLabel* rqt_multiplot::StatusWidget::labelIcon_ [private] |
Definition at line 65 of file StatusWidget.h.
QGridLayout* rqt_multiplot::StatusWidget::layout_ [private] |
Definition at line 64 of file StatusWidget.h.
QList<Role> rqt_multiplot::StatusWidget::roleStack_ [private] |
Definition at line 70 of file StatusWidget.h.
QTimer* rqt_multiplot::StatusWidget::timer_ [private] |
Definition at line 66 of file StatusWidget.h.
QList<QString> rqt_multiplot::StatusWidget::toolTipStack_ [private] |
Definition at line 71 of file StatusWidget.h.