![]() |
VR-Forces 5.0.3 Developer's Guide
|
DtUrlLabel that can display a movie and act as a hyperlink with url(s) conditioned on the current movie frame.

Classes | |
| struct | FrameRange |
Public Member Functions | |
| DtMovieUrlLabel (QWidget *parent=0, Qt::WindowFlags f=0) | |
| virtual | ~DtMovieUrlLabel () |
| virtual void | setMovie (QMovie *movie) |
| virtual void | addUrl (const QString &url, int startFrame, int endFrame) |
| virtual void | setUrl (const QString &url) |
| virtual QString | url () const |
| virtual QString | url (int frame) const |
| virtual void | removeUrl (const QString &url) |
| virtual void | setInfiniteLoop (bool b) |
Public Member Functions inherited from makVrv::DtUrlLabel | |
| DtUrlLabel (QWidget *parent=0, Qt::WindowFlags f=0) | |
| virtual | ~DtUrlLabel () |
Protected Types | |
| typedef boost::unordered_map < std::string, FrameRange > | UrlFramesMap |
Protected Slots | |
| void | onMovieFinished () |
| void | updateTooltip (int frame) |
Protected Attributes | |
| QMovie * | myMovie |
| UrlFramesMap | myUrlFramesMap |
| bool | myInfiniteLoop |
Protected Attributes inherited from makVrv::DtUrlLabel | |
| QString | myUrl |
Additional Inherited Members | |
Protected Member Functions inherited from makVrv::DtUrlLabel | |
| virtual void | mouseReleaseEvent (QMouseEvent *ev) |
|
protected |
| makVrv::DtMovieUrlLabel::DtMovieUrlLabel | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
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 |
Add a url and specify the animation frames for which the url should be used. -1 is a special 'last frame' indicator.
|
virtual |
Override of base class method. Calling setUrl is equivalent to calling addUrl with startFrame=0 and endFrame=-1.
Reimplemented from makVrv::DtUrlLabel.
|
virtual |
Override of base class; returns the url associated with the current animation frame number.
Reimplemented from makVrv::DtUrlLabel.
|
virtual |
Returns the url associated with a frame number.
|
virtual |
Remove a url from consideration.
|
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.
|
protectedslot |
Called by signal when an animation ends. If infiniteLoop is set to true, this will restart the animation.
|
protectedslot |
Called when the animation changes, to update the tooltip.
|
protected |
|
protected |
|
protected |