![]() |
VR-Forces 4.0.4 Class Documentation
|
DtUrlLabel that can display a movie and act as a hyperlink with url(s) conditioned on the current movie frame. More...

Classes | |
| struct | FrameRange |
Public Member Functions | |
| DtMovieUrlLabel (QWidget *parent=0, Qt::WindowFlags f=0) | |
| CTOR. | |
| virtual | ~DtMovieUrlLabel () |
| DTOR. | |
| virtual void | setMovie (QMovie *movie) |
| Override of QLabel mutator. | |
| virtual void | addUrl (const QString &url, int startFrame, int endFrame) |
| Add a url and specify the animation frames for which the url should be used. | |
| virtual void | setUrl (const QString &url) |
| Override of base class method. | |
| virtual QString | url () const |
| Override of base class; returns the url associated with the current animation frame number. | |
| virtual QString | url (int frame) const |
| Returns the url associated with a frame number. | |
| virtual void | removeUrl (const QString &url) |
| Remove a url from consideration. | |
| virtual void | setInfiniteLoop (bool b) |
| Indicate that the animation should run indefinitely. | |
Protected Types | |
| typedef boost::unordered_map < std::string, FrameRange > | UrlFramesMap |
Protected Slots | |
| void | onMovieFinished () |
| Called by signal when an animation ends. | |
| void | updateTooltip (int frame) |
| Called when the animation changes, to update the tooltip. | |
Protected Attributes | |
| QMovie * | myMovie |
| UrlFramesMap | myUrlFramesMap |
| bool | myInfiniteLoop |
DtUrlLabel that can display a movie and act as a hyperlink with url(s) conditioned on the current movie frame.
typedef boost::unordered_map<std::string, FrameRange> makVrv::DtMovieUrlLabel::UrlFramesMap [protected] |
| makVrv::DtMovieUrlLabel::DtMovieUrlLabel | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
CTOR.
| virtual makVrv::DtMovieUrlLabel::~DtMovieUrlLabel | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtMovieUrlLabel::setMovie | ( | QMovie * | movie | ) | [virtual] |
Override of QLabel mutator.
Unlike the base QLabel, DtMovieUrlLabel takes control of this resource! Do not delete (unless you call setMovie( 0 ) first.
| virtual void makVrv::DtMovieUrlLabel::addUrl | ( | const QString & | url, |
| int | startFrame, | ||
| int | endFrame | ||
| ) | [virtual] |
Add a url and specify the animation frames for which the url should be used.
-1 is a special 'last frame' indicator.
| virtual void makVrv::DtMovieUrlLabel::setUrl | ( | const QString & | url | ) | [virtual] |
Override of base class method.
Calling setUrl is equivalent to calling addUrl with startFrame=0 and endFrame=-1
Reimplemented from makVrv::DtUrlLabel.
| virtual QString makVrv::DtMovieUrlLabel::url | ( | ) | const [virtual] |
Override of base class; returns the url associated with the current animation frame number.
Reimplemented from makVrv::DtUrlLabel.
| virtual QString makVrv::DtMovieUrlLabel::url | ( | int | frame | ) | const [virtual] |
Returns the url associated with a frame number.
| virtual void makVrv::DtMovieUrlLabel::removeUrl | ( | const QString & | url | ) | [virtual] |
Remove a url from consideration.
| virtual void makVrv::DtMovieUrlLabel::setInfiniteLoop | ( | bool | b | ) | [virtual] |
Indicate that the animation should run indefinitely.
Useful for cases where the animation itself does not indicate infinite looping. Note that if the animation itself indicates that it should be looped indefinitely, this setting will be ignored.
| void makVrv::DtMovieUrlLabel::onMovieFinished | ( | ) | [protected, slot] |
Called by signal when an animation ends.
If infiniteLoop is set to true, this will restart the animation
| void makVrv::DtMovieUrlLabel::updateTooltip | ( | int | frame | ) | [protected, slot] |
Called when the animation changes, to update the tooltip.
QMovie* makVrv::DtMovieUrlLabel::myMovie [protected] |
UrlFramesMap makVrv::DtMovieUrlLabel::myUrlFramesMap [protected] |
bool makVrv::DtMovieUrlLabel::myInfiniteLoop [protected] |